diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 10:25:49 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 10:25:49 -0500 |
commit | aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82 (patch) | |
tree | fc7b5577502365de25a1b7031060b9661c3e5565 /tdecore/tdenetworkconnections.cpp | |
parent | adea4c592cd28583a9a8cc24b9ec68bb118d874a (diff) | |
download | tdelibs-aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82.tar.gz tdelibs-aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82.zip |
Add global networking state control
Diffstat (limited to 'tdecore/tdenetworkconnections.cpp')
-rw-r--r-- | tdecore/tdenetworkconnections.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index a02f72e64..96da418e7 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -729,6 +729,11 @@ bool TDEGlobalNetworkManager::networkingEnabled() { return m_internalConnectionManager->networkingEnabled(); } +bool TDEGlobalNetworkManager::enableNetworking(bool enable) { + if (!m_internalConnectionManager) return false; + return m_internalConnectionManager->enableNetworking(enable); +} + bool TDEGlobalNetworkManager::wiFiHardwareEnabled() { if (!m_internalConnectionManager) return false; return m_internalConnectionManager->wiFiHardwareEnabled(); |