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.h | |
parent | adea4c592cd28583a9a8cc24b9ec68bb118d874a (diff) | |
download | tdelibs-aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82.tar.gz tdelibs-aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82.zip |
Add global networking state control
Diffstat (limited to 'tdecore/tdenetworkconnections.h')
-rw-r--r-- | tdecore/tdenetworkconnections.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index ca20f613c..e13484262 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -994,6 +994,12 @@ class TDECORE_EXPORT TDENetworkConnectionManager : public TQObject virtual bool networkingEnabled() = 0; /** + * @param enable true to enable networking, false to disable it. + * @return true on success, false on failure. + */ + virtual bool enableNetworking(bool enable) = 0; + + /** * @return true if WiFi hardware is enabled, false if not. */ virtual bool wiFiHardwareEnabled() = 0; @@ -1148,6 +1154,12 @@ class TDECORE_EXPORT TDEGlobalNetworkManager : public TQObject virtual bool networkingEnabled(); /** + * @param enable true to enable networking, false to disable it. + * @return true on success, false on failure. + */ + virtual bool enableNetworking(bool enable); + + /** * @return true if WiFi hardware is enabled, false if not. */ virtual bool wiFiHardwareEnabled(); |