author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 37 | ba76fc04e6c2 |
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 |
||
18 |
#include <psetcontainer.h> |
|
19 |
#include <psetcallbarring.h> |
|
20 |
#include <psetcallbarringwrapper.h> |
|
21 |
#include <QDebug> |
|
22 |
#include <smcmockclassincludes.h> |
|
23 |
#include "psetcallbarringwrapper.h" |
|
24 |
||
25 |
class PSetCallBarringWrapperPrivate { |
|
26 |
public: |
|
27 |
PSetCallBarringWrapperPrivate() {} |
|
28 |
~PSetCallBarringWrapperPrivate() {} |
|
29 |
}; |
|
30 |
||
31 |
||
32 |
// ============================ MEMBER FUNCTIONS =============================== |
|
33 |
||
34 |
// ----------------------------------------------------------------------------- |
|
35 |
// PSetCallBarringWrapper::PSetCallBarringWrapper |
|
36 |
// ----------------------------------------------------------------------------- |
|
37 |
// |
|
38 |
PSetCallBarringWrapper::PSetCallBarringWrapper( |
|
39 |
CPsetContainer & psetContainer, |
|
40 |
QObject * parent ) |
|
41 |
: |
|
42 |
QObject(parent) |
|
43 |
{ |
|
44 |
Q_UNUSED(psetContainer) |
|
45 |
} |
|
46 |
||
47 |
||
48 |
// ----------------------------------------------------------------------------- |
|
49 |
// PSetCallBarringWrapper::~PSetCallBarringWrapper |
|
50 |
// ----------------------------------------------------------------------------- |
|
51 |
// |
|
52 |
PSetCallBarringWrapper::~PSetCallBarringWrapper( ) |
|
53 |
{ |
|
54 |
||
55 |
} |
|
56 |
||
57 |
||
58 |
// ----------------------------------------------------------------------------- |
|
59 |
// PSetCallBarringWrapper::barringStatus |
|
60 |
// ----------------------------------------------------------------------------- |
|
61 |
// |
|
62 |
void PSetCallBarringWrapper::barringStatus( |
|
63 |
PsServiceGroup serviceGroup, |
|
64 |
BarringType barringType ) |
|
65 |
{ |
|
66 |
SMC_MOCK_METHOD2( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), |
|
67 |
BarringType, barringType ) |
|
68 |
} |
|
69 |
||
70 |
||
71 |
// ----------------------------------------------------------------------------- |
|
72 |
// PSetCallBarringWrapper::enableBarring |
|
73 |
// ----------------------------------------------------------------------------- |
|
74 |
// |
|
75 |
void PSetCallBarringWrapper::enableBarring( |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
76 |
int basicServiceGroup, |
37 | 77 |
PsServiceGroup serviceGroup, |
78 |
BarringType barringType, |
|
79 |
QString barringPassword) |
|
80 |
{ |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
81 |
SMC_MOCK_METHOD4( void, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
82 |
int, basicServiceGroup, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
83 |
int/*PsServiceGroup*/, static_cast<int>(serviceGroup), |
37 | 84 |
BarringType, barringType, QString, barringPassword ) |
85 |
} |
|
86 |
||
87 |
||
88 |
// ----------------------------------------------------------------------------- |
|
89 |
// PSetCallBarringWrapper::disableBarring |
|
90 |
// ----------------------------------------------------------------------------- |
|
91 |
// |
|
92 |
void PSetCallBarringWrapper::disableBarring( |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
int basicServiceGroup, |
37 | 94 |
PsServiceGroup serviceGroup, |
95 |
BarringType barringType, |
|
96 |
QString barringPassword) |
|
97 |
{ |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
98 |
SMC_MOCK_METHOD4( void, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
99 |
int, basicServiceGroup, |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
100 |
int/*PsServiceGroup*/, static_cast<int>(serviceGroup), |
37 | 101 |
BarringType, barringType, QString, barringPassword ) |
102 |
} |
|
103 |
||
104 |
// ----------------------------------------------------------------------------- |
|
105 |
// PSetCallBarringWrapper::changeBarringPassword |
|
106 |
// ----------------------------------------------------------------------------- |
|
107 |
// |
|
108 |
void PSetCallBarringWrapper::changeBarringPassword( |
|
109 |
const QString &oldPassword, |
|
110 |
const QString &newPassword, |
|
111 |
const QString &verifiedPassword) |
|
112 |
{ |
|
113 |
SMC_MOCK_METHOD3( void, |
|
114 |
const QString &, oldPassword, |
|
115 |
const QString &, newPassword, |
|
116 |
const QString &, verifiedPassword ) |
|
117 |
} |