screensaver/screensaverplugins/snsrbigclockscreensaverplugin/inc/snsroleddigitalclockcontainer.h
equal
deleted
inserted
replaced
18 #ifndef SNSROLEDDIGITALCLOCKCONTAINER_H |
18 #ifndef SNSROLEDDIGITALCLOCKCONTAINER_H |
19 #define SNSROLEDDIGITALCLOCKCONTAINER_H |
19 #define SNSROLEDDIGITALCLOCKCONTAINER_H |
20 |
20 |
21 #include "snsrbigclockcontainer.h" |
21 #include "snsrbigclockcontainer.h" |
22 |
22 |
|
23 |
23 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin) |
24 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin) |
24 |
25 |
25 class HbLabel; |
26 class SnsrLabel; |
|
27 class SnsrOledTimeLabel; |
26 |
28 |
27 class SnsrOledDigitalClockContainer : public SnsrBigClockContainer |
29 class SnsrOledDigitalClockContainer : public SnsrBigClockContainer |
28 { |
30 { |
29 Q_OBJECT |
31 Q_OBJECT |
30 |
32 |
34 ~SnsrOledDigitalClockContainer(); |
36 ~SnsrOledDigitalClockContainer(); |
35 |
37 |
36 public slots: |
38 public slots: |
37 |
39 |
38 virtual void update(); |
40 virtual void update(); |
39 virtual void changeLayout(Qt::Orientation orientation); |
|
40 void updatePosition(); |
41 void updatePosition(); |
41 |
42 |
42 public: // from base classes |
43 public: // from base classes |
43 |
44 |
44 virtual int updateIntervalInMilliseconds(); |
45 virtual int updateIntervalInMilliseconds(); |
|
46 virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow); |
|
47 virtual bool isOrientationLocked(); |
|
48 |
|
49 protected: // from base classes |
|
50 |
|
51 virtual void loadWidgets(); |
45 |
52 |
46 private: |
53 private: |
47 |
54 |
48 QGraphicsWidget *mClockContainer; |
55 QGraphicsWidget *mClockContainer; |
49 |
56 |
50 HbLabel *mTimeLabel; |
57 SnsrLabel *mAmPmLabel; |
51 HbLabel *mDateLabel; |
58 SnsrOledTimeLabel *mTimeLabel; |
52 HbLabel *mAmPmLabel; |
59 SnsrLabel *mDateLabel; |
53 |
60 |
54 QPointF mDestPosition; |
61 QPointF mDestPosition; |
55 bool mInitialize; |
62 bool mInitialize; |
56 |
63 |
57 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin) |
64 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin) |
58 }; |
65 }; |