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