equal
deleted
inserted
replaced
21 #include <HbPopup> |
21 #include <HbPopup> |
22 #include <HbDeviceDialogInterface> |
22 #include <HbDeviceDialogInterface> |
23 |
23 |
24 |
24 |
25 |
25 |
26 |
26 #include "screensaver.h" |
27 #include "snsrtest_global.h" |
27 #include "snsrtest_global.h" |
28 |
28 |
29 class Screensaver; |
29 class Screensaver; |
30 class SnsrUserActivityServiceInterface; |
30 class SnsrUserActivityServiceInterface; |
31 class QGraphicsLinearLayout; |
31 class QGraphicsLinearLayout; |
32 class XQSettingsManager; |
32 class XQSettingsManager; |
|
33 class HbIndicatorInterface; |
33 |
34 |
34 SCREENSAVER_TEST_CLASS(T_SnsrDeviceDialogPlugin) |
35 SCREENSAVER_TEST_CLASS(T_SnsrDeviceDialogPlugin) |
35 |
|
36 class HbIndicatorInterface; |
|
37 |
36 |
38 |
37 |
39 class SnsrDeviceDialog: public HbPopup, public HbDeviceDialogInterface |
38 class SnsrDeviceDialog: public HbPopup, public HbDeviceDialogInterface |
40 { |
39 { |
41 |
40 |
53 ViewTypeActive, |
52 ViewTypeActive, |
54 ViewTypeStandby |
53 ViewTypeStandby |
55 }; |
54 }; |
56 |
55 |
57 static const char *dataKeyUnlock; |
56 static const char *dataKeyUnlock; |
|
57 static const char *dataKeySwitchLights; |
|
58 static const char *dataKeySwitchLowPower; |
58 |
59 |
59 public: // methods |
60 public: // methods |
60 |
61 |
61 SnsrDeviceDialog(const QVariantMap ¶meters, QGraphicsItem *parent = 0); |
62 SnsrDeviceDialog(const QVariantMap ¶meters, QGraphicsItem *parent = 0); |
62 ~SnsrDeviceDialog(); |
63 ~SnsrDeviceDialog(); |
75 |
76 |
76 void changeView(QGraphicsWidget *widget); |
77 void changeView(QGraphicsWidget *widget); |
77 void screensaverFaulted(); |
78 void screensaverFaulted(); |
78 void changeLayout(Qt::Orientation); |
79 void changeLayout(Qt::Orientation); |
79 void requestUnlock(); |
80 void requestUnlock(); |
|
81 void requestScreenMode(Screensaver::ScreenPowerMode mode); |
80 // slots for signals emitted by HbIndicatorPluginManager |
82 // slots for signals emitted by HbIndicatorPluginManager |
81 void indicatorsActivated(const QList<HbIndicatorInterface*> &activatedIndicators); |
83 void indicatorsActivated(const QList<HbIndicatorInterface*> &activatedIndicators); |
82 void indicatorActivated(HbIndicatorInterface *activatedIndicator); |
84 void indicatorActivated(HbIndicatorInterface *activatedIndicator); |
83 void indicatorRemoved(HbIndicatorInterface *indicatorRemoved); |
85 void indicatorRemoved(HbIndicatorInterface *indicatorRemoved); |
84 |
86 |