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 CPMAINVIEW_H |
|
18 #define CPMAINVIEW_H |
|
19 |
|
20 #include <cpbasesettingview.h> |
|
21 |
|
22 class CpMainModel; |
|
23 class HbAbstractViewItem; |
|
24 class HbDataFormModelItem; |
|
25 class CpItemDataHelper; |
|
26 class HbMainWindow; |
|
27 class HbActivityManager; |
|
28 |
|
29 class CpMainView : public CpBaseSettingView |
|
30 { |
|
31 Q_OBJECT |
|
32 public: |
|
33 explicit CpMainView(HbMainWindow *mainWindow = 0); |
|
34 virtual ~CpMainView(); |
|
35 bool event(QEvent *e); |
|
36 public slots: |
|
37 void loadActivity(); |
|
38 void saveActivity(); |
|
39 private slots: |
|
40 void initializeMainModel(); |
|
41 void onAboutToChangeView(HbView * oldView, HbView *newView); |
|
42 void onDataFormItemActivated(const QModelIndex &index); |
|
43 private: |
|
44 Q_DISABLE_COPY(CpMainView) |
|
45 private: |
|
46 CpMainModel *mMainModel; |
|
47 CpItemDataHelper *mItemDataHelper; |
|
48 HbMainWindow *mMainWindow; |
|
49 // not own |
|
50 HbActivityManager *mActivityManager; |
|
51 |
|
52 QPixmap mScreenshot; |
|
53 }; |
|
54 |
|
55 #endif |
|
56 //End of file |
|
57 |
|