summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-08 13:30:57 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-08 13:30:57 -0500
commit6a2462e30864406bba5ebe9627b44f960bdfa7cf (patch)
tree8124286bdb796bd12c217f486891f26e69cb4ee1
parente064a2e485a72e5baf8b7a1c9991eb4df4bd1254 (diff)
downloadtdelibs-6a2462e30864406bba5ebe9627b44f960bdfa7cf.tar.gz
tdelibs-6a2462e30864406bba5ebe9627b44f960bdfa7cf.zip
Make Invalid a flag
-rw-r--r--tdecore/networkbackends/network-manager/network-manager.cpp2
-rw-r--r--tdecore/tdenetworkconnections.h35
2 files changed, 19 insertions, 18 deletions
diff --git a/tdecore/networkbackends/network-manager/network-manager.cpp b/tdecore/networkbackends/network-manager/network-manager.cpp
index 74d96e7ec..db7e8c30d 100644
--- a/tdecore/networkbackends/network-manager/network-manager.cpp
+++ b/tdecore/networkbackends/network-manager/network-manager.cpp
@@ -119,7 +119,7 @@ TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags nmGlobalStateToTDEGlo
}
TDENetworkConnectionStatus::TDENetworkConnectionStatus nmDeviceStateToTDEDeviceState(TQ_UINT32 nmType) {
- TDENetworkConnectionStatus::TDENetworkConnectionStatus ret = TDENetworkConnectionStatus::Invalid;
+ TDENetworkConnectionStatus::TDENetworkConnectionStatus ret = TDENetworkConnectionStatus::None;
if (nmType == NM_DEVICE_STATE_UNKNOWN) {
ret |= TDENetworkConnectionStatus::Invalid;
diff --git a/tdecore/tdenetworkconnections.h b/tdecore/tdenetworkconnections.h
index 93bab1d73..8af12158e 100644
--- a/tdecore/tdenetworkconnections.h
+++ b/tdecore/tdenetworkconnections.h
@@ -390,23 +390,24 @@ namespace TDENetworkPasswordHandlingFlags {
namespace TDENetworkConnectionStatus {
enum TDENetworkConnectionStatus {
- Invalid = 0x00000000,
- Disconnected = 0x00000001,
- Connected = 0x00000002,
- LinkUnavailable = 0x00000004,
- EstablishingLink = 0x00000008,
- DeactivatingLink = 0x00000010,
- ConfiguringProtocols = 0x00000020,
- Reconnecting = 0x00000040,
- LinkLost = 0x00000080,
- LinkLocalAccess = 0x00000100,
- SiteLocalAccess = 0x00000200,
- GlobalAccess = 0x00000400,
- UnManaged = 0x00000800,
- NeedAuthorization = 0x00001000,
- Failed = 0x00002000,
- VerifyingProtocols = 0x00004000,
- DependencyWait = 0x00008000
+ None = 0x00000000,
+ Invalid = 0x00000001,
+ Disconnected = 0x00000002,
+ Connected = 0x00000004,
+ LinkUnavailable = 0x00000008,
+ EstablishingLink = 0x00000010,
+ DeactivatingLink = 0x00000020,
+ ConfiguringProtocols = 0x00000040,
+ Reconnecting = 0x00000080,
+ LinkLost = 0x00000100,
+ LinkLocalAccess = 0x00000200,
+ SiteLocalAccess = 0x00000400,
+ GlobalAccess = 0x00000800,
+ UnManaged = 0x00001000,
+ NeedAuthorization = 0x00002000,
+ Failed = 0x00004000,
+ VerifyingProtocols = 0x00008000,
+ DependencyWait = 0x00010000
};
CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkConnectionStatus)