author | hgs |
Fri, 23 Jul 2010 12:55:58 +0300 | |
changeset 52 | a49bfe5190e4 |
parent 45 | 6b911d05207e |
child 51 | f39ed5e045e0 |
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 |
#include <smcmockclassincludes.h> |
|
18 |
#include <QDebug> |
|
19 |
#include <hbdataformmodel.h> |
|
20 |
#include <hbdataformmodelitem.h> |
|
21 |
#include <HbCheckBox> |
|
22 |
#include <QTranslator> |
|
23 |
#include <QLocale> |
|
24 |
#include <QApplication> |
|
25 |
#include <QTimer> |
|
26 |
#include <cpitemdatahelper.h> |
|
27 |
#include <psetwrapper.h> |
|
28 |
#include "cpbarringplugingroup.h" |
|
29 |
||
30 |
// ============================ MEMBER FUNCTIONS =============================== |
|
31 |
||
32 |
// ----------------------------------------------------------------------------- |
|
33 |
// CpBarringPluginGroup::CpBarringPluginGroup |
|
34 |
// ----------------------------------------------------------------------------- |
|
35 |
// |
|
36 |
CpBarringPluginGroup::CpBarringPluginGroup( |
|
37 |
CpItemDataHelper & helper ) |
|
38 |
:CpSettingFormItemData(HbDataFormModelItem::GroupItem, hbTrId("Barring"),0), |
|
39 |
m_helper(helper) |
|
40 |
{ |
|
41 |
||
42 |
} |
|
43 |
||
44 |
||
45 |
// ----------------------------------------------------------------------------- |
|
46 |
// CpBarringPluginGroup::~CpBarringPluginGroup |
|
47 |
// ----------------------------------------------------------------------------- |
|
48 |
// |
|
49 |
CpBarringPluginGroup::~CpBarringPluginGroup( ) |
|
50 |
{ |
|
51 |
||
52 |
} |
|
53 |
||
54 |
||
55 |
// ----------------------------------------------------------------------------- |
|
56 |
// CpBarringPluginGroup::itemShown |
|
57 |
// ----------------------------------------------------------------------------- |
|
58 |
// |
|
59 |
void CpBarringPluginGroup::itemShown( |
|
60 |
const QModelIndex & item ) |
|
61 |
{ |
|
62 |
SMC_MOCK_METHOD1( void, const QModelIndex &, item ) |
|
63 |
} |
|
64 |
||
65 |
||
66 |
// ----------------------------------------------------------------------------- |
|
67 |
// CpBarringPluginGroup::barringStatusRequestCompleted |
|
68 |
// ----------------------------------------------------------------------------- |
|
69 |
// |
|
70 |
void CpBarringPluginGroup::barringStatusRequestCompleted( |
|
71 |
int result, |
|
72 |
const QList<unsigned char> & basicServiceGroupIds, |
|
73 |
PSetCallBarringWrapper::BarringStatus status) |
|
74 |
{ |
|
75 |
SMC_MOCK_METHOD3( void, |
|
76 |
int, result, |
|
77 |
const QList<unsigned char> &, basicServiceGroupIds, |
|
78 |
PSetCallBarringWrapper::BarringStatus, status) |
|
79 |
} |
|
80 |
||
81 |
||
82 |
// ----------------------------------------------------------------------------- |
|
83 |
// CpBarringPluginGroup::enableBarringRequestCompleted |
|
84 |
// ----------------------------------------------------------------------------- |
|
85 |
// |
|
86 |
void CpBarringPluginGroup::enableBarringRequestCompleted( |
|
87 |
int result, |
|
88 |
PSetCallBarringWrapper::BarringType barringType, |
|
89 |
PSetCallBarringWrapper::BarringStatus barringStatus, |
|
90 |
bool plural) |
|
91 |
{ |
|
92 |
SMC_MOCK_METHOD4( void, |
|
93 |
int, result, |
|
94 |
PSetCallBarringWrapper::BarringType, barringType, |
|
95 |
PSetCallBarringWrapper::BarringStatus, barringStatus, |
|
96 |
bool, plural) |
|
97 |
} |
|
98 |
||
99 |
||
100 |
// ----------------------------------------------------------------------------- |
|
101 |
// CpBarringPluginGroup::disableBarringRequestCompleted |
|
102 |
// ----------------------------------------------------------------------------- |
|
103 |
// |
|
104 |
void CpBarringPluginGroup::disableBarringRequestCompleted( |
|
105 |
int result, |
|
106 |
PSetCallBarringWrapper::BarringType barringType, |
|
107 |
PSetCallBarringWrapper::BarringStatus barringStatus, |
|
108 |
bool plural) |
|
109 |
{ |
|
110 |
SMC_MOCK_METHOD4( void, |
|
111 |
int, result, |
|
112 |
PSetCallBarringWrapper::BarringType, barringType, |
|
113 |
PSetCallBarringWrapper::BarringStatus, barringStatus, |
|
114 |
bool, plural) |
|
115 |
} |
|
116 |
||
117 |
// ----------------------------------------------------------------------------- |
|
118 |
// CpBarringPluginGroup::barringPasswordChangeRequestCompleted |
|
119 |
// ----------------------------------------------------------------------------- |
|
120 |
// |
|
121 |
void CpBarringPluginGroup::barringPasswordChangeRequestCompleted(int result) |
|
122 |
{ |
|
123 |
SMC_MOCK_METHOD1( void, int, result) |
|
124 |
} |
|
125 |
||
126 |
||
127 |
// ----------------------------------------------------------------------------- |
|
128 |
// CpBarringPluginGroup::changeBarringStateRequested |
|
129 |
// ----------------------------------------------------------------------------- |
|
130 |
// |
|
131 |
void CpBarringPluginGroup::changeBarringStateRequested(int checkState) |
|
132 |
{ |
|
133 |
SMC_MOCK_METHOD1( void, int, checkState) |
|
134 |
} |
|
135 |
||
136 |
||
137 |
// ----------------------------------------------------------------------------- |
|
138 |
// CpBarringPluginGroup::changeBarringPasswordRequested |
|
139 |
// ----------------------------------------------------------------------------- |
|
140 |
// |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
141 |
void CpBarringPluginGroup::changeBarringPasswordRequested() |
37 | 142 |
{ |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
143 |
SMC_MOCK_METHOD0( void ) |
37 | 144 |
} |
145 |
||
146 |
||
147 |
// ----------------------------------------------------------------------------- |
|
148 |
// CpBarringPluginGroup::processBarringStatusRequestQueue |
|
149 |
// ----------------------------------------------------------------------------- |
|
150 |
// |
|
151 |
void CpBarringPluginGroup::processBarringStatusRequestQueue() |
|
152 |
{ |
|
153 |
SMC_MOCK_METHOD0( void ) |
|
154 |
} |
|
155 |
||
156 |
||
157 |
// ----------------------------------------------------------------------------- |
|
158 |
// CpBarringPluginGroup::completeBarringStateChangeRequestHandling |
|
159 |
// ----------------------------------------------------------------------------- |
|
160 |
// |
|
161 |
void CpBarringPluginGroup::completeBarringStateChangeRequestHandling( |
|
162 |
QString barringPassword, |
|
163 |
bool okPressed) |
|
164 |
{ |
|
165 |
SMC_MOCK_METHOD2( void, QString, barringPassword, bool, okPressed) |
|
166 |
} |
|
167 |
||
168 |
||
169 |
// ----------------------------------------------------------------------------- |
|
170 |
// CpBarringPluginGroup::changeBarringPasswordPhasesHandling |
|
171 |
// ----------------------------------------------------------------------------- |
|
172 |
// |
|
173 |
void CpBarringPluginGroup::changeBarringPasswordPhasesHandling( |
|
174 |
QString barringPassword, |
|
175 |
bool okPressed) |
|
176 |
{ |
|
177 |
SMC_MOCK_METHOD2( void, QString, barringPassword, bool, okPressed) |
|
178 |
} |
|
179 |
||
180 |