summaryrefslogtreecommitdiffstats
path: root/nexus/NetworkManager.h
diff options
context:
space:
mode:
authorSan Mehat <san@google.com>2009-06-22 10:39:36 -0700
committerSan Mehat <san@google.com>2009-06-22 10:40:53 -0700
commitd6c6796670a5e566977b13d542020fb8cc88e6cf (patch)
treeb21d0a9b7618c8bfc824044ed4f457dbdc398e9c /nexus/NetworkManager.h
parent54962e0fd647f5f390269994c573f80c92f537d4 (diff)
downloadsystem_core-d6c6796670a5e566977b13d542020fb8cc88e6cf.zip
system_core-d6c6796670a5e566977b13d542020fb8cc88e6cf.tar.gz
system_core-d6c6796670a5e566977b13d542020fb8cc88e6cf.tar.bz2
nexus: Rename onInterfaceStarted -> onInterfaceConnected and add Dhcp start/stop control
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/NetworkManager.h')
-rw-r--r--nexus/NetworkManager.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/nexus/NetworkManager.h b/nexus/NetworkManager.h
index edc80c9..44f3417 100644
--- a/nexus/NetworkManager.h
+++ b/nexus/NetworkManager.h
@@ -22,10 +22,12 @@
#include "Controller.h"
#include "PropertyManager.h"
#include "IControllerHandler.h"
+#include "IDhcpEventHandlers.h"
class InterfaceConfig;
+class DhcpClient;
-class NetworkManager : public IControllerHandler {
+class NetworkManager : public IControllerHandler, public IDhcpEventHandlers {
private:
static NetworkManager *sInstance;
@@ -33,6 +35,7 @@ private:
ControllerCollection *mControllers;
SocketListener *mBroadcaster;
PropertyManager *mPropMngr;
+ DhcpClient *mDhcp;
public:
virtual ~NetworkManager();
@@ -55,7 +58,7 @@ private:
NetworkManager(PropertyManager *propMngr);
- void onInterfaceStarted(Controller *c, const InterfaceConfig *cfg);
- void onInterfaceStopping(Controller *c, const char *name);
+ void onInterfaceConnected(Controller *c, const InterfaceConfig *cfg);
+ void onInterfaceDisconnected(Controller *c, const char *name);
};
#endif