@@ -20,17 +20,23 @@
20#define UNITY_MOCK_POWERD_H
20#define UNITY_MOCK_POWERD_H
22#include <QtCore/QObject>
22#include <QtCore/QObject>
23−#include <QtDBus/QDBusInterface>
25class Powerd: public QObject
24class Powerd: public QObject
27+ Q_FLAGS(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
30 explicit Powerd(QObject *parent = 0);
36 explicit Powerd(QObject *parent = 0);
33− void powerStateChange(int state);
39+ void displayPowerStateChange(int state, unsigned int flags);