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 <QtGlobal> |
|
18 #include <QDebug> |
|
19 #include <smcmockclassincludes.h> |
|
20 #include "psetcalldivertingwrapper.h" |
|
21 |
|
22 // ============================ MEMBER FUNCTIONS =============================== |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // PSetCallDivertingWrapper::PSetCallDivertingWrapper |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 PSetCallDivertingWrapper::PSetCallDivertingWrapper( |
|
29 CPsetContainer & /*psetContainer*/, |
|
30 QObject * parent ) |
|
31 : |
|
32 QObject(parent) |
|
33 { |
|
34 |
|
35 } |
|
36 |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // PSetCallDivertingWrapper::~PSetCallDivertingWrapper |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 PSetCallDivertingWrapper::~PSetCallDivertingWrapper( ) |
|
43 { |
|
44 |
|
45 } |
|
46 |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // PSetCallDivertingWrapper::setCallDiverting |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 int PSetCallDivertingWrapper::setCallDiverting( |
|
53 PSCallDivertingCommand & aSetting, |
|
54 int aBasicServiceGroup ) |
|
55 { |
|
56 SMC_MOCK_METHOD2( int, PSCallDivertingCommand &, aSetting, |
|
57 int, aBasicServiceGroup ) |
|
58 } |
|
59 |
|
60 |
|
61 // ----------------------------------------------------------------------------- |
|
62 // PSetCallDivertingWrapper::getCallDivertingStatus |
|
63 // ----------------------------------------------------------------------------- |
|
64 // |
|
65 void PSetCallDivertingWrapper::getCallDivertingStatus( |
|
66 const PsServiceGroup aServiceGroup, |
|
67 const PsCallDivertingCondition aCondition, |
|
68 int aBsc ) |
|
69 { |
|
70 SMC_MOCK_METHOD3( void, int/*const PsServiceGroup*/, static_cast<int>(aServiceGroup), |
|
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 SMC_MOCK_METHOD1( void, QStringList &, aDefNumbers ) |
|
94 } |
|
95 |
|
96 |
|
97 // ----------------------------------------------------------------------------- |
|
98 // PSetCallDivertingWrapper::setNewDefaultNumber |
|
99 // ----------------------------------------------------------------------------- |
|
100 // |
|
101 void PSetCallDivertingWrapper::setNewDefaultNumber( |
|
102 QString aNumber ) |
|
103 { |
|
104 SMC_MOCK_METHOD1( void, QString, aNumber ) |
|
105 } |
|
106 |
|
107 // ----------------------------------------------------------------------------- |
|
108 // PSetCallDivertingWrapper::getVoiceMailBoxNumber |
|
109 // ----------------------------------------------------------------------------- |
|
110 // |
|
111 int PSetCallDivertingWrapper::getVoiceMailBoxNumber( |
|
112 QString &aNumber, PsService aService) |
|
113 { |
|
114 SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService ) |
|
115 } |
|
116 |
|
117 // ----------------------------------------------------------------------------- |
|
118 // PSetCallDivertingWrapper::queryVoiceMailBoxNumber |
|
119 // ----------------------------------------------------------------------------- |
|
120 // |
|
121 int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( |
|
122 QString &aNumber, PsService aService) |
|
123 { |
|
124 SMC_MOCK_METHOD2( int, QString & , aNumber, PsService, aService ) |
|
125 } |
|