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( |
|
76 PsServiceGroup serviceGroup, |
|
77 BarringType barringType, |
|
78 QString barringPassword) |
|
79 { |
|
80 SMC_MOCK_METHOD3( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), |
|
81 BarringType, barringType, QString, barringPassword ) |
|
82 } |
|
83 |
|
84 |
|
85 // ----------------------------------------------------------------------------- |
|
86 // PSetCallBarringWrapper::disableBarring |
|
87 // ----------------------------------------------------------------------------- |
|
88 // |
|
89 void PSetCallBarringWrapper::disableBarring( |
|
90 PsServiceGroup serviceGroup, |
|
91 BarringType barringType, |
|
92 QString barringPassword) |
|
93 { |
|
94 SMC_MOCK_METHOD3( void, int/*PsServiceGroup*/, static_cast<int>(serviceGroup), |
|
95 BarringType, barringType, QString, barringPassword ) |
|
96 } |
|
97 |
|
98 // ----------------------------------------------------------------------------- |
|
99 // PSetCallBarringWrapper::changeBarringPassword |
|
100 // ----------------------------------------------------------------------------- |
|
101 // |
|
102 void PSetCallBarringWrapper::changeBarringPassword( |
|
103 const QString &oldPassword, |
|
104 const QString &newPassword, |
|
105 const QString &verifiedPassword) |
|
106 { |
|
107 SMC_MOCK_METHOD3( void, |
|
108 const QString &, oldPassword, |
|
109 const QString &, newPassword, |
|
110 const QString &, verifiedPassword ) |
|
111 } |
|