74
|
1 |
/** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
* All rights reserved.
|
|
3 |
* This component and the accompanying materials are made available
|
|
4 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
5 |
* which accompanies this distribution, and is available
|
|
6 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
*
|
|
8 |
* Initial Contributors:
|
|
9 |
* Nokia Corporation - initial contribution.
|
|
10 |
*
|
|
11 |
* Contributors:
|
|
12 |
*
|
|
13 |
* Description:
|
|
14 |
*
|
|
15 |
*/
|
|
16 |
#include <QDebug>
|
|
17 |
#include <smcmockclassincludes.h>
|
|
18 |
#include "phonecallheaderutil.h"
|
|
19 |
|
|
20 |
// ============================ MEMBER FUNCTIONS ===============================
|
|
21 |
|
|
22 |
// -----------------------------------------------------------------------------
|
|
23 |
// PhoneCallHeaderUtil::PhoneCallHeaderUtil
|
|
24 |
// -----------------------------------------------------------------------------
|
|
25 |
//
|
|
26 |
PhoneCallHeaderUtil::PhoneCallHeaderUtil(
|
|
27 |
MPEEngineInfo & engineInfo )
|
|
28 |
: m_engineInfo(engineInfo)
|
|
29 |
{
|
|
30 |
|
|
31 |
}
|
|
32 |
|
|
33 |
|
|
34 |
// -----------------------------------------------------------------------------
|
|
35 |
// PhoneCallHeaderUtil::~PhoneCallHeaderUtil
|
|
36 |
// -----------------------------------------------------------------------------
|
|
37 |
//
|
|
38 |
PhoneCallHeaderUtil::~PhoneCallHeaderUtil( )
|
|
39 |
{
|
|
40 |
|
|
41 |
}
|
|
42 |
|
|
43 |
|
|
44 |
// -----------------------------------------------------------------------------
|
|
45 |
// PhoneCallHeaderUtil::LabelText
|
|
46 |
// -----------------------------------------------------------------------------
|
|
47 |
//
|
|
48 |
const TDesC & PhoneCallHeaderUtil::LabelText(
|
|
49 |
TInt aCallId )
|
|
50 |
{
|
|
51 |
SMC_MOCK_METHOD1( const TDesC &, TInt, aCallId )
|
|
52 |
}
|
|
53 |
|
|
54 |
|
|
55 |
// -----------------------------------------------------------------------------
|
76
|
56 |
// PhoneCallHeaderUtil::GetCliTexts
|
|
57 |
// -----------------------------------------------------------------------------
|
|
58 |
//
|
|
59 |
void PhoneCallHeaderUtil::GetCliTexts(
|
|
60 |
TInt aCallId,
|
|
61 |
TDes & aCliText,
|
|
62 |
ClippingDirection & aCliClip,
|
|
63 |
TDes & aSecondaryCliText,
|
|
64 |
ClippingDirection & aSecondaryCliClip )
|
|
65 |
{
|
|
66 |
SMC_MOCK_METHOD5( void, TInt, aCallId,
|
|
67 |
TDes &, aCliText,
|
|
68 |
ClippingDirection &, aCliClip,
|
|
69 |
TDes &, aSecondaryCliText,
|
|
70 |
ClippingDirection &, aSecondaryCliClip )
|
|
71 |
}
|
|
72 |
|
|
73 |
|
|
74 |
// -----------------------------------------------------------------------------
|
|
75 |
// PhoneCallHeaderUtil::GetCli
|
|
76 |
// -----------------------------------------------------------------------------
|
|
77 |
//
|
|
78 |
void PhoneCallHeaderUtil::GetCli(
|
|
79 |
TInt aCallId,
|
|
80 |
TDes & aCliText,
|
|
81 |
ClippingDirection & aClipping )
|
|
82 |
{
|
|
83 |
SMC_MOCK_METHOD3( void, TInt, aCallId,
|
|
84 |
TDes &, aCliText,
|
|
85 |
ClippingDirection &, aClipping )
|
|
86 |
}
|
|
87 |
|
|
88 |
|
|
89 |
// -----------------------------------------------------------------------------
|
|
90 |
// PhoneCallHeaderUtil::GetSecondaryCli
|
|
91 |
// -----------------------------------------------------------------------------
|
|
92 |
//
|
|
93 |
void PhoneCallHeaderUtil::GetSecondaryCli(
|
|
94 |
TInt aCallId,
|
|
95 |
TDes & aSecondaryCliText,
|
|
96 |
ClippingDirection & aClipping )
|
|
97 |
{
|
|
98 |
SMC_MOCK_METHOD3( void, TInt, aCallId,
|
|
99 |
TDes &, aSecondaryCliText,
|
|
100 |
ClippingDirection &, aClipping )
|
|
101 |
}
|
|
102 |
|
|
103 |
|
|
104 |
// -----------------------------------------------------------------------------
|
|
105 |
// PhoneCallHeaderUtil::RemotePhoneNumber
|
|
106 |
// -----------------------------------------------------------------------------
|
|
107 |
//
|
|
108 |
const TDesC & PhoneCallHeaderUtil::RemotePhoneNumber(
|
|
109 |
TInt aCallId ) const
|
|
110 |
{
|
|
111 |
SMC_MOCK_METHOD1( const TDesC &, TInt, aCallId )
|
|
112 |
}
|
|
113 |
|
|
114 |
|
|
115 |
// -----------------------------------------------------------------------------
|
|
116 |
// PhoneCallHeaderUtil::CallType
|
|
117 |
// -----------------------------------------------------------------------------
|
|
118 |
//
|
|
119 |
TInt PhoneCallHeaderUtil::CallType(
|
|
120 |
const TInt aCallId )
|
|
121 |
{
|
|
122 |
SMC_MOCK_METHOD1( TInt, const TInt, aCallId )
|
|
123 |
}
|
|
124 |
|
|
125 |
|
|
126 |
// -----------------------------------------------------------------------------
|
|
127 |
// PhoneCallHeaderUtil::ServiceId
|
|
128 |
// -----------------------------------------------------------------------------
|
|
129 |
//
|
|
130 |
TInt PhoneCallHeaderUtil::ServiceId(
|
|
131 |
const TInt aCallId )
|
|
132 |
{
|
|
133 |
SMC_MOCK_METHOD1( TInt, const TInt, aCallId )
|
|
134 |
}
|
|
135 |
|
|
136 |
|
|
137 |
// -----------------------------------------------------------------------------
|
|
138 |
// PhoneCallHeaderUtil::IsCallForwarded
|
|
139 |
// -----------------------------------------------------------------------------
|
|
140 |
//
|
|
141 |
TBool PhoneCallHeaderUtil::IsCallForwarded(
|
|
142 |
TInt aCallId )
|
|
143 |
{
|
|
144 |
SMC_MOCK_METHOD1( TBool, TInt, aCallId )
|
|
145 |
}
|
|
146 |
|
|
147 |
|
|
148 |
// -----------------------------------------------------------------------------
|
|
149 |
// PhoneCallHeaderUtil::SecureSpecified
|
|
150 |
// -----------------------------------------------------------------------------
|
|
151 |
//
|
|
152 |
TBool PhoneCallHeaderUtil::SecureSpecified( )
|
|
153 |
{
|
|
154 |
SMC_MOCK_METHOD0( TBool )
|
|
155 |
}
|
|
156 |
|
|
157 |
|
|
158 |
// -----------------------------------------------------------------------------
|
|
159 |
// PhoneCallHeaderUtil::Ciphering
|
|
160 |
// -----------------------------------------------------------------------------
|
|
161 |
//
|
|
162 |
TBool PhoneCallHeaderUtil::Ciphering(
|
|
163 |
TInt aCallId )
|
|
164 |
{
|
|
165 |
SMC_MOCK_METHOD1( TBool, TInt, aCallId )
|
|
166 |
}
|
|
167 |
|
|
168 |
|
|
169 |
// -----------------------------------------------------------------------------
|
|
170 |
// PhoneCallHeaderUtil::CallState
|
|
171 |
// -----------------------------------------------------------------------------
|
|
172 |
//
|
|
173 |
TInt PhoneCallHeaderUtil::CallState(
|
|
174 |
TInt aCallId ) const
|
|
175 |
{
|
|
176 |
SMC_MOCK_METHOD1( TInt, TInt, aCallId )
|
|
177 |
}
|
|
178 |
|
|
179 |
|
|
180 |
// -----------------------------------------------------------------------------
|
|
181 |
// PhoneCallHeaderUtil::CallerImage
|
|
182 |
// -----------------------------------------------------------------------------
|
|
183 |
//
|
|
184 |
const TDesC & PhoneCallHeaderUtil::CallerImage(
|
|
185 |
const TInt aCallId )
|
|
186 |
{
|
|
187 |
SMC_MOCK_METHOD1( const TDesC &, const TInt, aCallId )
|
|
188 |
}
|
|
189 |
|
|
190 |
|
|
191 |
// -----------------------------------------------------------------------------
|
74
|
192 |
// PhoneCallHeaderUtil::EmergencyHeaderText
|
|
193 |
// -----------------------------------------------------------------------------
|
|
194 |
//
|
|
195 |
const TDesC & PhoneCallHeaderUtil::EmergencyHeaderText( )
|
|
196 |
{
|
|
197 |
SMC_MOCK_METHOD0( const TDesC & )
|
|
198 |
}
|
|
199 |
|
|
200 |
|
|
201 |
// -----------------------------------------------------------------------------
|
|
202 |
// PhoneCallHeaderUtil::AttemptingEmergencyText
|
|
203 |
// -----------------------------------------------------------------------------
|
|
204 |
//
|
|
205 |
const TDesC & PhoneCallHeaderUtil::AttemptingEmergencyText( )
|
|
206 |
{
|
|
207 |
SMC_MOCK_METHOD0( const TDesC & )
|
|
208 |
}
|
|
209 |
|
|
210 |
|
|
211 |
// -----------------------------------------------------------------------------
|
76
|
212 |
// PhoneCallHeaderUtil::IsVoiceCall
|
74
|
213 |
// -----------------------------------------------------------------------------
|
|
214 |
//
|
76
|
215 |
TBool PhoneCallHeaderUtil::IsVoiceCall(
|
74
|
216 |
TInt aCallId ) const
|
|
217 |
{
|
76
|
218 |
SMC_MOCK_METHOD1( TBool, TInt, aCallId )
|
74
|
219 |
}
|
|
220 |
|
|
221 |
|
|
222 |
// -----------------------------------------------------------------------------
|
76
|
223 |
// PhoneCallHeaderUtil::IsVideoCall
|
74
|
224 |
// -----------------------------------------------------------------------------
|
|
225 |
//
|
76
|
226 |
TBool PhoneCallHeaderUtil::IsVideoCall(
|
|
227 |
int aCallId ) const
|
74
|
228 |
{
|
76
|
229 |
SMC_MOCK_METHOD1( TBool, int, aCallId )
|
74
|
230 |
}
|
|
231 |
|
|
232 |
|