nexus: Refactor some of the create/remove network path and add code for
retrieving network lists from supplicant
nexus: Rework properties
nexus: Implement wifi network enable/disable and add some error checking
nexus: Add some TODOs
nexus: Whitespace cleanup
nexus: Add bindings between controllers and network interfaces
nexus: Add properties for InterfaceConfig
nexus: Fix a few conversion bugs in InterfaceConfig
Signed-off-by: San Mehat <san@google.com>
diff --git a/nexus/NetworkManager.h b/nexus/NetworkManager.h
index e8564ca..e75382d 100644
--- a/nexus/NetworkManager.h
+++ b/nexus/NetworkManager.h
@@ -13,13 +13,15 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
+
#ifndef _NETWORKMANAGER_H
#define _NETWORKMANAGER_H
#include <sysutils/SocketListener.h>
#include "Controller.h"
-#include "PropertyCollection.h"
+
+#include "PropertyManager.h"
class InterfaceConfig;
@@ -30,10 +32,10 @@
private:
ControllerCollection *mControllers;
SocketListener *mBroadcaster;
- PropertyCollection *mProperties;
+ PropertyManager *mPropMngr;
public:
- virtual ~NetworkManager() {}
+ virtual ~NetworkManager();
int run();
@@ -41,22 +43,17 @@
Controller *findController(const char *name);
- const PropertyCollection &getProperties();
- int setProperty(const char *name, char *value);
- const char *getProperty(const char *name, char *buffer, size_t maxsize);
-
void setBroadcaster(SocketListener *sl) { mBroadcaster = sl; }
SocketListener *getBroadcaster() { return mBroadcaster; }
+ PropertyManager *getPropMngr() { return mPropMngr; }
static NetworkManager *Instance();
private:
int startControllers();
int stopControllers();
- int registerProperty(const char *name);
- int unregisterProperty(const char *name);
- NetworkManager();
+ NetworkManager(PropertyManager *propMngr);
public:
/*