• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

qmdisplaystate.h

Go to the documentation of this file.
00001 
00033 #ifndef QMDISPLAYSTATE_H
00034 #define QMDISPLAYSTATE_H
00035 #include "system_global.h"
00036 #include <QtCore/qobject.h>
00037 
00038 QT_BEGIN_HEADER
00039 
00040 namespace MeeGo {
00041 
00042 class QmDisplayStatePrivate;
00043 
00050 class MEEGO_SYSTEM_EXPORT QmDisplayState : public QObject
00051 {
00052     Q_OBJECT
00053     Q_ENUMS(DisplayState)
00054     Q_PROPERTY(DisplayState state READ get WRITE set)
00055 
00056 public:
00058     enum DisplayState
00059     {
00060         Off = -1,   
00061         Dimmed = 0, 
00062         On = 1,      
00063         Unknown      
00064     };
00065 
00066 public:
00071     QmDisplayState(QObject *parent = 0);
00072     ~QmDisplayState();
00073 
00078     DisplayState get() const;
00079 
00085     bool set(DisplayState state);
00086 
00092     bool setBlankingPause(void);
00093 
00098     bool cancelBlankingPause(void);
00099 
00105     int getMaxDisplayBrightnessValue();
00106 
00112     int getDisplayBrightnessValue();
00113 
00119     int getDisplayBlankTimeout();
00120 
00126     int getDisplayDimTimeout();
00127 
00133     bool getBlankingWhenCharging();
00134 
00140     void setDisplayBrightnessValue(int brightness);
00141 
00146     void setDisplayBlankTimeout(int timeout);
00147 
00152     void setDisplayDimTimeout(int timeout);
00153 
00159     void setBlankingWhenCharging(bool blanking);
00160 
00161 Q_SIGNALS:
00166     void displayStateChanged(MeeGo::QmDisplayState::DisplayState state);
00167 
00168 protected:
00169     void connectNotify(const char *signal);
00170     void disconnectNotify(const char *signal);
00171 
00172 private:
00173     Q_DISABLE_COPY(QmDisplayState)
00174     MEEGO_DECLARE_PRIVATE(QmDisplayState)
00175 };
00176 
00177 } //MeeGo namespace
00178 
00179 QT_END_HEADER
00180 
00181 #endif /* QMDISPLAYSTATE_H */
00182 
00183 // End of file

Generated on Mon Jul 4 2011 14:27:35 for QmSystem by  doxygen 1.7.1