|
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 <QDebug> |
|
18 #include <smcmockclassincludes.h> |
|
19 #include "psetcalldivertingwrapper.h" |
|
20 |
|
21 // ============================ MEMBER FUNCTIONS =============================== |
|
22 |
|
23 // ----------------------------------------------------------------------------- |
|
24 // PSetCallDivertingWrapper::PSetCallDivertingWrapper |
|
25 // ----------------------------------------------------------------------------- |
|
26 // |
|
27 PSetCallDivertingWrapper::PSetCallDivertingWrapper( |
|
28 CPsetContainer & psetContainer, |
|
29 QObject * parent ) |
|
30 //: |
|
31 //QObject( /*psetContainer, parent*/ ) |
|
32 { |
|
33 |
|
34 } |
|
35 |
|
36 |
|
37 // ----------------------------------------------------------------------------- |
|
38 // PSetCallDivertingWrapper::~PSetCallDivertingWrapper |
|
39 // ----------------------------------------------------------------------------- |
|
40 // |
|
41 PSetCallDivertingWrapper::~PSetCallDivertingWrapper( ) |
|
42 { |
|
43 |
|
44 } |
|
45 |
|
46 |
|
47 // ----------------------------------------------------------------------------- |
|
48 // PSetCallDivertingWrapper::setCallDiverting |
|
49 // ----------------------------------------------------------------------------- |
|
50 // |
|
51 int PSetCallDivertingWrapper::setCallDiverting( |
|
52 PSCallDivertingCommand & aSetting, |
|
53 int aBasicServiceGroup ) |
|
54 { |
|
55 SMC_MOCK_METHOD2( int, PSCallDivertingCommand &, aSetting, |
|
56 int, aBasicServiceGroup ) |
|
57 } |
|
58 |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // PSetCallDivertingWrapper::getCallDivertingStatus |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 void PSetCallDivertingWrapper::getCallDivertingStatus( |
|
65 const PsServiceGroup aServiceGroup, |
|
66 const PsCallDivertingCondition aCondition, |
|
67 int aBsc ) |
|
68 { |
|
69 int iDummy = aServiceGroup; |
|
70 SMC_MOCK_METHOD3( void, int, iDummy, |
|
71 const PsCallDivertingCondition, aCondition, |
|
72 int, aBsc ) |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // PSetCallDivertingWrapper::cancelProcess |
|
78 // ----------------------------------------------------------------------------- |
|
79 // |
|
80 void PSetCallDivertingWrapper::cancelProcess( ) |
|
81 { |
|
82 SMC_MOCK_METHOD0( void ) |
|
83 } |
|
84 |
|
85 |
|
86 // ----------------------------------------------------------------------------- |
|
87 // PSetCallDivertingWrapper::getDefaultNumbers |
|
88 // ----------------------------------------------------------------------------- |
|
89 // |
|
90 void PSetCallDivertingWrapper::getDefaultNumbers( |
|
91 QStringList & aDefNumbers ) |
|
92 { |
|
93 QStringList list; |
|
94 list << "0401234567" << "0501234567" << "0451234567"; |
|
95 aDefNumbers = list; |
|
96 |
|
97 SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers ) |
|
98 } |
|
99 |
|
100 |
|
101 // ----------------------------------------------------------------------------- |
|
102 // PSetCallDivertingWrapper::setNewDefaultNumber |
|
103 // ----------------------------------------------------------------------------- |
|
104 // |
|
105 void PSetCallDivertingWrapper::setNewDefaultNumber( |
|
106 QString aNumber ) |
|
107 { |
|
108 SMC_MOCK_METHOD1( void, QString, aNumber ) |
|
109 } |
|
110 |
|
111 |
|
112 // ----------------------------------------------------------------------------- |
|
113 // PSetCallDivertingWrapper::getVoiceMailBoxNumber |
|
114 // ----------------------------------------------------------------------------- |
|
115 // |
|
116 int PSetCallDivertingWrapper::getVoiceMailBoxNumber( |
|
117 QString & aNumber, |
|
118 PsService aService ) |
|
119 { |
|
120 SMC_MOCK_METHOD2( int, QString &, aNumber, |
|
121 PsService, aService ) |
|
122 } |
|
123 |
|
124 |
|
125 // ----------------------------------------------------------------------------- |
|
126 // PSetCallDivertingWrapper::queryVoiceMailBoxNumber |
|
127 // ----------------------------------------------------------------------------- |
|
128 // |
|
129 int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( |
|
130 QString & aNumber, |
|
131 PsService aService ) |
|
132 { |
|
133 SMC_MOCK_METHOD2( int, QString &, aNumber, |
|
134 PsService, aService ) |
|
135 } |
|
136 |