author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:45:25 +0300 | |
changeset 52 | 12db4185673b |
parent 44 | 36f374c67aa8 |
permissions | -rw-r--r-- |
31 | 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 first view for msgsettings plugin |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
#ifndef MSGSETTINGSVIEW_H |
|
19 |
#define MSGSETTINGSVIEW_H |
|
20 |
||
21 |
#ifdef SETTINGSVIEW_DLL |
|
22 |
#define MSG_SETTING_VIEW_EXPORT Q_DECL_EXPORT |
|
23 |
#else |
|
24 |
#define MSG_SETTING_VIEW_EXPORT Q_DECL_IMPORT |
|
25 |
#endif |
|
26 |
||
27 |
#include "msgbaseview.h" |
|
28 |
||
29 |
class HbMainWindow; |
|
30 |
class HbAction; |
|
31 |
class MsgSMSCenterView; |
|
32 |
class MsgSettingsForm; |
|
33 |
||
34 |
class MSG_SETTING_VIEW_EXPORT MsgSettingsView: public MsgBaseView |
|
35 |
{ |
|
36 |
Q_OBJECT |
|
37 |
public: |
|
38 |
enum SettingsView |
|
39 |
{ |
|
40 |
DefaultView = 0, |
|
41 |
SMSView, |
|
42 |
MMSView |
|
43 |
}; |
|
44 |
||
45 |
public: |
|
46 |
MsgSettingsView( |
|
47 |
SettingsView settingsView = MsgSettingsView::DefaultView, |
|
48 |
QGraphicsItem *parent = 0); |
|
49 |
||
50 |
~MsgSettingsView(); |
|
51 |
||
52 |
public slots: |
|
53 |
void onNewSMSCCenterClicked(int index); |
|
54 |
void onSmsCenterEditViewClosed(); |
|
55 |
||
44
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
56 |
private: |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
57 |
//Sms Center View |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
58 |
MsgSMSCenterView* mSMSCenterView; |
36f374c67aa8
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
31
diff
changeset
|
59 |
|
31 | 60 |
//Settings Form |
61 |
MsgSettingsForm* mSettingsForm; |
|
62 |
||
52
12db4185673b
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
63 |
//main window. |
31 | 64 |
HbMainWindow* mMainWindow; |
52
12db4185673b
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
65 |
|
12db4185673b
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
66 |
//current settings view. |
12db4185673b
Revision: 201031
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
44
diff
changeset
|
67 |
SettingsView mCurrentView; |
31 | 68 |
}; |
69 |
#endif // MSGSETTINGSVIEW_H |