00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _TDEINPUTDEVICE_H
00021 #define _TDEINPUTDEVICE_H
00022
00023 #include "tdegenericdevice.h"
00024
00025 namespace TDEInputDeviceType {
00026 enum TDEInputDeviceType {
00027 Unknown,
00028 ACPILidSwitch,
00029 ACPISleepButton,
00030 ACPISuspendButton,
00031 ACPIPowerButton,
00032 ACPIOtherInput,
00033 Other = 0x80000000
00034 };
00035 };
00036
00037 class TDECORE_EXPORT TDEInputDevice : public TDEGenericDevice
00038 {
00039 public:
00044 TDEInputDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
00045
00049 ~TDEInputDevice();
00050
00054 TDEInputDeviceType::TDEInputDeviceType inputType();
00055
00056 protected:
00061 void internalSetInputType(TDEInputDeviceType::TDEInputDeviceType it);
00062
00063 private:
00064 TDEInputDeviceType::TDEInputDeviceType m_inputType;
00065
00066 friend class TDEHardwareDevices;
00067 };
00068
00069 #endif // _TDEINPUTDEVICE_H