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 class is for first form view for msg settings |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef MSG_SETTINGSFORM_H |
|
19 #define MSG_SETTINGSFORM_H |
|
20 |
|
21 #include <hbdataform.h> |
|
22 #include "msgsettingengine.h" |
|
23 |
|
24 class HbDataFormModelItem; |
|
25 class MsgSettingsViewManager; |
|
26 |
|
27 class MsgSettingsForm : public HbDataForm |
|
28 { |
|
29 Q_OBJECT |
|
30 public: |
|
31 explicit MsgSettingsForm(QGraphicsItem *parent = 0); |
|
32 ~MsgSettingsForm(); |
|
33 private: |
|
34 void initSettingModel(); |
|
35 // call these function when activated signal is emitted |
|
36 void activateAdvanced(HbWidget *widget); |
|
37 void activateDeliveryReports(HbWidget *widget); |
|
38 void activateCharacterEncoding(HbWidget *widget); |
|
39 |
|
40 private slots: |
|
41 void onItemActivated(const QModelIndex &index); |
|
42 void onPressedAdvanced(); |
|
43 void onPressedDelReports(); |
|
44 void changeCharEncoding(int index); |
|
45 |
|
46 private: |
|
47 |
|
48 //msg engine reference |
|
49 MsgSettingEngine* mSettingEngine; |
|
50 |
|
51 //DataForm List Items |
|
52 HbDataFormModelItem *mDeliverReports; |
|
53 HbDataFormModelItem *mCharacterEncoding; |
|
54 HbDataFormModelItem *mAdvancedSettings; |
|
55 |
|
56 //Settings View Manager |
|
57 MsgSettingsViewManager* mSettingsViewManager; |
|
58 }; |
|
59 #endif // MSG_SETTINGSFORM_H |
|