|
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 ) : QObject( parent ) |
|
30 { |
|
31 Q_UNUSED(psetContainer); |
|
32 } |
|
33 |
|
34 |
|
35 // ----------------------------------------------------------------------------- |
|
36 // PSetCallDivertingWrapper::~PSetCallDivertingWrapper |
|
37 // ----------------------------------------------------------------------------- |
|
38 // |
|
39 PSetCallDivertingWrapper::~PSetCallDivertingWrapper( ) |
|
40 { |
|
41 |
|
42 } |
|
43 |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // PSetCallDivertingWrapper::setCallDiverting |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 int PSetCallDivertingWrapper::setCallDiverting( |
|
50 PSCallDivertingCommand & aSetting, |
|
51 int aBasicServiceGroup ) |
|
52 { |
|
53 SMC_MOCK_METHOD2( int, PSCallDivertingCommand &, aSetting, |
|
54 int, aBasicServiceGroup ) |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // PSetCallDivertingWrapper::getCallDivertingStatus |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 void PSetCallDivertingWrapper::getCallDivertingStatus( |
|
63 const PsServiceGroup aServiceGroup, |
|
64 const PsCallDivertingCondition aCondition, |
|
65 int aBsc ) |
|
66 { |
|
67 int iDummy = aServiceGroup; |
|
68 SMC_MOCK_METHOD3( void, int, iDummy, |
|
69 const PsCallDivertingCondition, aCondition, |
|
70 int, aBsc ) |
|
71 } |
|
72 |
|
73 |
|
74 // ----------------------------------------------------------------------------- |
|
75 // PSetCallDivertingWrapper::cancelProcess |
|
76 // ----------------------------------------------------------------------------- |
|
77 // |
|
78 void PSetCallDivertingWrapper::cancelProcess( ) |
|
79 { |
|
80 SMC_MOCK_METHOD0( void ) |
|
81 } |
|
82 |
|
83 |
|
84 // ----------------------------------------------------------------------------- |
|
85 // PSetCallDivertingWrapper::getDefaultNumbers |
|
86 // ----------------------------------------------------------------------------- |
|
87 // |
|
88 void PSetCallDivertingWrapper::getDefaultNumbers( |
|
89 QStringList & aDefNumbers ) |
|
90 { |
|
91 static int i =0; |
|
92 if(i == 0){ |
|
93 QStringList list; |
|
94 list << "0401234567" << "0501234567" << "0451234567"; |
|
95 aDefNumbers = list; |
|
96 i=1; |
|
97 }else{ |
|
98 i=0; |
|
99 } |
|
100 SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers ) |
|
101 } |
|
102 |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // PSetCallDivertingWrapper::setNewDefaultNumber |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 void PSetCallDivertingWrapper::setNewDefaultNumber( |
|
109 QString aNumber ) |
|
110 { |
|
111 SMC_MOCK_METHOD1( void, QString, aNumber ) |
|
112 } |
|
113 |
|
114 // ----------------------------------------------------------------------------- |
|
115 // PSetCallDivertingWrapper::getVoiceMailBoxNumber |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 void PSetCallDivertingWrapper::getVoiceMailBoxNumber(QString &number) |
|
119 { |
|
120 SMC_MOCK_METHOD1( void, QString, number ) |
|
121 } |