author | hgs |
Fri, 15 Oct 2010 12:58:46 +0300 | |
changeset 78 | baacf668fe89 |
parent 76 | cfea66083b62 |
permissions | -rw-r--r-- |
37 | 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; |
|
76 | 34 |
class SettingsWrapper; |
37 | 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(); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
49 |
void createOwnVideoInReceivedCall(); |
37 | 50 |
void createSoftRejectItem(); |
51 |
void createCLIItem(); |
|
52 |
void createCallWaitingtem(); |
|
53 |
||
54 |
void connectShowCallDurationItem(); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
55 |
void connectOwnVideoInReceivedCall(); |
37 | 56 |
void connectSoftRejectItem(); |
57 |
void connectCLIItem(); |
|
58 |
void connectCallWaitingItem(); |
|
59 |
||
60 |
void insertMappedListItems(); |
|
61 |
||
78 | 62 |
void revertCallWaitingSelection(); |
63 |
||
37 | 64 |
public slots: |
65 |
||
66 |
void showCallDurationStateChanged(); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
67 |
void ownVideoInReceivedCallStateChanged(int index); |
37 | 68 |
void softRejectTextChanged(); |
69 |
void callWaitingCurrentIndexChanged(); |
|
70 |
void cliCurrentIndexChanged(int index); |
|
71 |
||
72 |
// Call waiting slots |
|
73 |
void handleCallWaitingGetStatus( |
|
74 |
PSetCallWaitingWrapper::PsCallWaitingStatus status, |
|
75 |
const QList<unsigned char> &basicServiceGroupIds); |
|
76 |
void handleCallWaitingChanged( |
|
77 |
PSetCallWaitingWrapper::PsCallWaitingCommand setting, |
|
78 |
int aResult ); |
|
79 |
void handleCallWaitingRequesting( bool ongoing, bool interrupted ); |
|
80 |
void handleCallWaitingError( int error ); |
|
81 |
||
82 |
signals: |
|
83 |
||
84 |
void showGlobalProgressNote(int ¬eId, const QString& text); |
|
85 |
void showGlobalNote( |
|
86 |
int ¬eId, const QString& text, HbMessageBox::MessageBoxType); |
|
87 |
void showGlobalErrorNote(int ¬eId, int errorCode); |
|
88 |
void cancelNote(int noteId); |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
89 |
void showNotificationDialog(const QString& text); |
37 | 90 |
|
91 |
private: |
|
92 |
||
93 |
// Setting wrappers |
|
94 |
PSetWrapper *m_pSetWrapper; |
|
95 |
SsSettingsWrapper *m_ssSettingsWrapper; |
|
76 | 96 |
SettingsWrapper *m_cpSettingsWrapper; |
37 | 97 |
|
98 |
// Not own |
|
99 |
PSetCliWrapper* m_cliWrapper; |
|
100 |
PSetCallWaitingWrapper* m_callWaitingWrapper; |
|
101 |
||
102 |
// Not owned objects |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
103 |
CpSettingFormItemData *m_DataItemShowCallDuration; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
104 |
CpSettingFormItemData *m_OwnVideoInReceivedCall; |
37 | 105 |
CpSettingFormItemData *m_DataItemSoftRejectTextEditor; |
106 |
CpSettingFormItemData *m_DataItemCLI; |
|
107 |
CpSettingFormItemData *m_DataItemCallWaiting; |
|
108 |
||
109 |
// List data mappings |
|
110 |
QMap<int, QString> m_cliSettingMap; |
|
111 |
||
112 |
bool m_callWaitingDistinguishEnabled; |
|
113 |
int m_activeNoteId; |
|
114 |
CpItemDataHelper &m_helper; |
|
115 |
}; |
|
116 |
#endif // CPCALLSPLUGINGROUP_H |