diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-05 10:38:49 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-05 10:38:49 -0500 |
commit | d4745d88937867b0d65f73bc85edf6ae7b8b8cc3 (patch) | |
tree | b0c1abc49476d52a5174f1676580e7d5ff1c2d68 /tdecore/tdenetworkconnections.h | |
parent | d3cfdd24fa0bd2f0c9fce7de57d29333e1e071e2 (diff) | |
download | tdelibs-d4745d88937867b0d65f73bc85edf6ae7b8b8cc3.tar.gz tdelibs-d4745d88937867b0d65f73bc85edf6ae7b8b8cc3.zip |
Add wireless AP detect signals
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r-- | tdecore/tdenetworkconnections.h | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index 4afdbc863..fb1079d85 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -729,7 +729,7 @@ class TDECORE_EXPORT TDENetworkHWNeighbor { public: TDENetworkHWNeighbor(); - ~TDENetworkHWNeighbor(); + virtual ~TDENetworkHWNeighbor(); public: bool valid; @@ -739,7 +739,7 @@ class TDECORE_EXPORT TDENetworkWiFiAPInfo : public TDENetworkHWNeighbor { public: TDENetworkWiFiAPInfo(); - ~TDENetworkWiFiAPInfo(); + virtual ~TDENetworkWiFiAPInfo(); public: TQByteArray SSID; @@ -1041,6 +1041,12 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ void networkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TDENetworkConnectionStatus::TDENetworkConnectionStatus previousState, TQString hwAddress); + /** + * Emitted whenever a wireless access point is detected or lost + * If a new access point was detected, @param detected will be set to TRUE, otherwise if lost it will be set to FALSE + */ + void accessPointVisibilityChanged(TDEMACAddress BSSID, bool detected); + public: /** * @return a TDENetworkConnectionList object containing a list of all @@ -1073,11 +1079,20 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject */ TDENetworkDevice* findDeviceByUUID(TQString uuid); + /** + * @return a pointer to a TDENetworkWiFiAPInfo object with the specified @param bssid, + * or a NULL pointer if no such access point exists. + * + * Note that the returned object is internally managed and must not be deleted! + */ + TDENetworkWiFiAPInfo* findAccessPointByBSSID(TDEMACAddress bssid); + protected: void clearTDENetworkConnectionList(); void clearTDENetworkHWNeighborList(); void internalNetworkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags newState); void internalNetworkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TQString hwAddress=TQString::null); + void internalAccessPointVisibilityChanged(TDEMACAddress BSSID, bool detected); protected: TDENetworkConnectionList* m_connectionList; @@ -1216,6 +1231,12 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ void networkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TDENetworkConnectionStatus::TDENetworkConnectionStatus previousState, TQString hwAddress); + /** + * Emitted whenever a wireless access point is detected or lost + * If a new access point was detected, @param detected will be set to TRUE, otherwise if lost it will be set to FALSE + */ + void accessPointVisibilityChanged(TDEMACAddress BSSID, bool detected); + public: /** * @return a TDENetworkConnectionList object containing a list of all @@ -1248,6 +1269,14 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject */ TDENetworkDevice* findDeviceByUUID(TQString uuid); + /** + * @return a pointer to a TDENetworkWiFiAPInfo object with the specified @param bssid, + * or a NULL pointer if no such access point exists. + * + * Note that the returned object is internally managed and must not be deleted! + */ + TDENetworkWiFiAPInfo* findAccessPointByBSSID(TDEMACAddress bssid); + private: TDENetworkConnectionManager* m_internalConnectionManager; }; |