tdehwcommontypes.h
00001 /* This file is part of the TDE libraries 00002 Copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net> 00003 (C) 2013 Golubev Alexander <fatzer2@gmail.com> 00004 00005 This library is free software; you can redistribute it and/or 00006 modify it under the terms of the GNU Library General Public 00007 License version 2 as published by the Free Software Foundation. 00008 00009 This library is distributed in the hope that it will be useful, 00010 but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 Library General Public License for more details. 00013 00014 You should have received a copy of the GNU Library General Public License 00015 along with this library; see the file COPYING.LIB. If not, write to 00016 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00017 Boston, MA 02110-1301, USA. 00018 */ 00019 00020 #ifndef _TDEHWCOMMON_H 00021 #define _TDEHWCOMMON_H 00022 00023 // Keep readGenericDeviceTypeFromString(), getFriendlyDeviceTypeStringFromType(), and getDeviceTypeIconFromType() in tdehardwaredevices.cpp in sync with this enum 00024 namespace TDEGenericDeviceType { 00025 enum TDEGenericDeviceType { 00026 Root, 00027 RootSystem, 00028 CPU, 00029 GPU, 00030 RAM, 00031 Bus, 00032 I2C, 00033 MDIO, 00034 Mainboard, 00035 Disk, 00036 SCSI, 00037 StorageController, 00038 Mouse, 00039 Keyboard, 00040 HID, 00041 Modem, 00042 Monitor, 00043 Network, 00044 Printer, 00045 Scanner, 00046 Sound, 00047 VideoCapture, 00048 IEEE1394, 00049 PCMCIA, 00050 Camera, 00051 TextIO, 00052 Serial, 00053 Parallel, 00054 Peripheral, 00055 Backlight, 00056 Battery, 00057 PowerSupply, 00058 Dock, 00059 ThermalSensor, 00060 ThermalControl, 00061 BlueTooth, 00062 Bridge, 00063 Platform, 00064 Cryptography, 00065 Event, 00066 Input, 00067 PNP, 00068 OtherACPI, 00069 OtherUSB, 00070 OtherMultimedia, 00071 OtherPeripheral, 00072 OtherSensor, 00073 OtherVirtual, 00074 Other, 00075 Last = Other 00076 }; 00077 }; 00078 00079 namespace TDEDisplayPowerLevel { 00080 enum TDEDisplayPowerLevel { 00081 On, 00082 Standby, 00083 Suspend, 00084 Off 00085 }; 00086 }; 00087 00088 namespace TDEHardwareEvent { 00089 enum TDEHardwareEvent { 00090 HardwareListModified, 00091 MountTableModified, 00092 HardwareAdded, 00093 HardwareRemoved, 00094 HardwareUpdated, 00095 Other, 00096 Last = Other 00097 }; 00098 }; 00099 00100 #endif // _TDEHWCOMMON_H