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:This is the manager class for managing multiple views |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MSGSETTINGSVIEWMANAGER_H |
|
19 #define MSGSETTINGSVIEWMANAGER_H |
|
20 |
|
21 #include <QObject> |
|
22 class MsgAdvancedSettingsView; |
|
23 class MsgSMSCenterView; |
|
24 class HbAction; |
|
25 class MsgBaseView; |
|
26 |
|
27 /** |
|
28 * View manager for the messaging application. This is a singleton |
|
29 * class. Creates and activates the specified view. |
|
30 */ |
|
31 class MsgSettingsViewManager : public QObject |
|
32 { |
|
33 Q_OBJECT |
|
34 |
|
35 public: |
|
36 /** |
|
37 * Get an instance of the view manager |
|
38 */ |
|
39 MsgSettingsViewManager(QObject* parent = 0); |
|
40 |
|
41 /** |
|
42 * Destructor |
|
43 */ |
|
44 virtual ~MsgSettingsViewManager(); |
|
45 |
|
46 /** |
|
47 * open the advanced settings view |
|
48 */ |
|
49 void openAdvancedView(); |
|
50 |
|
51 /** |
|
52 * open messageCenterView |
|
53 * @param mode display either in addition or edit mode |
|
54 * @example 0 - displays in add mode |
|
55 * 1 - displays in edit mode |
|
56 */ |
|
57 void openMessageCenterView(int mode); |
|
58 |
|
59 signals: |
|
60 void advancedSettingsViewClosed(); |
|
61 |
|
62 private slots: |
|
63 void closeAdvancedSettingsView(); |
|
64 void openSmsCenterView(int mode); |
|
65 void closeSMSCCenterView(); |
|
66 |
|
67 private: |
|
68 |
|
69 /** |
|
70 * List View. |
|
71 * Own. |
|
72 */ |
|
73 MsgAdvancedSettingsView* mAdvancedSettingsView; |
|
74 |
|
75 /** |
|
76 * SMS Center view |
|
77 */ |
|
78 MsgSMSCenterView* mSMSCenterView; |
|
79 |
|
80 HbAction* mBackAction; |
|
81 }; |
|
82 |
|
83 #endif /* MSGSETTINGSVIEWMANAGER_H */ |
|