diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 00:59:39 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-10 00:59:39 -0500 |
commit | d62684deefe7ee5c654e4fc5b6359db5661dd6a9 (patch) | |
tree | 544b2cda5ecaedd3918276656c38e36afb8f8698 /tdecore/tdenetworkconnections.cpp | |
parent | b5bdfd2c41c0be5b79831c1b9d5a3f292d129264 (diff) | |
download | tdelibs-d62684deefe7ee5c654e4fc5b6359db5661dd6a9.tar.gz tdelibs-d62684deefe7ee5c654e4fc5b6359db5661dd6a9.zip |
Add valids map
Diffstat (limited to 'tdecore/tdenetworkconnections.cpp')
-rw-r--r-- | tdecore/tdenetworkconnections.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index f3f427687..53bd1f4ec 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -824,10 +824,10 @@ void TDENetworkConnectionManager::internalNetworkConnectionStateChanged(TDENetwo } void TDENetworkConnectionManager::internalNetworkDeviceStateChanged(TDENetworkConnectionStatus::TDENetworkConnectionStatus newState, TQString hwAddress) { - if (!m_prevDeviceStatus.contains("hwAddress")) { + if (!m_prevDeviceStatus.contains(hwAddress)) { m_prevDeviceStatus[hwAddress] = TDENetworkConnectionStatus::Invalid; } - emit(networkDeviceStateChanged(m_prevDeviceStatus[hwAddress], newState, hwAddress)); + emit(networkDeviceStateChanged(newState, m_prevDeviceStatus[hwAddress], hwAddress)); m_prevDeviceStatus[hwAddress] = newState; } @@ -911,6 +911,11 @@ TDENetworkConnectionStatus::TDENetworkConnectionStatus TDEGlobalNetworkManager:: return m_internalConnectionManager->deactivateConnection(uuid); } +TQStringList TDEGlobalNetworkManager::validSettings() { + if (!m_internalConnectionManager) return TQStringList(); + return m_internalConnectionManager->validSettings(); +} + TDENetworkHWNeighborList* TDEGlobalNetworkManager::siteSurvey() { if (!m_internalConnectionManager) return NULL; return m_internalConnectionManager->siteSurvey(); @@ -947,7 +952,7 @@ bool TDEGlobalNetworkManager::wiFiEnabled() { } TQStringList TDEGlobalNetworkManager::defaultNetworkDevices() { - if (!m_internalConnectionManager) return NULL; + if (!m_internalConnectionManager) return TQStringList(); return m_internalConnectionManager->defaultNetworkDevices(); } |