Add more descriptive TDENetworkGlobalManagerFlags::BackendUnavailable type

pull/16/head
Timothy Pearson 12 years ago
parent aaaec8b3f8
commit 50a9b042ee

@ -1240,14 +1240,14 @@ TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDENetworkConnectionM
if (error.isValid()) { if (error.isValid()) {
// Error! // Error!
PRINT_ERROR(error.name()) PRINT_ERROR(error.name())
return TDENetworkGlobalManagerFlags::Unknown; return TDENetworkGlobalManagerFlags::BackendUnavailable;
} }
else { else {
return nmGlobalStateToTDEGlobalState(ret); return nmGlobalStateToTDEGlobalState(ret);
} }
} }
else { else {
return TDENetworkGlobalManagerFlags::Unknown; return TDENetworkGlobalManagerFlags::BackendUnavailable;
} }
} }

@ -680,7 +680,7 @@ TDEGlobalNetworkManager::~TDEGlobalNetworkManager() {
} }
TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDEGlobalNetworkManager::backendStatus() { TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags TDEGlobalNetworkManager::backendStatus() {
if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::Unknown; if (!m_internalConnectionManager) return TDENetworkGlobalManagerFlags::BackendUnavailable;
return m_internalConnectionManager->backendStatus(); return m_internalConnectionManager->backendStatus();
} }

@ -185,6 +185,7 @@ namespace TDENetworkGlobalManagerFlags {
SiteLocalAccess = 0x00000020, SiteLocalAccess = 0x00000020,
GlobalAccess = 0x00000040, GlobalAccess = 0x00000040,
Sleeping = 0x00000080, Sleeping = 0x00000080,
BackendUnavailable = 0x00000100
}; };
CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkGlobalManagerFlags) CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkGlobalManagerFlags)

Loading…
Cancel
Save