author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Wed, 18 Aug 2010 09:48:26 +0300 | |
changeset 56 | 5bcb308bd24d |
parent 46 | bc5a64e5bc3c |
child 51 | f39ed5e045e0 |
child 60 | 1eef62f5c541 |
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 |
||
21 |
// ============================ MEMBER FUNCTIONS =============================== |
|
22 |
||
23 |
// ----------------------------------------------------------------------------- |
|
24 |
// PSetCallDivertingWrapper::PSetCallDivertingWrapper |
|
25 |
// ----------------------------------------------------------------------------- |
|
26 |
// |
|
27 |
PSetCallDivertingWrapper::PSetCallDivertingWrapper( |
|
28 |
CPsetContainer & psetContainer, |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
29 |
QObject * parent ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
30 |
//: |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
31 |
//QObject( /*psetContainer, parent*/ ) |
37 | 32 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
33 |
|
37 | 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 |
{ |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
93 |
QStringList list; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
94 |
list << "0401234567" << "0501234567" << "0451234567"; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
95 |
aDefNumbers = list; |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
96 |
|
37 | 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 |
||
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
111 |
|
37 | 112 |
// ----------------------------------------------------------------------------- |
113 |
// PSetCallDivertingWrapper::getVoiceMailBoxNumber |
|
114 |
// ----------------------------------------------------------------------------- |
|
115 |
// |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
116 |
int PSetCallDivertingWrapper::getVoiceMailBoxNumber( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
117 |
QString & aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
118 |
PsService aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
119 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
120 |
SMC_MOCK_METHOD2( int, QString &, aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
121 |
PsService, aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
122 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
123 |
|
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
124 |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
125 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
126 |
// PSetCallDivertingWrapper::queryVoiceMailBoxNumber |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
127 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
128 |
// |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
129 |
int PSetCallDivertingWrapper::queryVoiceMailBoxNumber( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
130 |
QString & aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
131 |
PsService aService ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
132 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
133 |
SMC_MOCK_METHOD2( int, QString &, aNumber, |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
134 |
PsService, aService ) |
45
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 |