⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 enumbase.h

📁 270的linux说明
💻 H
字号:
/*

Copyright (c) 2008, Intel Corporation. 

All rights reserved.

 

Redistribution and use in source and binary forms, with or without modification, 
are permitted provided that the following conditions are met:


    * Redistributions of source code must retain the above copyright notice, 
this list of conditions and the following disclaimer.

    * Redistributions in binary form must reproduce the above copyright notice, 
this list of conditions and the following disclaimer in the documentation and/or 
other materials provided with the distribution.

    * Neither the name of Intel Corporation nor the names of its contributors 
may be used to endorse or promote products derived from this software without 
specific prior written permission.

 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, 
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY 
OF SUCH DAMAGE.

*///==============================================================================// EnumBase.h //       Declaration of the class EnumBase//==============================================================================#pragma once//==============================================================================//NetworkAdapter//==============================================================================struct InternalPowerStateEnum{public:	static const int Unknown = 0;	static const int Charged = 1;	static const int Charging = 2;	static const int Discharged = 3;	static const int Discharging = 4;};struct NetworkAdapterAdapterLinkEnum{public:	static const int Unknown = 0;	static const int LinkProtocol802_3 = 1;	static const int Gprs = 2;	static const int Cdma = 3;	static const int LinkProtocol802_11 = 4;	static const int IrDa = 5;	static const int Ieee1394 = 6;	static const int PhoneLine = 7;	static const int Bluetooth = 8;	static const int Uwb = 9;};struct NetworkAdapterConnectionStateEnum{public:	static const int Unknown = 0;	static const int Disconnected = 1;	static const int Connecting = 2;	static const int Connected = 3;	static const int Disconnecting = 4;	static const int HardwareNotPresent = 5;	static const int HardwareDisabled = 6;	static const int HardwareMalfunction = 7;	static const int Authenticating = 8;	static const int AuthenticationSucceeded = 9;	static const int AuthenticationFailed = 10;};struct LinkProtocolProtocolStateEnum{public:	static const int DeviceNotPresent = 1;	static const int DevicePresent = 2;	static const int MediaPresent = 3;	static const int NonZeroIpAddress = 4;};struct Protocol802_11OperatingModeEnum{public:	static const int Unknown = 0;	static const int Adhoc = 1;	static const int Infrastructure = 2;};struct Protocol802_11PowerModeEnum{public:	static const int ContinuousAccess = 1;	static const int FastPowerSaving = 2;	static const int MaxPowerSaving = 3;};struct RadioAdapterCardTypeEnum{public:	static const int Unknown = 0;	static const int Cardbus = 1;	static const int Pci = 2;	static const int MiniPci = 3;	static const int EmbeddedUsb = 4;	static const int DongleUsb = 5;	static const int CompactFlash = 6;};struct RadioAdapterHardwareRadioStateEnum{public:	static const int Unknown = 0;	static const int Enabled = 1;	static const int Disabled = 2;};struct RadioAdapterSoftwareRadioStateEnum{public:	static const int Unknown = 0;	static const int Enabled = 1;	static const int Disabled = 2;};struct WirelessProtocolBandEnum{public:	static const int Unknown = 0;	static const int Protocol802_11a = 1;	static const int Protocol802_11b = 2;	static const int Protocol802_11g = 3;	static const int None = 4;	static const int Pgsm = 5;	static const int Egsm = 6;	static const int Dcs = 7;	static const int PgsmDcs = 8;	static const int EgsmDcs = 9;	static const int Pcs = 10;	static const int PgsmPcs =  11;	static const int EgsmPcs = 12;	static const int Gsm850 = 13;	static const int Gsm850Pcs = 14;	static const int Cellular = 15;	static const int Auto = 16;	static const int Bluetooth = 17;};struct Protocol802_11BandEnum{public:	static const int Unknown = 0;	static const int Protocol802_11a = 1;	static const int Protocol802_11b = 2;	static const int Protocol802_11g = 3;};struct Protocol802_11AuthenticationModeEnum{public:	static const int Unknown = 0;	static const int Open = 1;	static const int Shared = 2;	static const int Wpa = 3;	static const int Wpa_Psk = 4;	static const int Rsn = 5;	static const int Rsn_Psk = 6;	static const int Ccx = 7;};struct Protocol802_11EncryptionModeEnum{public:	static const int Unknown = 0;	static const int NoWep = 1;	static const int Wep40 = 2;	static const int Wep104 = 3;	static const int Ckip40 = 4;	static const int Ckip104 = 5;	static const int Tkip = 6;	static const int Ccmp = 7;	static const int Wrap = 8;};struct Protocol802_11AssociationStateEnum{public:	static const int Unknown = 0;	static const int Associated = 1;	static const int NotAssociated = 2;	static const int IbssCreated = 3;	static const int IbssJoined = 4;	static const int Roamed = 5;};struct Protocol802_11SecurityModeEnum{public:	static const int Wep = 1;	static const int Ieee802_1x = 2;	static const int Leap = 3;	static const int Tkip = 4;	static const int Aes = 5;};struct Protocol802_11QosEnum{public:	static const int Unknown = 0;	static const int NoQos = 1;	static const int Ieee802_11e = 2;};struct ProtocolWwanEncryptionModeEnum{public:	static const int Unknown = 0;	static const int None = 1;	static const int Default = 2;	static const int Des = 3;	static const int Rc2 = 4;	static const int Rc4 = 5;	static const int Rc5 = 6;};struct ProtocolWwanPowerModeEnum{public:	static const int Unknown = 0;	static const int No = 1;	static const int Yes = 2;};struct ProtocolWwanChannelStateEnum{public:	static const int Unknown = 0;	static const int Scanning = 1;	static const int Acquired = 2;	static const int Sleep = 3;};struct ProtocolWwanRoamingStateEnum{public:	static const int Unknown = 0;	static const int Roaming = 1;	static const int Home = 2;};struct ProtocolWwanServiceIndicationEnum{public:	static const int Unknown = 0;	static const int Normal = 1;	static const int Emergency = 2;	static const int NoService = 3;	static const int AccessDifficulty = 4;	static const int ForbiddenPlmn = 5;	static const int ForbiddenArea = 6;	static const int ForbiddenRoaming = 7;	static const int IllegalMobStation = 8;	static const int IllegalMobEquip = 9;	static const int UnknownImsi = 10;	static const int AuthenticationFailure = 11;	static const int GprsFailed = 12;	static const int Analog = 13;	static const int Digital = 14;};struct ProtocolWwanCallStateEnum{public:	static const int Unknown = 0;	static const int Connecting = 1;	static const int Connected = 2;	static const int Incoming = 3;	static const int Disconnected = 4;	static const int Error = 5;	static const int Dormant = 6;};struct ProtocolWwanBandEnum{public:	static const int None = 1;	static const int Pgsm = 2;	static const int Egsm = 3;	static const int Dcs = 4;	static const int PgsmDcs = 5;	static const int EgsmDcs = 6;	static const int Pcs = 7;	static const int PgsmPcs = 8;	static const int EgsmPcs = 9;	static const int Gsm850 = 10;	static const int Gsm850Pcs = 11;	static const int Cellular = 12;	static const int Auto = 13;};struct ProtocolWwanCallCategoryEnum{public:	static const int Unknown = 0;	static const int VoiceCallLine1 = 1;	static const int VoiceCallLine2 = 2;	static const int Csd = 3;	static const int Fax = 4;	static const int Idle = 5;	static const int CnsAsyncData = 6;	static const int VoiceCall = 7;	static const int Packet = 8;	static const int AtAsyncData = 9;	static const int AtVoiceCall = 10;	static const int AtPacket = 11;	static const int Sms = 12;	static const int Ota = 13;	static const int CallWait = 14;	static const int Dormant = 15;	static const int Emergency = 16;};struct LinkProtocolLinkQualityEnum{public:	static const int NoSignalDetected = 1;	static const int VeryPoor = 2;	static const int Poor = 3;	static const int Fair = 4;	static const int Good = 5;	static const int Excellent = 6;};struct ProtocolGprsGprsClassEnum{public:	static const int InvalidService = 1;	static const int CircuitSwitched = 2;	static const int Gprs = 3;	static const int Combined = 4;};struct ProtocolCdmaAnswerStateEnum{public:	static const int Voice = 1;	static const int FaxOnce = 2;	static const int FaxAlways = 3;	static const int ModemOnce = 4;	static const int ModemAlways = 5;};struct ProtocolCdmaProtocolRevisionEnum{public:	static const int Jstd008 = 1;	static const int Is95 = 2;	static const int Is95A = 3;	static const int MinIs95B = 4;	static const int FullIs95B = 5;	static const int Cdma2000Rev0 = 6;	static const int Cdma2000Rev1 = 7;};struct Protocol802_11ModulationTypeEnum{public:	static const int Ieee802_11Fh = 1;	static const int Ieee802_11Ds = 2;	static const int Ieee802_11Ofdm5 = 3;	static const int Ieee802_11Ofdm24 = 4;};struct PlatformFeatureEnum{public:	static const int CentrinoMobileTechnology = 1;};//==============================================================================////==============================================================================// modified for PowerSource//struct BatteryConditionEnum{public:	static const int Unknown = 0;	static const int Charged = 1;	static const int Charging = 2;	static const int Discharged = 3;	static const int Discharging = 4;};struct OrientationEnum{	public:	static const int Landscape = 1;	static const int Portrait=2;	static const int InvertedLandscape=3;	static const int InvertedPortrait=4;};struct ScreenStateEnum{	public:	static const int Blanked=1;	static const int Unblanked=2;};struct PowerSourceEnum{public:	static const int External = 1;	static const int Internal = 2;};struct BluetoothConnectionStateEnum{public:	static const int Unknown = 0;	static const int Connected = 1;	static const int Disconnected = 2;};struct BluetoothHciVersionEnum{public:	static const int Unknown = 0;	static const int Version10b = 1;	static const int Version11 = 2;	static const int Version12 = 3;	static const int Version20 = 4;};struct BluetoothLmpVersionEnum{public:	static const int Unknown = 0;	static const int Version10 = 1;	static const int Version11 = 2;	static const int Version12 = 3;	static const int Version20 = 4;};struct BluetoothMajorDeviceClassEnum{public:	static const int Uncategorized = 1;	static const int Miscellaneous = 2;	static const int Computer = 3;	static const int Phone = 4;	static const int NetworkAccessPoint = 5;	static const int AudioVideo = 6;	static const int Peripheral = 7;	static const int Imaging = 8;	static const int Wearable = 9;};struct BluetoothRadioStateEnum{public:	static const int Unknown = 0;	static const int Enabled = 1;	static const int Disabled = 2;};struct BluetoothServiceClassEnum{public:	static const int LimitedDiscoverableMode = 1;	static const int Positioning = 2;	static const int Networking = 3;	static const int Rendering = 4;	static const int Capturing = 5;	static const int ObjectTransfer = 6;	static const int Audio = 7;	static const int Telephony = 8;	static const int Information = 9;};//Storage privider enum types//enum InterfaceEnum//{//    Other = 1,//	IDE,//    SCSI,//    SATA,//    USB,//    IEEE_1394,//	UltraDMA    //};struct PhysicalDiskInterfaceEnum{public:	static const int Other = 0;	static const int Ide = 1;	static const int Scsi = 2;	static const int Sata = 3;	static const int Usb = 4;	static const int Ieee1394 = 5;	static const int UltraDma = 6;	};//enum MediaEnum//{//    Fixed = 1,//    Removable//};struct PhysicalDiskMediaEnum{public:	static const int Fixed = 1;	static const int Removable = 2;};//enum AccessEnum//{//    None = 0,//    ReadOnly,//    ReadWrite//};struct LogicalDiskAccessEnum{public:		static const int None = 0;	static const int ReadOnly = 1;	static const int ReadWrite = 2;};//enum FormatEnum//{//    Unknown = 0,//	Unused,//    FAT16,//    FAT32,//    NTFS,//    JFS,//	EXT2,//	EXT3    //};struct LogicalDiskFormatEnum{public:		static const int Unknown = 0;	static const int Unused = 1;	static const int Fat16 = 2;	static const int Fat32 = 3;	static const int Ntfs = 4;	static const int Jfs = 5;	static const int Ext2 = 6;	static const int Ext3 = 7;	static const int Cdfs = 8;};//enum LocationEnum//{//    Local = 1,//    Remote,    //};struct LogicalDiskLocationEnum{public:		static const int Local = 1;	static const int Remote = 2;};struct ProcessorHtStateEnum{public:	static const int NotPresent = 1;	static const int DisabledByHardware = 2;	static const int DisabledBySoftware = 3;	static const int Enabled = 4;};struct ProcessorCacheTypeEnum{public:	static const int L1Instruction = 1;	static const int L1Data = 2;	static const int L2Unified = 3;	static const int Trace = 4;	static const int L3Unified = 5;};struct ProcessorX86FeatureEnum{public:	static const int Cpuid = 1;	static const int Daz = 2;	static const int Rdtsc = 3;	static const int Cmov = 4;	static const int Mmx = 5;	static const int Sse = 6;	static const int Sse2 = 7;	static const int Sse3 = 8;	static const int HyperThreading = 9;	static const int Eist = 10;	static const int Em64t = 11;	static const int Xd = 12;};struct ProcessorArmFeatureEnum{public:    static const int Wmmx = 1;};// Wei, James//enum BatteryConditionType//{//	Undetermined = 0,//	Charging,//	Discharging,//	Charged,//	Discharged,//	PartlyCharged//};////enum CPowerSourceType//{//	Internal = 1,//	External//};enum CacheInfoType{	L1Instruction = 1,	L1Data,	L2Unified,	Trace,	L3Unified};//==========================================================================

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -