@@ -28,9 +28,16 @@ class Powerd: public QObject
30 Q_ENUMS(Status)
30 Q_ENUMS(Status)
31− Q_FLAGS(DisplayFlag DisplayFlags)
31+ Q_ENUMS(DisplayStateChangeReason)
34+ enum DisplayStateChangeReason {
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
34 enum Status {
41 enum Status {
@@ -40,7 +47,7 @@ public:
40 ~Powerd();
47 ~Powerd();
43− void displayPowerStateChange(int status);
50+ void displayPowerStateChange(int status, int reason);
46 QDBusInterface *powerd;
53 QDBusInterface *powerd;