diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-07 00:33:23 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-07 00:33:23 -0500 |
commit | 6b96deb4ebac9e55ff35d7f77313c5aebb103880 (patch) | |
tree | 79c35ba8c591c53fb0b2a77bf5895862c472db8f /tdecore/tdenetworkconnections.cpp | |
parent | 96765c9dea208b345a7da67e7f8357e4be6a40bf (diff) | |
download | tdelibs-6b96deb4ebac9e55ff35d7f77313c5aebb103880.tar.gz tdelibs-6b96deb4ebac9e55ff35d7f77313c5aebb103880.zip |
Add global network management event signal
Diffstat (limited to 'tdecore/tdenetworkconnections.cpp')
-rw-r--r-- | tdecore/tdenetworkconnections.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index b3f0d9257..11874205f 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -796,6 +796,10 @@ void TDENetworkConnectionManager::internalAccessPointStatusChanged(TDEMACAddress emit(accessPointStatusChanged(BSSID, event)); } +void TDENetworkConnectionManager::internalNetworkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType event) { + emit(networkManagementEvent(event)); +} + /*================================================================================================*/ /* TDEGlobalNetworkManager */ /*================================================================================================*/ @@ -804,7 +808,10 @@ TDEGlobalNetworkManager::TDEGlobalNetworkManager() : m_internalConnectionManager #ifdef WITH_NETWORK_MANAGER_BACKEND m_internalConnectionManager = new TDENetworkConnectionManager_BackendNM(TQString::null); #endif // WITH_NETWORK_MANAGER_BACKEND - connect(m_internalConnectionManager, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)), this, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags))); + if (m_internalConnectionManager) { + connect(m_internalConnectionManager, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags)), this, SIGNAL(networkConnectionStateChanged(TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags, TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags))); + connect(m_internalConnectionManager, SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType)), this, SIGNAL(networkManagementEvent(TDENetworkGlobalEventType::TDENetworkGlobalEventType))); + } } TDEGlobalNetworkManager::~TDEGlobalNetworkManager() { |