@@ -20,17 +20,23 @@
2020#define UNITY_MOCK_POWERD_H
2121
2222#include <QtCore/QObject>
23−#include <QtDBus/QDBusInterface>
2423
2524class Powerd: public QObject
2625{
2726 Q_OBJECT
27+ Q_FLAGS(DisplayFlags)
2828
2929public:
30+ enum DisplayFlags {
31+ UseProximity = 1, // Use proximity sensor to override screen state
32+ DisableAutoBrightness = 2, // Force autobrightness to be disabled
33+ Bright = 4, // Request the screen to stay bright
34+ };
35+
3036 explicit Powerd(QObject *parent = 0);
3137
3238Q_SIGNALS:
33− void powerStateChange(int state);
39+ void displayPowerStateChange(int state, unsigned int flags);
3440};
3541
3642#endif