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 #ifndef VIEWMANAGER_H_ |
|
18 #define VIEWMANAGER_H_ |
|
19 |
|
20 #include <hbmainwindow.h> |
|
21 #include <hbview.h> |
|
22 #include <QVariant> |
|
23 class HbApplication; |
|
24 class figurewidget; |
|
25 class AfActivityStorage; |
|
26 class AfActivation; |
|
27 |
|
28 #include <QFile> |
|
29 #include <QTextStream> |
|
30 #include <afactivities_global.h> |
|
31 |
|
32 class viewmanager : public HbMainWindow |
|
33 { |
|
34 Q_OBJECT |
|
35 public: |
|
36 viewmanager(HbApplication *hbapp); |
|
37 virtual ~viewmanager(); |
|
38 figurewidget* currentWidget(); |
|
39 |
|
40 private: |
|
41 figurewidget *mSw; |
|
42 figurewidget *mTw; |
|
43 figurewidget *mCw; |
|
44 HbView *mSView; |
|
45 HbView *mTView; |
|
46 HbView *mCView; |
|
47 |
|
48 private slots: |
|
49 void totriangle(); |
|
50 void tosqure(); |
|
51 void tocircle(); |
|
52 |
|
53 void save(); |
|
54 void del(); |
|
55 |
|
56 public slots: |
|
57 void loadActivityData(Af::ActivationReason reason, const QString &name, QVariantHash parameter); |
|
58 |
|
59 public: |
|
60 void loadActivityData(const QVariant &data, bool startup); |
|
61 |
|
62 private: |
|
63 QString mStatename; |
|
64 QVariant mSaveVariant; |
|
65 HbApplication *mHbApp; |
|
66 AfActivityStorage* mActivityStorage; |
|
67 AfActivation* mActivation; |
|
68 |
|
69 }; |
|
70 |
|
71 #endif /* VIEWMANAGER_H_ */ |