|
1 /* |
|
2 * Copyright (c) 2010 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: Menu Application Library state. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef HSVIEWAPPSETTINGSSTATE_H |
|
20 #define HSVIEWAPPSETTINGSSTATE_H |
|
21 |
|
22 #include <QState> |
|
23 |
|
24 #include "hsmenustates_global.h" |
|
25 #include "hbmainwindow.h" |
|
26 |
|
27 HS_STATES_TEST_CLASS(MenuStatesTest) |
|
28 |
|
29 class HsMenuService; |
|
30 class HbView; |
|
31 class HbAction; |
|
32 class CaNotifier; |
|
33 |
|
34 class HsViewAppSettingsState : public QState |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest) |
|
39 |
|
40 public: |
|
41 |
|
42 /** |
|
43 * Constructor. |
|
44 * |
|
45 * @since S60 ?S60_version. |
|
46 * @param parent Owner. |
|
47 */ |
|
48 HsViewAppSettingsState(QState *parent = 0); |
|
49 |
|
50 /** |
|
51 * Destructor. |
|
52 * |
|
53 * @since S60 ?S60_version. |
|
54 */ |
|
55 virtual ~HsViewAppSettingsState(); |
|
56 |
|
57 private slots: |
|
58 |
|
59 /** |
|
60 * Slot connected trrigger action of secondary soft key of check list box. |
|
61 * It is called when done button is selected. |
|
62 * |
|
63 * @since S60 ?S60_version. |
|
64 */ |
|
65 void settingsDone(); |
|
66 |
|
67 signals: |
|
68 void initialize(const QString &aUid); |
|
69 |
|
70 protected: |
|
71 |
|
72 void onEntry(QEvent *event); |
|
73 |
|
74 private: |
|
75 |
|
76 /** |
|
77 * Constructs contained objects. |
|
78 * |
|
79 * @since S60 ?S60_version. |
|
80 */ |
|
81 void construct(); |
|
82 |
|
83 /** |
|
84 * Returns pointer to tha main window. |
|
85 * |
|
86 * @since S60 ?S60_version. |
|
87 * @return Pointer to the main window. |
|
88 */ |
|
89 HbMainWindow *mainWindow() const; |
|
90 |
|
91 void subscribeForMemoryCardRemove(int entryId); |
|
92 |
|
93 private: |
|
94 /** |
|
95 * View. Owned. |
|
96 */ |
|
97 HbView *mView; |
|
98 |
|
99 /** |
|
100 * Previous view. Not owned. |
|
101 */ |
|
102 HbView *mPreviousView; |
|
103 |
|
104 /** |
|
105 * Confirm action. Owned. |
|
106 */ |
|
107 HbAction *mActionConfirm; |
|
108 |
|
109 CaNotifier *mNotifier; |
|
110 |
|
111 }; |
|
112 |
|
113 |
|
114 |
|
115 #endif //HSVIEWAPPSETTINGSSTATE_H |