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 <mpsetdivertobs.h>
|
|
18 |
#include <mphcltemergencycallobserver.h>
|
|
19 |
#include <mmlist.h>
|
|
20 |
#include <smcmockclassincludes.h>
|
|
21 |
#include "psetcalldivertingwrapper_p.h"
|
|
22 |
|
|
23 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
24 |
|
|
25 |
// -----------------------------------------------------------------------------
|
|
26 |
// PSetCallDivertingWrapperPrivate::PSetCallDivertingWrapperPrivate
|
|
27 |
// -----------------------------------------------------------------------------
|
|
28 |
//
|
|
29 |
PSetCallDivertingWrapperPrivate::PSetCallDivertingWrapperPrivate(
|
|
30 |
PSetCallDivertingWrapper & owner )
|
|
31 |
: m_Owner(owner)
|
|
32 |
{
|
|
33 |
|
|
34 |
}
|
|
35 |
|
|
36 |
|
|
37 |
// -----------------------------------------------------------------------------
|
|
38 |
// PSetCallDivertingWrapperPrivate::~PSetCallDivertingWrapperPrivate
|
|
39 |
// -----------------------------------------------------------------------------
|
|
40 |
//
|
|
41 |
PSetCallDivertingWrapperPrivate::~PSetCallDivertingWrapperPrivate( )
|
|
42 |
{
|
|
43 |
|
|
44 |
}
|
|
45 |
|
|
46 |
|
|
47 |
// -----------------------------------------------------------------------------
|
|
48 |
// PSetCallDivertingWrapperPrivate::HandleDivertingChangedL
|
|
49 |
// -----------------------------------------------------------------------------
|
|
50 |
//
|
|
51 |
void PSetCallDivertingWrapperPrivate::HandleDivertingChangedL(
|
|
52 |
const TCallDivertSetting & aSetting,
|
|
53 |
TBool aPlural )
|
|
54 |
{
|
|
55 |
SMC_MOCK_METHOD2( void, const TCallDivertSetting &, aSetting,
|
|
56 |
TBool, aPlural )
|
|
57 |
}
|
|
58 |
|
|
59 |
|
|
60 |
// -----------------------------------------------------------------------------
|
|
61 |
// PSetCallDivertingWrapperPrivate::HandleDivertingStatusL
|
|
62 |
// -----------------------------------------------------------------------------
|
|
63 |
//
|
|
64 |
void PSetCallDivertingWrapperPrivate::HandleDivertingStatusL(
|
|
65 |
CMobilePhoneCFList & aSetting,
|
|
66 |
TBool aPlural )
|
|
67 |
{
|
|
68 |
SMC_MOCK_METHOD2( void, CMobilePhoneCFList &, aSetting,
|
|
69 |
TBool, aPlural )
|
|
70 |
}
|
|
71 |
|
|
72 |
|
|
73 |
// -----------------------------------------------------------------------------
|
|
74 |
// PSetCallDivertingWrapperPrivate::HandleDivertingErrorL
|
|
75 |
// -----------------------------------------------------------------------------
|
|
76 |
//
|
|
77 |
void PSetCallDivertingWrapperPrivate::HandleDivertingErrorL(
|
|
78 |
TInt aReason )
|
|
79 |
{
|
|
80 |
SMC_MOCK_METHOD1( void, TInt, aReason )
|
|
81 |
}
|
|
82 |
|
|
83 |
|
|
84 |
// -----------------------------------------------------------------------------
|
|
85 |
// PSetCallDivertingWrapperPrivate::HandleCFRequestingL
|
|
86 |
// -----------------------------------------------------------------------------
|
|
87 |
//
|
|
88 |
void PSetCallDivertingWrapperPrivate::HandleCFRequestingL(
|
|
89 |
TBool aOngoing,
|
|
90 |
TBool aInterrupted )
|
|
91 |
{
|
|
92 |
SMC_MOCK_METHOD2( void, TBool, aOngoing,
|
|
93 |
TBool, aInterrupted )
|
|
94 |
}
|
|
95 |
|
|
96 |
|
|
97 |
// -----------------------------------------------------------------------------
|
|
98 |
// PSetCallDivertingWrapperPrivate::SetEngineContact
|
|
99 |
// -----------------------------------------------------------------------------
|
|
100 |
//
|
|
101 |
void PSetCallDivertingWrapperPrivate::SetEngineContact(
|
|
102 |
MPsetCallDiverting * aDivertEngine )
|
|
103 |
{
|
|
104 |
SMC_MOCK_METHOD1( void, MPsetCallDiverting *, aDivertEngine )
|
|
105 |
}
|
|
106 |
|
|
107 |
|
|
108 |
// -----------------------------------------------------------------------------
|
|
109 |
// PSetCallDivertingWrapperPrivate::HandleEmergencyDialL
|
|
110 |
// -----------------------------------------------------------------------------
|
|
111 |
//
|
|
112 |
void PSetCallDivertingWrapperPrivate::HandleEmergencyDialL(
|
|
113 |
const TInt aStatus )
|
|
114 |
{
|
|
115 |
SMC_MOCK_METHOD1( void, const TInt, aStatus )
|
|
116 |
}
|
|
117 |
|
|
118 |
|
|
119 |
// -----------------------------------------------------------------------------
|
|
120 |
// PSetCallDivertingWrapperPrivate::convert
|
|
121 |
// -----------------------------------------------------------------------------
|
|
122 |
//
|
|
123 |
TCallDivertingCondition PSetCallDivertingWrapperPrivate::convert(
|
|
124 |
PsCallDivertingCondition type )
|
|
125 |
{
|
|
126 |
SMC_MOCK_METHOD1( TCallDivertingCondition, PsCallDivertingCondition, type )
|
|
127 |
}
|
|
128 |
|
|
129 |
|
|
130 |
// -----------------------------------------------------------------------------
|
|
131 |
// PSetCallDivertingWrapperPrivate::convert
|
|
132 |
// -----------------------------------------------------------------------------
|
|
133 |
//
|
|
134 |
TDivertingStatus PSetCallDivertingWrapperPrivate::convert(
|
|
135 |
PsCallDivertingStatus type )
|
|
136 |
{
|
|
137 |
SMC_MOCK_METHOD1( TDivertingStatus, PsCallDivertingStatus, type )
|
|
138 |
}
|
|
139 |
|
|
140 |
|
|
141 |
// -----------------------------------------------------------------------------
|
|
142 |
// PSetCallDivertingWrapperPrivate::convert
|
|
143 |
// -----------------------------------------------------------------------------
|
|
144 |
//
|
|
145 |
TServiceGroup PSetCallDivertingWrapperPrivate::convert(
|
|
146 |
PsServiceGroup type )
|
|
147 |
{
|
|
148 |
// TODO: QFlags does not compile with SymbianMock
|
|
149 |
// SMC_MOCK_METHOD1( TServiceGroup, PsServiceGroup, type )
|
|
150 |
Q_UNUSED(type)
|
|
151 |
SMC_MOCK_METHOD0( TServiceGroup )
|
|
152 |
}
|
|
153 |
|
|
154 |
|
|
155 |
// -----------------------------------------------------------------------------
|
|
156 |
// PSetCallDivertingWrapperPrivate::convert
|
|
157 |
// -----------------------------------------------------------------------------
|
|
158 |
//
|
|
159 |
TDivertingSetting PSetCallDivertingWrapperPrivate::convert(
|
|
160 |
PsCallDivertingSetting type )
|
|
161 |
{
|
|
162 |
SMC_MOCK_METHOD1( TDivertingSetting, PsCallDivertingSetting, type )
|
|
163 |
}
|
|
164 |
|
|
165 |
|