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()) {
// Error!
PRINT_ERROR(error.name())
return TDENetworkGlobalManagerFlags::Unknown;
return TDENetworkGlobalManagerFlags::BackendUnavailable;
}
else {
return nmGlobalStateToTDEGlobalState(ret);
}
}
else {
return TDENetworkGlobalManagerFlags::Unknown;
return TDENetworkGlobalManagerFlags::BackendUnavailable;
}
}

@ -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();
}

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

Loading…
Cancel
Save