tdecore
tdemonitordevice.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _TDEMONITORDEVICE_H
00021 #define _TDEMONITORDEVICE_H
00022
00023 #include "tdegenericdevice.h"
00024 #include "tdehwcommontypes.h"
00025
00026 typedef TQPair<unsigned int, unsigned int> TDEResolutionPair;
00027 typedef TQValueList< TDEResolutionPair > TDEResolutionList;
00028
00029 class TDECORE_EXPORT TDEMonitorDevice : public TDEGenericDevice
00030 {
00031 public:
00036 TDEMonitorDevice(TDEGenericDeviceType::TDEGenericDeviceType dt, TQString dn=TQString::null);
00037
00041 ~TDEMonitorDevice();
00042
00046 bool connected();
00047
00051 bool enabled();
00052
00056 TQByteArray edid();
00057
00061 TDEResolutionList resolutions();
00062
00066 TQString portType();
00067
00071 TDEDisplayPowerLevel::TDEDisplayPowerLevel powerLevel();
00072
00073 protected:
00078 void internalSetConnected(bool cn);
00079
00084 void internalSetEnabled(bool en);
00085
00090 void internalSetEdid(TQByteArray ed);
00091
00096 void internalSetResolutions(TDEResolutionList rs);
00097
00102 void internalSetPortType(TQString pt);
00103
00108 void internalSetPowerLevel(TDEDisplayPowerLevel::TDEDisplayPowerLevel pl);
00109
00110 private:
00111 bool m_connected;
00112 bool m_enabled;
00113 TQByteArray m_edid;
00114 TDEResolutionList m_resolutions;
00115 TQString m_portType;
00116 TDEDisplayPowerLevel::TDEDisplayPowerLevel m_powerLevel;
00117
00118 friend class TDEHardwareDevices;
00119 };
00120
00121
00122 #endif // _TDEMONITORDEVICE_H