|
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 * Header file for class ClockViewManager. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef CLOCKVIEWMANAGER_H |
|
20 #define CLOCKVIEWMANAGER_H |
|
21 |
|
22 // System includes |
|
23 #include <QObject> |
|
24 |
|
25 // User includes |
|
26 #include "clockviewmanagerdefines.h" |
|
27 #include "clockdatatypes.h" |
|
28 |
|
29 // Forward declarations |
|
30 class ClockAppControllerIf; |
|
31 class ClockMainView; |
|
32 class ClockWorldView; |
|
33 |
|
34 class ClockViewManager : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 CLOCKVIEWMANAGER_EXPORT ClockViewManager( |
|
40 ClockAppControllerIf &controllerIf, QObject *parent = 0); |
|
41 CLOCKVIEWMANAGER_EXPORT ~ClockViewManager(); |
|
42 |
|
43 public: |
|
44 CLOCKVIEWMANAGER_EXPORT void showView(ClockViews view); |
|
45 |
|
46 signals: |
|
47 void appReady(); |
|
48 |
|
49 private: |
|
50 void loadMainView(); |
|
51 void loadWorldClockView(); |
|
52 |
|
53 private slots: |
|
54 void loadOtherViews(); |
|
55 |
|
56 private: |
|
57 ClockAppControllerIf &mAppControllerIf; |
|
58 ClockMainView *mMainView; |
|
59 ClockWorldView *mWorldClockView; |
|
60 |
|
61 private: |
|
62 Q_DISABLE_COPY(ClockViewManager) |
|
63 }; |
|
64 |
|
65 #endif // CLOCKVIEWMANAGER_H |
|
66 |
|
67 // End of file --Don't remove this. |