screensaver/screensaverplugins/snsrbigclockscreensaverplugin/inc/snsrbigclockscreensaver.h
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2009 - 2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
26 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin) |
26 SCREENSAVER_TEST_CLASS(T_SnsrBigClockScreensaverPlugin) |
27 |
27 |
28 class HbMainWindow; |
28 class HbMainWindow; |
29 class SnsrBigClockContainer; |
29 class SnsrBigClockContainer; |
30 class SnsrIndicatorModel; |
30 class SnsrIndicatorModel; |
|
31 class XQSettingsManager; |
31 |
32 |
32 class SnsrBigClockScreensaver : public Screensaver |
33 class SnsrBigClockScreensaver : public Screensaver |
33 { |
34 { |
34 Q_OBJECT |
35 Q_OBJECT |
35 |
36 |
58 virtual bool onPowerSave(); |
59 virtual bool onPowerSave(); |
59 virtual bool onClose(); |
60 virtual bool onClose(); |
60 virtual void onHandleActiveIndicators(const QList<HbIndicatorInterface*> &activeIndicators); |
61 virtual void onHandleActiveIndicators(const QList<HbIndicatorInterface*> &activeIndicators); |
61 virtual void onHandleActivatedIndicator(HbIndicatorInterface *activatedIndicator); |
62 virtual void onHandleActivatedIndicator(HbIndicatorInterface *activatedIndicator); |
62 virtual void onHandleDeactivatedIndicator(HbIndicatorInterface *deactivatedIndicator); |
63 virtual void onHandleDeactivatedIndicator(HbIndicatorInterface *deactivatedIndicator); |
|
64 virtual void getActiveScreenRows(int *firstActiveRow, int *lastActiveRow); |
|
65 virtual void updateLayout(); |
63 |
66 |
|
67 private slots: |
|
68 |
|
69 void updateActiveAreaForLowPower(); |
64 |
70 |
65 private: |
71 private: |
66 |
72 |
67 QTimer mTimer; |
73 QTimer mTimer; |
68 HbMainWindow *mMainWindow; |
74 HbMainWindow *mMainWindow; |
69 SnsrBigClockContainer *mCurrentContainer; |
75 SnsrBigClockContainer *mCurrentContainer; |
70 SnsrIndicatorModel *mIndicatorModel; |
76 SnsrIndicatorModel *mIndicatorModel; |
71 |
77 XQSettingsManager *m_setManager; |
|
78 |
72 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin) |
79 SCREENSAVER_TEST_FRIEND_CLASS(T_SnsrBigClockScreensaverPlugin) |
73 |
80 |
74 }; |
81 }; |
75 |
82 |
76 #endif // SNSRBIGCLOCKSCREENSAVER_H |
83 #endif // SNSRBIGCLOCKSCREENSAVER_H |