summaryrefslogtreecommitdiffstats
path: root/tdecore/tdenetworkconnections.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2012-09-05 10:38:49 -0500
committerTimothy Pearson <[email protected]>2012-09-05 10:38:49 -0500
commitd4745d88937867b0d65f73bc85edf6ae7b8b8cc3 (patch)
treeb0c1abc49476d52a5174f1676580e7d5ff1c2d68 /tdecore/tdenetworkconnections.cpp
parentd3cfdd24fa0bd2f0c9fce7de57d29333e1e071e2 (diff)
downloadtdelibs-d4745d88937867b0d65f73bc85edf6ae7b8b8cc3.tar.gz
tdelibs-d4745d88937867b0d65f73bc85edf6ae7b8b8cc3.zip
Add wireless AP detect signals
Diffstat (limited to 'tdecore/tdenetworkconnections.cpp')
-rw-r--r--tdecore/tdenetworkconnections.cpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp
index d9f4b5d97..cc4c4b94d 100644
--- a/tdecore/tdenetworkconnections.cpp
+++ b/tdecore/tdenetworkconnections.cpp
@@ -656,6 +656,20 @@ TDENetworkDevice* TDENetworkConnectionManager::findDeviceByUUID(TQString uuid) {
return NULL;
}
+TDENetworkWiFiAPInfo* TDENetworkConnectionManager::findAccessPointByBSSID(TDEMACAddress bssid) {
+ TDENetworkHWNeighbor *neighbor;
+ for (neighbor = m_hwNeighborList->first(); neighbor; neighbor = m_hwNeighborList->next()) {
+ TDENetworkWiFiAPInfo* apInfo = dynamic_cast<TDENetworkWiFiAPInfo*>(neighbor);
+ if (!apInfo) {
+ continue;
+ }
+ if (apInfo->BSSID == bssid) {
+ return apInfo;
+ }
+ }
+ return NULL;
+}
+
void TDENetworkConnectionManager::clearTDENetworkConnectionList() {
TDENetworkConnection *connection;
for (connection = m_connectionList->first(); connection; connection = m_connectionList->next()) {
@@ -685,6 +699,10 @@ void TDENetworkConnectionManager::internalNetworkDeviceStateChanged(TDENetworkCo
m_prevDeviceStatus[hwAddress] = newState;
}
+void TDENetworkConnectionManager::internalAccessPointVisibilityChanged(TDEMACAddress BSSID, bool detected) {
+ emit(accessPointVisibilityChanged(BSSID, detected));
+}
+
/*================================================================================================*/
/* TDEGlobalNetworkManager */
/*================================================================================================*/
@@ -790,6 +808,11 @@ TDENetworkDevice* TDEGlobalNetworkManager::findDeviceByUUID(TQString uuid) {
return m_internalConnectionManager->findDeviceByUUID(uuid);
}
+TDENetworkWiFiAPInfo* TDEGlobalNetworkManager::findAccessPointByBSSID(TDEMACAddress bssid) {
+ if (!m_internalConnectionManager) return NULL;
+ return m_internalConnectionManager->findAccessPointByBSSID(bssid);
+}
+
/*================================================================================================*/
/* End */
/*================================================================================================*/