1 /* |
|
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Container for oled digital clock. |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef SNSROLEDDIGITALCLOCKCONTAINER_H |
|
19 #define SNSROLEDDIGITALCLOCKCONTAINER_H |
|
20 |
|
21 #include "snsrbigclockcontainer.h" |
|
22 |
|
23 |
|
24 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin) |
|
25 |
|
26 class SnsrLabel; |
|
27 class SnsrOledTimeLabel; |
|
28 |
|
29 class SnsrOledDigitalClockContainer : public SnsrBigClockContainer |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 |
|
35 SnsrOledDigitalClockContainer(); |
|
36 ~SnsrOledDigitalClockContainer(); |
|
37 |
|
38 public slots: |
|
39 |
|
40 virtual void update(); |
|
41 void updatePosition(); |
|
42 |
|
43 public: // from base classes |
|
44 |
|
45 virtual int updateIntervalInMilliseconds(); |
|
46 virtual Screensaver::ScreenPowerMode displayPowerMode(); |
|
47 virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow); |
|
48 virtual bool isOrientationLocked(); |
|
49 |
|
50 protected: // from base classes |
|
51 |
|
52 virtual void loadWidgets(); |
|
53 |
|
54 private: |
|
55 |
|
56 QGraphicsWidget *mClockContainer; |
|
57 |
|
58 SnsrLabel *mAmPmLabel; |
|
59 SnsrOledTimeLabel *mTimeLabel; |
|
60 SnsrLabel *mDateLabel; |
|
61 |
|
62 QPointF mDestPosition; |
|
63 bool mInitialize; |
|
64 |
|
65 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin) |
|
66 }; |
|
67 |
|
68 #endif // SNSROLEDDIGITALCLOCKCONTAINER_H |
|