Make Invalid a flag

pull/16/head
Timothy Pearson 12 years ago
parent e064a2e485
commit 6a2462e308

@ -119,7 +119,7 @@ TDENetworkGlobalManagerFlags::TDENetworkGlobalManagerFlags nmGlobalStateToTDEGlo
} }
TDENetworkConnectionStatus::TDENetworkConnectionStatus nmDeviceStateToTDEDeviceState(TQ_UINT32 nmType) { TDENetworkConnectionStatus::TDENetworkConnectionStatus nmDeviceStateToTDEDeviceState(TQ_UINT32 nmType) {
TDENetworkConnectionStatus::TDENetworkConnectionStatus ret = TDENetworkConnectionStatus::Invalid; TDENetworkConnectionStatus::TDENetworkConnectionStatus ret = TDENetworkConnectionStatus::None;
if (nmType == NM_DEVICE_STATE_UNKNOWN) { if (nmType == NM_DEVICE_STATE_UNKNOWN) {
ret |= TDENetworkConnectionStatus::Invalid; ret |= TDENetworkConnectionStatus::Invalid;

@ -390,23 +390,24 @@ namespace TDENetworkPasswordHandlingFlags {
namespace TDENetworkConnectionStatus { namespace TDENetworkConnectionStatus {
enum TDENetworkConnectionStatus { enum TDENetworkConnectionStatus {
Invalid = 0x00000000, None = 0x00000000,
Disconnected = 0x00000001, Invalid = 0x00000001,
Connected = 0x00000002, Disconnected = 0x00000002,
LinkUnavailable = 0x00000004, Connected = 0x00000004,
EstablishingLink = 0x00000008, LinkUnavailable = 0x00000008,
DeactivatingLink = 0x00000010, EstablishingLink = 0x00000010,
ConfiguringProtocols = 0x00000020, DeactivatingLink = 0x00000020,
Reconnecting = 0x00000040, ConfiguringProtocols = 0x00000040,
LinkLost = 0x00000080, Reconnecting = 0x00000080,
LinkLocalAccess = 0x00000100, LinkLost = 0x00000100,
SiteLocalAccess = 0x00000200, LinkLocalAccess = 0x00000200,
GlobalAccess = 0x00000400, SiteLocalAccess = 0x00000400,
UnManaged = 0x00000800, GlobalAccess = 0x00000800,
NeedAuthorization = 0x00001000, UnManaged = 0x00001000,
Failed = 0x00002000, NeedAuthorization = 0x00002000,
VerifyingProtocols = 0x00004000, Failed = 0x00004000,
DependencyWait = 0x00008000 VerifyingProtocols = 0x00008000,
DependencyWait = 0x00010000
}; };
CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkConnectionStatus) CREATE_FLAG_BITWISE_MANIPULATION_FUNCTIONS(TDENetworkConnectionStatus)

Loading…
Cancel
Save