on xenial help sign in
Update mock Powerd too
commitc7b1ddb668d3ab68cee003e3e4903cec4c009150 authorMichael Terry <michael.terry@canonical.com> dateTue 20 Aug 2013, 18:18 (13 years ago) parentd777ec6
1 file changed+8−2
tests/mocks/Powerd/Powerd.h+8−2
tests/mocks/Powerd/Powerd.h+8−2
@@ -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