ab6adbb4f27c9b8bdbb3830beb98329288fdd66f
[harmattan/cameraplus] / src / displaystate.h
1 // -*- c++ -*-
2
3 #ifndef DISPLAY_STATE_H
4 #define DISPLAY_STATE_H
5
6 #include <QObject>
7
8 class QTimer;
9 namespace MeeGo {
10   class QmDisplayState;
11 };
12
13 class DisplayState : public QObject {
14   Q_OBJECT
15   Q_PROPERTY(bool inhibitDim READ isDimInhibited WRITE setInhibitDim NOTIFY inhibitDimChanged);
16
17 public:
18   DisplayState(QObject *parent = 0);
19   ~DisplayState();
20
21   bool isDimInhibited() const;
22   void setInhibitDim(bool inhibit);
23
24 signals:
25   void inhibitDimChanged();
26
27 private slots:
28   void timeout();
29
30 private:
31   MeeGo::QmDisplayState *m_state;
32   QTimer *m_timer;
33 };
34
35 #endif /* DISPLAY_STATE_H */