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: |
|
15 * |
|
16 */ |
|
17 #ifndef CPCALLSPLUGINGROUP_H |
|
18 #define CPCALLSPLUGINGROUP_H |
|
19 |
|
20 #include <QObject> |
|
21 #include <QMap> |
|
22 #include <QVariant> |
|
23 #include <hbmessagebox.h> |
|
24 #include <cpsettingformitemdata.h> |
|
25 #include <psetcallwaitingwrapper.h> |
|
26 |
|
27 class HbDataFormModel; |
|
28 class HbDataFormModelItem; |
|
29 class HbLineEdit; |
|
30 class PSetWrapper; |
|
31 class PSetCliWrapper; |
|
32 class SsSettingsWrapper; |
|
33 class PSetCallWaitingWrapper; |
|
34 class CpSettingsWrapper; |
|
35 |
|
36 class CpCallsPluginGroup: public CpSettingFormItemData |
|
37 { |
|
38 Q_OBJECT |
|
39 |
|
40 public: |
|
41 |
|
42 explicit CpCallsPluginGroup(CpItemDataHelper &helper); |
|
43 |
|
44 ~CpCallsPluginGroup(); |
|
45 |
|
46 private: |
|
47 |
|
48 void createShowCallDurationItem(); |
|
49 void createSoftRejectItem(); |
|
50 void createCLIItem(); |
|
51 void createCallWaitingtem(); |
|
52 |
|
53 void connectShowCallDurationItem(); |
|
54 void connectSoftRejectItem(); |
|
55 void connectCLIItem(); |
|
56 void connectCallWaitingItem(); |
|
57 |
|
58 void insertMappedListItems(); |
|
59 |
|
60 public slots: |
|
61 |
|
62 void showCallDurationStateChanged(); |
|
63 void softRejectTextChanged(); |
|
64 void callWaitingCurrentIndexChanged(); |
|
65 void cliCurrentIndexChanged(int index); |
|
66 |
|
67 // Call waiting slots |
|
68 void handleCallWaitingGetStatus( |
|
69 PSetCallWaitingWrapper::PsCallWaitingStatus status, |
|
70 const QList<unsigned char> &basicServiceGroupIds); |
|
71 void handleCallWaitingChanged( |
|
72 PSetCallWaitingWrapper::PsCallWaitingCommand setting, |
|
73 int aResult ); |
|
74 void handleCallWaitingRequesting( bool ongoing, bool interrupted ); |
|
75 void handleCallWaitingError( int error ); |
|
76 |
|
77 signals: |
|
78 |
|
79 void showGlobalProgressNote(int ¬eId, const QString& text); |
|
80 void showGlobalNote( |
|
81 int ¬eId, const QString& text, HbMessageBox::MessageBoxType); |
|
82 void showGlobalErrorNote(int ¬eId, int errorCode); |
|
83 void cancelNote(int noteId); |
|
84 |
|
85 private: |
|
86 |
|
87 // Setting wrappers |
|
88 PSetWrapper *m_pSetWrapper; |
|
89 SsSettingsWrapper *m_ssSettingsWrapper; |
|
90 CpSettingsWrapper *m_cpSettingsWrapper; |
|
91 |
|
92 // Not own |
|
93 PSetCliWrapper* m_cliWrapper; |
|
94 PSetCallWaitingWrapper* m_callWaitingWrapper; |
|
95 |
|
96 // Not owned objects |
|
97 CpSettingFormItemData *m_DataItemShowCallDuration; |
|
98 CpSettingFormItemData *m_DataItemSoftRejectTextEditor; |
|
99 CpSettingFormItemData *m_DataItemCLI; |
|
100 CpSettingFormItemData *m_DataItemCallWaiting; |
|
101 |
|
102 // List data mappings |
|
103 QMap<int, QString> m_cliSettingMap; |
|
104 |
|
105 bool m_callWaitingDistinguishEnabled; |
|
106 int m_activeNoteId; |
|
107 CpItemDataHelper &m_helper; |
|
108 }; |
|
109 #endif // CPCALLSPLUGINGROUP_H |
|