@@ -28,9 +28,16 @@ class Powerd: public QObject
2828{
2929 Q_OBJECT
3030 Q_ENUMS(Status)
31− Q_FLAGS(DisplayFlag DisplayFlags)
31+ Q_ENUMS(DisplayStateChangeReason)
3232
3333public:
34+ enum DisplayStateChangeReason {
35+ Normal = 0,
36+ Inactivity = 1, // Display changed state due to inactivity
37+ PowerKey = 2, // Display changed state due to user pressing power key
38+ Proximity = 3, // Display changed state due to proximity events
39+ };
40+
3441 enum Status {
3542 Off,
3643 On,
@@ -40,7 +47,7 @@ public:
4047 ~Powerd();
4148
4249Q_SIGNALS:
43− void displayPowerStateChange(int status);
50+ void displayPowerStateChange(int status, int reason);
4451
4552private:
4653 QDBusInterface *powerd;