author | hgs |
Mon, 23 Aug 2010 15:42:12 +0300 | |
changeset 60 | 1eef62f5c541 |
parent 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 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 |
||
60 | 21 |
class PSetCallDivertingWrapperPrivate { |
22 |
public: |
|
23 |
PSetCallDivertingWrapperPrivate() {} |
|
24 |
~PSetCallDivertingWrapperPrivate() {} |
|
25 |
}; |
|
26 |
||
27 |
||
37 | 28 |
// ============================ MEMBER FUNCTIONS =============================== |
29 |
||
30 |
// ----------------------------------------------------------------------------- |
|
31 |
// PSetCallDivertingWrapper::PSetCallDivertingWrapper |
|
32 |
// ----------------------------------------------------------------------------- |
|
33 |
// |
|
34 |
PSetCallDivertingWrapper::PSetCallDivertingWrapper( |
|
35 |
CPsetContainer & psetContainer, |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
36 |
QObject * parent ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
37 |
//: |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
38 |
//QObject( /*psetContainer, parent*/ ) |
37 | 39 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
40 |
|
37 | 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 |
{ |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
100 |
QStringList list; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
101 |
list << "0401234567" << "0501234567" << "0451234567"; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
102 |
aDefNumbers = list; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
103 |
|
37 | 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 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
118 |
|
37 | 119 |
// ----------------------------------------------------------------------------- |
120 |
// PSetCallDivertingWrapper::getVoiceMailBoxNumber |
|
121 |
// ----------------------------------------------------------------------------- |
|
122 |
// |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
123 |
int PSetCallDivertingWrapper::getVoiceMailBoxNumber( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
124 |
QString & aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
125 |
PsService aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
126 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
127 |
SMC_MOCK_METHOD2( int, QString &, aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
128 |
PsService, aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
129 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
130 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
131 |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
132 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
133 |
// PSetCallDivertingWrapper::queryVoiceMailBoxNumber |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
134 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
135 |
// |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
136 |
int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
137 |
QString & aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
138 |
PsService aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
139 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
140 |
SMC_MOCK_METHOD2( int, QString &, aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
141 |
PsService, aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
142 |
} |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
143 |