equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef HSCLOCKWIDGETTIMER_H |
|
19 #define HSCLOCKWIDGETTIMER_H |
|
20 |
|
21 #include <QObject> |
|
22 |
|
23 #include <hstest_global.h> |
|
24 |
|
25 HOMESCREEN_TEST_CLASS(TestClockWidget) |
|
26 |
|
27 class QTimer; |
|
28 |
|
29 class HsClockWidgetTimer : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 ~HsClockWidgetTimer(); |
|
35 |
|
36 static HsClockWidgetTimer *instance(); |
|
37 |
|
38 signals: |
|
39 void tick(); |
|
40 |
|
41 protected: |
|
42 void connectNotify(const char *signal); |
|
43 void disconnectNotify(const char *signal); |
|
44 |
|
45 private: |
|
46 HsClockWidgetTimer(QObject *parent = 0); |
|
47 Q_DISABLE_COPY(HsClockWidgetTimer) |
|
48 |
|
49 private slots: |
|
50 void onTick(); |
|
51 |
|
52 private: |
|
53 QTimer *mTimer; |
|
54 static HsClockWidgetTimer *mInstance; |
|
55 |
|
56 HOMESCREEN_TEST_FRIEND_CLASS(TestClockWidget) |
|
57 }; |
|
58 |
|
59 #endif // HSCLOCKWIDGETTIMER_H |