@@ -26,19 +26,26 @@
26class Powerd: public QObject
26class Powerd: public QObject
29− Q_FLAGS(DisplayFlags)
30+ Q_FLAGS(DisplayFlag DisplayFlags)
32− enum DisplayFlags {
33+ enum DisplayFlag {
33 UseProximity = 1, // Use proximity sensor to override screen state
34 UseProximity = 1, // Use proximity sensor to override screen state
34 DisableAutoBrightness = 2, // Force autobrightness to be disabled
35 DisableAutoBrightness = 2, // Force autobrightness to be disabled
35 Bright = 4, // Request the screen to stay bright
36 Bright = 4, // Request the screen to stay bright
38+ Q_DECLARE_FLAGS(DisplayFlags, DisplayFlag)
38 explicit Powerd(QObject *parent = 0);
45 explicit Powerd(QObject *parent = 0);
41− void displayPowerStateChange(int state, unsigned int flags);
48+ void displayPowerStateChange(int status, unsigned int flags);
44 QDBusInterface *powerd;
51 QDBusInterface *powerd;