12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * |
15 * |
16 */ |
16 */ |
|
17 |
17 #ifndef VMBXCPGROUP_H |
18 #ifndef VMBXCPGROUP_H |
18 #define VMBXCPGROUP_H |
19 #define VMBXCPGROUP_H |
19 |
20 |
20 // System includes |
21 // System includes |
21 #include <cpsettingformitemdata.h> |
22 #include <cpsettingformitemdata.h> |
|
23 #include <voicemailboxdefs.h> |
|
24 |
22 |
25 |
23 // Forward declarations |
26 // Forward declarations |
24 class VmbxUiEngine; |
27 class VmbxUiEngine; |
25 class CpItemDataHelper; |
28 class CpItemDataHelper; |
|
29 class HbDataFormModelItem; |
26 |
30 |
27 // Class declaration |
31 // Class declaration |
28 class VmbxCpGroup : public CpSettingFormItemData |
32 class VmbxCpGroup : public CpSettingFormItemData |
29 { |
33 { |
30 Q_OBJECT |
34 Q_OBJECT |
|
35 |
31 public: |
36 public: |
32 |
37 |
33 /*! |
38 /*! |
34 Constructor |
39 Constructor |
35 */ |
40 */ |
36 VmbxCpGroup( |
41 VmbxCpGroup( |
37 HbDataFormModelItem::DataItemType type, |
|
38 const QString &label, |
|
39 const QString &configFile, |
|
40 const HbDataFormModelItem *parent, |
|
41 CpItemDataHelper &itemDataHelper); |
42 CpItemDataHelper &itemDataHelper); |
42 |
|
43 /*! |
|
44 Constructor |
|
45 */ |
|
46 explicit VmbxCpGroup( |
|
47 const QString &configFile = QString(), |
|
48 const HbDataFormModelItem *parent = 0); |
|
49 |
43 |
50 /*! |
44 /*! |
51 Destructor |
45 Destructor |
52 */ |
46 */ |
53 ~VmbxCpGroup(); |
47 ~VmbxCpGroup(); |
58 Notification slot for engine signal about |
52 Notification slot for engine signal about |
59 Voice Mailbox entries' changes |
53 Voice Mailbox entries' changes |
60 */ |
54 */ |
61 void voiceMailboxEngineEntriesUpdated(); |
55 void voiceMailboxEngineEntriesUpdated(); |
62 |
56 |
|
57 /*! |
|
58 Save default Mailbox |
|
59 */ |
|
60 void saveDefaultMailbox(int aIndex); |
|
61 |
|
62 /*! |
|
63 Query cs voice number when user click line edit |
|
64 */ |
|
65 void queryCsVoiceNumber(); |
|
66 |
|
67 /*! |
|
68 Query cs video number when user click line edit |
|
69 */ |
|
70 void queryCsVideoNumber(); |
|
71 |
|
72 /*! |
|
73 Update number when vmbx number changed by OTA,OMA etc. |
|
74 */ |
|
75 void vmbxNumberChanged(const TVmbxType vmbxType); |
|
76 |
63 private: |
77 private: |
|
78 |
|
79 /*! |
|
80 Preparation before loading |
|
81 */ |
|
82 void loadingPreparation(CpItemDataHelper &itemDataHelper); |
|
83 |
|
84 /*! |
|
85 Update default mailbox |
|
86 */ |
|
87 void updateDefaultMailboxToUi(); |
64 |
88 |
65 /*! |
89 /*! |
66 Update Cs voice primary |
90 Update Cs voice primary |
67 */ |
91 */ |
68 void updateCsVoicePrimaryToUi(); |
92 void updateCsVoice1ToUi(); |
69 |
|
70 /*! |
|
71 Update Cs voice Als |
|
72 */ |
|
73 void updateCsVoiceAlsToUi(); |
|
74 |
93 |
75 /*! |
94 /*! |
76 update Cs video primary |
95 update Cs video primary |
77 */ |
96 */ |
78 void updateCsVideoPrimaryToUi(); |
97 void updateCsVideo1ToUi(); |
79 |
|
80 /*! |
|
81 NOTICE: IT IS POSSIBLE THAT PS SERVICES WILL NOT BE DISPLAYED |
|
82 BY VMBX CONTROL PANEL WHEN WE GET THE NEW UI CONCEPT!!!!!! |
|
83 In that case this is not needed |
|
84 */ |
|
85 |
|
86 /*! |
|
87 update Ps services |
|
88 */ |
|
89 void updatePsServicesToUi(); |
|
90 |
|
91 /*! |
|
92 Update default mailbox |
|
93 */ |
|
94 void updateDefaultMailboxToUi(); |
|
95 |
98 |
96 /*! |
99 /*! |
97 Update all mailboxes |
100 Update all mailboxes |
98 */ |
101 */ |
99 void updateAllMailboxesToUi(); |
102 void updateAllMailboxesToUi(); |
100 |
|
101 private: |
|
102 |
|
103 /*! |
|
104 Preparation before loading |
|
105 */ |
|
106 void loadingPreparation(CpItemDataHelper &itemDataHelper); |
|
107 |
|
108 |
103 |
109 private: |
104 private: |
110 |
105 |
111 // Own. |
106 // Own. |
112 VmbxUiEngine *mUiEngine; |
107 VmbxUiEngine *mUiEngine; |
113 |
108 |
114 // Not own. |
109 // Not own. |
115 CpSettingFormItemData *mEditorCsVoice1; |
110 CpSettingFormItemData *mDefaultMailboxEditor; |
116 |
111 |
117 // Not own. |
112 // Not own. |
118 CpSettingFormItemData *mEditorCsVoice2; |
113 HbDataFormModelItem *mCsVoice1Editor; |
119 |
114 |
120 // Not own. |
115 // Not own. |
121 CpSettingFormItemData *mEditorCsVideo1; |
116 HbDataFormModelItem *mCsVideo1Editor; |
122 |
|
123 // Contained pointers not own. |
|
124 QList<CpSettingFormItemData *> mPsServiceEditors; |
|
125 }; |
117 }; |
126 |
118 |
127 #endif // VMBXCPGROUP_H |
119 #endif // VMBXCPGROUP_H |