diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 10:41:16 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-09-04 10:41:16 -0500 |
commit | 50a9b042eef60a6531b7fbb3c467342ac592d9e3 (patch) | |
tree | c210d4c0c3c2876782981631b9b624e3328eee65 /tdecore | |
parent | aaaec8b3f88a53ce2ec3b9295774523b6f2d8c82 (diff) | |
download | tdelibs-50a9b042eef60a6531b7fbb3c467342ac592d9e3.tar.gz tdelibs-50a9b042eef60a6531b7fbb3c467342ac592d9e3.zip |
Add more descriptive TDENetworkGlobalManagerFlags::BackendUnavailable type
Diffstat (limited to 'tdecore')
-rw-r--r-- | tdecore/networkbackends/network-manager/network-manager.cpp | 4 | ||||
-rw-r--r-- | tdecore/tdenetworkconnections.cpp | 2 | ||||
-rw-r--r-- | tdecore/tdenetworkconnections.h | 1 |
3 files changed, 4 insertions, 3 deletions
diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp index 3a303237b..57ae8672d 100644 --- a/tdecore/networkbackends/network-manager/network-manager.cpp +++ b/tdecore/networkbackends/network-manager/network-manager.cpp @@ -1240,14 +1240,14 @@ TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDENetworkConnectionM if (error.isValid()) { // Error! PRINT_ERROR(error.name()) - return TDENetworkGlobalManagerFlags::Unknown; + return TDENetworkGlobalManagerFlags::BackendUnavailable; } else { return nmGlobalStateToTDEGlobalState(ret); } } else { - return TDENetworkGlobalManagerFlags::Unknown; + return TDENetworkGlobalManagerFlags::BackendUnavailable; } } diff --git a/tdecore/tdenetworkconnections.cpp b/tdecore/tdenetworkconnections.cpp index 96da418e7..71132825e 100644 --- a/tdecore/tdenetworkconnections.cpp +++ b/tdecore/tdenetworkconnections.cpp @@ -680,7 +680,7 @@ TDEGlobalNetworkManager::~TDEGlobalNetworkManager() { } TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDEGlobalNetworkManager::backendStatus() { - if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::Unknown; + if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::BackendUnavailable; return m_internalConnectionManager->backendStatus(); } diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h index e13484262..92e5e5cb5 100644 --- a/tdecore/tdenetworkconnections.h +++ b/tdecore/tdenetworkconnections.h @@ -185,6 +185,7 @@ namespace TDENetworkGlobalManagerFlags { SiteLocalAccess = 0x00000020, GlobalAccess = 0x00000040, Sleeping = 0x00000080, + BackendUnavailable = 0x00000100 }; CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkGlobalManagerFlags) |