on xenial help sign in
Update mock Powerd too
c7b1ddbMichael Terry
tests/mocks/Powerd/Powerd.h+8−2
@@ -20,17 +20,23 @@
20#define UNITY_MOCK_POWERD_H
20#define UNITY_MOCK_POWERD_H
21
21
22#include <QtCore/QObject>
22#include <QtCore/QObject>
23−#include <QtDBus/QDBusInterface>
24
23
25class Powerd: public QObject
24class Powerd: public QObject
26{
25{
27 Q_OBJECT
26 Q_OBJECT
27+ Q_FLAGS(DisplayFlags)
28
28
29public:
29public:
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+
30 explicit Powerd(QObject *parent = 0);
36 explicit Powerd(QObject *parent = 0);
31
37
32Q_SIGNALS:
38Q_SIGNALS:
33− void powerStateChange(int state);
39+ void displayPowerStateChange(int state, unsigned int flags);
34};
40};
35
41
36#endif
42#endif