diff options
author | San Mehat <san@google.com> | 2009-06-15 14:10:44 -0700 |
---|---|---|
committer | San Mehat <san@google.com> | 2009-06-15 14:20:02 -0700 |
commit | 3aff2d1de59972684bf2ab798351be5544158239 (patch) | |
tree | e16fdc00ec3615dc4257ef1b57b2d0f49437fdcf /nexus/SupplicantEvent.h | |
parent | 669a7011e7e23c0594242465caa15b46b92aa340 (diff) | |
download | system_core-3aff2d1de59972684bf2ab798351be5544158239.zip system_core-3aff2d1de59972684bf2ab798351be5544158239.tar.gz system_core-3aff2d1de59972684bf2ab798351be5544158239.tar.bz2 |
Nexus: Clean up supplicant events, protocol, and continue plumbing
- Create SupplicantEvent classes for events
- New SupplicantEventFactory for creating events
- Extract Controller -> NetworkManager callbacks into IControllerHandler
- Move ScanResult handling from Supplicant -> WifiController
- Plumb more 'onConnected()' code
- Instead of re-creating NetworkList every-time, merge in
new entries
- Extract SupplicantListener -> Supplicant callbacks into
ISupplicantEventHandler
- Move SupplicantListener callback handling to WifiController
- Add unlocked version of lookupNetwork()
- Save supplicant config after setting a WifiNetwork variable
- Move property registration from WifiNetwork -> Supplicant
- Change wifi enable broadcast messages
- Add 3 new events: 'onAssociating', 'onAssociated', 'onConnectionTimeout'
- Add support for handling KeyManagement
Signed-off-by: San Mehat <san@google.com>
Diffstat (limited to 'nexus/SupplicantEvent.h')
-rw-r--r-- | nexus/SupplicantEvent.h | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/nexus/SupplicantEvent.h b/nexus/SupplicantEvent.h index 2dc6722..9d7cbd9 100644 --- a/nexus/SupplicantEvent.h +++ b/nexus/SupplicantEvent.h @@ -22,33 +22,32 @@ class SupplicantEvent { private: int mType; - char *mEvent; - size_t mLen; int mLevel; public: - static const int EVENT_UNKNOWN = 0; - static const int EVENT_CONNECTED = 1; - static const int EVENT_DISCONNECTED = 2; - static const int EVENT_TERMINATING = 3; - static const int EVENT_PASSWORD_CHANGED = 4; - static const int EVENT_EAP_NOTIFICATION = 5; - static const int EVENT_EAP_STARTED = 6; - static const int EVENT_EAP_METHOD = 7; - static const int EVENT_EAP_SUCCESS = 8; - static const int EVENT_EAP_FAILURE = 9; - static const int EVENT_SCAN_RESULTS = 10; - static const int EVENT_STATE_CHANGE = 11; - static const int EVENT_LINK_SPEED = 12; - static const int EVENT_DRIVER_STATE = 13; + static const int EVENT_UNKNOWN = 0; + static const int EVENT_CONNECTED = 1; + static const int EVENT_DISCONNECTED = 2; + static const int EVENT_TERMINATING = 3; + static const int EVENT_PASSWORD_CHANGED = 4; + static const int EVENT_EAP_NOTIFICATION = 5; + static const int EVENT_EAP_STARTED = 6; + static const int EVENT_EAP_METHOD = 7; + static const int EVENT_EAP_SUCCESS = 8; + static const int EVENT_EAP_FAILURE = 9; + static const int EVENT_SCAN_RESULTS = 10; + static const int EVENT_STATE_CHANGE = 11; + static const int EVENT_LINK_SPEED = 12; + static const int EVENT_DRIVER_STATE = 13; + static const int EVENT_ASSOCIATING = 14; + static const int EVENT_ASSOCIATED = 15; + static const int EVENT_CONNECTIONTIMEOUT = 16; public: - SupplicantEvent(char *event, size_t len); - virtual ~SupplicantEvent(); + SupplicantEvent(int type, int level); + virtual ~SupplicantEvent() {} int getType() { return mType; } - const char *getEvent() { return mEvent; } - int getLen() { return mLen; } int getLevel() { return mLevel; } }; |