Ignore:
Timestamp:
Oct 15, 2012, 7:17:04 PM (12 years ago)
Author:
Michael Tänzer
Message:

Clean up NetworkChangeDetection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/communication/networkinfo/NetworkChangeDetection.h

    r8569 r10767  
    4040#define __NETWORK_CHANGE_DETECTION_H
    4141
    42 #include <cerrno>
    43 #include <csignal>
     42// Forward declarations
     43struct nlmsghdr;
     44
    4445#include <vector>
    45 #include <algorithm>
    46 #include <string>
    47 #include <net/if.h>
    48 #include <arpa/inet.h>
    49 #include <linux/types.h>
    50 #include <linux/netlink.h>
    51 #include <linux/rtnetlink.h>
    52 #include <sys/types.h>
    53 #include <sys/socket.h>
    54 #include <sys/ioctl.h>
    55 #include <boost/thread/mutex.hpp>
    5646#include <boost/thread/thread.hpp>
    57 #include <boost/utility.hpp>
    58 #include <boost/bind.hpp>
    59 #include "ariba/communication/networkinfo/NetworkChangeInterface.h"
    60 #include "ariba/communication/networkinfo/NetworkInformation.h"
    61 #include "ariba/utility/system/SystemQueue.h"
     47
     48#include "NetworkInformation.h"
     49#include "NetworkChangeInterface.h"
    6250#include "ariba/utility/logging/Logging.h"
    63 
    64 using std::string;
    65 using std::vector;
    66 using std::find;
    67 using ariba::utility::SystemQueue;
    68 using ariba::utility::SystemEvent;
    69 using ariba::utility::SystemEventType;
    70 using ariba::utility::SystemEventListener;
    71 using ariba::communication::NetworkInformation;
     51#include "ariba/utility/system/SystemEventListener.h"
    7252
    7353namespace ariba {
    7454namespace communication {
     55
     56using ariba::utility::SystemEvent;
     57using ariba::utility::SystemEventListener;
    7558
    7659class NetworkChangeDetection : public SystemEventListener {
     
    8770
    8871private:
    89         typedef vector<NetworkChangeInterface*> RegistrationList;
     72        typedef std::vector<NetworkChangeInterface*> RegistrationList;
    9073        RegistrationList registrations;
    9174
Note: See TracChangeset for help on using the changeset viewer.