author | Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com> |
Mon, 04 Oct 2010 00:16:48 +0300 | |
changeset 77 | 2be0b271d017 |
parent 46 | bc5a64e5bc3c |
permissions | -rw-r--r-- |
37 | 1 |
/* |
2 |
* Copyright (c) 2002-2008 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: This module contains the implementation of CPEEngineInfoImpl class |
|
15 |
* |
|
16 |
*/ |
|
17 |
||
18 |
// INCLUDE FILES |
|
19 |
#include "cpecallinfo.h" |
|
20 |
#include "cpeclientinformation.h" |
|
21 |
#include "cpeengineinfoimpl.h" |
|
22 |
#include <pepanic.pan> |
|
23 |
#include <telinternalpskeys.h> |
|
24 |
#include <cphcltdialdata.h> |
|
25 |
#include <phclttypes.h> |
|
26 |
#include <talogger.h> |
|
27 |
||
28 |
// ================= MEMBER FUNCTIONS ========================================== |
|
29 |
||
30 |
// ----------------------------------------------------------------------------- |
|
31 |
// CPEEngineInfoImpl::CPEEngineInfoImpl |
|
32 |
// C++ default constructor can NOT contain any code, that |
|
33 |
// might leave. |
|
34 |
// ----------------------------------------------------------------------------- |
|
35 |
// |
|
36 |
CPEEngineInfoImpl::CPEEngineInfoImpl() |
|
37 |
: iCurrentCalls( KPEMaximumNumberOfCalls ) |
|
38 |
,iContactId( KErrNotFound ) |
|
39 |
{ |
|
40 |
iCallCommandInfo.iPhoneNumber = KNullDesC; |
|
41 |
iCallCommandInfo.iCallId = 0; |
|
42 |
iCallCommandInfo.iKeyCode = 0; |
|
43 |
iCallCommandInfo.iAudioVolume = KPENumberInitValue; |
|
44 |
iCallCommandInfo.iAudioMute = EFalse; |
|
45 |
iCallCommandInfo.iDtmfString = KNullDesC; |
|
46 |
iCallCommandInfo.iCallType = EPECallTypeUninitialized; |
|
47 |
iCallCommandInfo.iServiceId = 0; |
|
48 |
iBasicInfo.iAudioOutputPreference = EPSAudioPrivate; |
|
49 |
iBasicInfo.iALSLine = CCCECallParameters::ECCELineTypePrimary; |
|
50 |
iBasicInfo.iALSLineSupport = EFalse; |
|
51 |
iBasicInfo.iPhoneAudioRouteParameters.iAudioOutput = EPENotActive; |
|
52 |
iBasicInfo.iAudioVolume = KPEDefaultAudioVolume; |
|
53 |
iBasicInfo.iKeypadVolume = KPENumberInitValue; |
|
54 |
iBasicInfo.iAudioMute = EFalse; |
|
55 |
iBasicInfo.iDtmfString = KNullDesC; |
|
56 |
iBasicInfo.iErrorInfo.iErrorCode = ECCPErrorNone; |
|
57 |
iBasicInfo.iErrorInfo.iCallId = KPECallIdNotUsed; |
|
58 |
iBasicInfo.iProfileId = ECCPErrorNotFound; |
|
59 |
iBasicInfo.iProfileName = KNullDesC; |
|
60 |
iBasicInfo.iLastCallDuration = KPENumberInitValue; |
|
61 |
iBasicInfo.iVMBXNumbers.iVMBXL1 = KNullDesC; |
|
62 |
iBasicInfo.iVMBXNumbers.iVMBXL2 = KNullDesC; |
|
63 |
iBasicInfo.iRingingType = EProfileRingingTypeRinging; |
|
64 |
iBasicInfo.iTextToSpeech = EFalse; |
|
65 |
iBasicInfo.iPhoneNumberIsServiceCode = EFalse; |
|
66 |
iBasicInfo.iTwoDigitSupportStatus = EFalse; |
|
67 |
||
68 |
iBasicInfo.iNetworkRegistrationStatus = ENWStatusRegistrationUnknown; |
|
69 |
||
70 |
iCallCommandInfo.iIdRestrict = RMobileCall::EIdRestrictDefault; |
|
71 |
iCallCommandInfo.iEmergencyNumber = KNullDesC; |
|
72 |
||
73 |
iCallCommandInfo.iTransferToAddress = KNullDesC; |
|
74 |
iCallCommandInfo.iForwardToAddressIndex = ECCPErrorNotFound; |
|
75 |
iBasicInfo.iActiveForward.iActiveType = RMobilePhone::ECFUnconditionalActive; |
|
76 |
iBasicInfo.iActiveForward.iServiceGroup = RMobilePhone::EServiceUnspecified; |
|
77 |
iBasicInfo.iBarringInfo.iGroupCount = KPENumberInitValue; |
|
78 |
for( TInt i = 0; i < KPEMaxServiceGroup; i++ ) |
|
79 |
{ |
|
80 |
__ASSERT_DEBUG( |
|
81 |
iBasicInfo.iBarringInfo.iBarredInfo.Count() > i, |
|
82 |
Panic( EPEPanicIndexOutOfRange ) ); |
|
83 |
iBasicInfo.iBarringInfo.iBarredInfo[i].iCondition = RMobilePhone::EBarUnspecified; |
|
84 |
iBasicInfo.iBarringInfo.iBarredInfo[i].iServiceGroup = |
|
85 |
RMobilePhone::EServiceUnspecified; |
|
86 |
iBasicInfo.iBarringInfo.iBarredInfo[i].iStatus = |
|
87 |
RMobilePhone::ECallBarringStatusUnknown; |
|
88 |
} |
|
89 |
iBasicInfo.iSSCommandInfo.action = EPESSActionUnspecified; |
|
90 |
iBasicInfo.iSSCommandInfo.type = EPESSTypeUnspecified; |
|
91 |
iBasicInfo.iSSCommandInfo.group = RMobilePhone::EServiceUnspecified; |
|
92 |
iBasicInfo.iSimState = EPESimStatusUninitialized; |
|
93 |
iBasicInfo.iSecureSpecified = ETrue; |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
94 |
iBasicInfo.iDataPortName = KNullDesC; |
37 | 95 |
iConferenceCallInfo.iConferenceCallState = EPEStateConferenceIdle; |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
96 |
iBasicInfo.iOutgoingBarringActivated = EFalse; |
37 | 97 |
//TODO remove after profile information is available |
98 |
iBasicInfo.iRingingVolume = 10; |
|
99 |
} |
|
100 |
||
101 |
// ----------------------------------------------------------------------------- |
|
102 |
// CPEEngineInfoImpl::NewL |
|
103 |
// Two-phased constructor. |
|
104 |
// ----------------------------------------------------------------------------- |
|
105 |
// |
|
106 |
CPEEngineInfoImpl* CPEEngineInfoImpl::NewL() |
|
107 |
{ |
|
108 |
CPEEngineInfoImpl* self = new ( ELeave ) CPEEngineInfoImpl; |
|
109 |
CleanupStack::PushL( self ); |
|
110 |
self->ConstructL(); |
|
111 |
CleanupStack::Pop( self ); |
|
112 |
return self; |
|
113 |
} |
|
114 |
||
115 |
// ----------------------------------------------------------------------------- |
|
116 |
// CPEEngineInfoImpl::ConstructL |
|
117 |
// Initializes class member variables |
|
118 |
// ----------------------------------------------------------------------------- |
|
119 |
// |
|
120 |
void CPEEngineInfoImpl::ConstructL() |
|
121 |
{ |
|
122 |
iCallParams = CCCECallParameters::NewL(); |
|
123 |
||
124 |
iRemoteInfo = new ( ELeave ) RPointerArray<CPERemoteInfo>( KPEMaximumNumberOfCalls ); |
|
125 |
||
126 |
for ( TInt i = 0; i < KPEMaximumNumberOfCalls; i++ ) |
|
127 |
{ |
|
128 |
TEFLOGSTRING( KTAOBJECT, "CPEEngineInfoImpl::ConstructL" ); |
|
129 |
CPERemoteInfo* remoteInfo = CPERemoteInfo::NewL(); |
|
130 |
CleanupStack::PushL( remoteInfo ); |
|
131 |
// associate this remote info instance with a call id |
|
132 |
remoteInfo->SetCallId( i ); |
|
133 |
iRemoteInfo->InsertL( remoteInfo, i ); |
|
134 |
CleanupStack::Pop( remoteInfo ); |
|
135 |
||
136 |
CPECallInfo* callInfo = CPECallInfo::NewL(); |
|
137 |
CleanupStack::PushL( callInfo ); |
|
138 |
iCurrentCalls.AppendL( callInfo ); |
|
139 |
CleanupStack::Pop( callInfo ); |
|
140 |
} |
|
141 |
||
142 |
for( TInt i = 0 ; i < KPEMaximumNumberOfCalls ; i++ ) |
|
143 |
{ |
|
144 |
ResetCallInfo( i ); // Resets every call. |
|
145 |
} |
|
146 |
} |
|
147 |
||
148 |
// Destructor |
|
149 |
CPEEngineInfoImpl::~CPEEngineInfoImpl() |
|
150 |
{ |
|
151 |
if ( iRemoteInfo ) |
|
152 |
{ |
|
153 |
iRemoteInfo->ResetAndDestroy(); |
|
154 |
iRemoteInfo->Close(); |
|
155 |
delete iRemoteInfo; |
|
156 |
iRemoteInfo = NULL; |
|
157 |
} |
|
158 |
delete iCallParams; |
|
159 |
||
160 |
iCurrentCalls.ResetAndDestroy(); |
|
161 |
iCurrentCalls.Close(); |
|
162 |
} |
|
163 |
||
164 |
// ----------------------------------------------------------------------------- |
|
165 |
// CPEEngineInfoImpl::AlertForGroup |
|
166 |
// Gets group ids from the TPEBasicInfo structure. |
|
167 |
// ----------------------------------------------------------------------------- |
|
168 |
// |
|
169 |
const TArray< TContactItemId > CPEEngineInfoImpl::AlertForGroup() const |
|
170 |
{ |
|
171 |
return iAlertForGroup.Array(); |
|
172 |
} |
|
173 |
||
174 |
// ----------------------------------------------------------------------------- |
|
175 |
// CPEEngineInfoImpl::ALSLine |
|
176 |
// Gets active als line of the phone. |
|
177 |
// ----------------------------------------------------------------------------- |
|
178 |
// |
|
179 |
const CCCECallParameters::TCCELineType& CPEEngineInfoImpl::ALSLine() const |
|
180 |
{ |
|
181 |
return iBasicInfo.iALSLine; |
|
182 |
} |
|
183 |
||
184 |
||
185 |
// ----------------------------------------------------------------------------- |
|
186 |
// CPEEngineInfoImpl::ALSLine |
|
187 |
// Gets active als line of the phone. |
|
188 |
// ----------------------------------------------------------------------------- |
|
189 |
// |
|
190 |
const TBool& CPEEngineInfoImpl::ALSLineSupport() const |
|
191 |
{ |
|
192 |
TEFLOGSTRING2( KTAMESIN,"CPEEngineInfoImpl::ALSLineSupport(),iALSLineSupport: %d" |
|
193 |
, iBasicInfo.iALSLineSupport ); |
|
194 |
return iBasicInfo.iALSLineSupport; |
|
195 |
} |
|
196 |
||
197 |
// ----------------------------------------------------------------------------- |
|
198 |
// CPEEngineInfoImpl::AudioMute |
|
199 |
// Gets audio mute value from the TPEBasicInfo structure. |
|
200 |
// ----------------------------------------------------------------------------- |
|
201 |
// |
|
202 |
const TBool& CPEEngineInfoImpl::AudioMute() const |
|
203 |
{ |
|
204 |
return iBasicInfo.iAudioMute; |
|
205 |
} |
|
206 |
||
207 |
// ----------------------------------------------------------------------------- |
|
208 |
// CPEEngineInfoImpl::AudioOutput |
|
209 |
// Gets audio output value from the TPEBasicInfo structure. |
|
210 |
// ----------------------------------------------------------------------------- |
|
211 |
// |
|
212 |
const TPEAudioOutput& CPEEngineInfoImpl::AudioOutput() const |
|
213 |
{ |
|
214 |
TEFLOGSTRING2( KTAINT, |
|
215 |
"PE CPEEngineInfoImpl::AudioOutput: iBasicInfo.iAudioOutput: %d", |
|
216 |
iBasicInfo.iPhoneAudioRouteParameters.iAudioOutput ); |
|
217 |
return iBasicInfo.iPhoneAudioRouteParameters.iAudioOutput; |
|
218 |
} |
|
219 |
||
220 |
// ----------------------------------------------------------------------------- |
|
221 |
// CPEEngineInfoImpl::PhoneIdentityParameters |
|
222 |
// Gets the phone identity parameters from the TPEBasicInfo structure |
|
223 |
// (other items were commented in a header). |
|
224 |
// ----------------------------------------------------------------------------- |
|
225 |
// |
|
226 |
const TPEPhoneAudioRouteParameters& CPEEngineInfoImpl::RouteParameters() const |
|
227 |
{ |
|
228 |
return iBasicInfo.iPhoneAudioRouteParameters; |
|
229 |
} |
|
230 |
||
231 |
// ----------------------------------------------------------------------------- |
|
232 |
// CPEEngineInfoImpl::AudioOutputAvailable |
|
233 |
// Gets audio output path availability status from array |
|
234 |
// ----------------------------------------------------------------------------- |
|
235 |
// |
|
236 |
TBool CPEEngineInfoImpl::AudioOutputAvailable( |
|
237 |
const TPEAudioOutput aOutput ) const |
|
238 |
{ |
|
239 |
__ASSERT_ALWAYS( ( EPENotActive <= aOutput && |
|
240 |
aOutput <= EPETTY ), Panic( EPEPanicInvalidParameter ) ); |
|
241 |
||
242 |
TBool available( EFalse ); |
|
243 |
// find given output from the available outputs array |
|
244 |
for (TInt i = 0; i < iAvailableAudioOutputs.Count(); i++) |
|
245 |
{ |
|
246 |
if ( iAvailableAudioOutputs[i] == aOutput ) |
|
247 |
{ |
|
248 |
available = ETrue; |
|
249 |
} |
|
250 |
} |
|
251 |
return available; |
|
252 |
} |
|
253 |
||
254 |
// ----------------------------------------------------------------------------- |
|
255 |
// CPEEngineInfoImpl::AudioMuteCommand |
|
256 |
// Gets audio mute command value from the TPECallCommandInfo structure. |
|
257 |
// ----------------------------------------------------------------------------- |
|
258 |
// |
|
259 |
const TBool& CPEEngineInfoImpl::AudioMuteCommand() const |
|
260 |
{ |
|
261 |
return iCallCommandInfo.iAudioMute; |
|
262 |
} |
|
263 |
||
264 |
// ----------------------------------------------------------------------------- |
|
265 |
// CPEEngineInfoImpl::AudioOutputCommand |
|
266 |
// Gets audio output command value from the TPECallCommandInfo structure. |
|
267 |
// ----------------------------------------------------------------------------- |
|
268 |
// |
|
269 |
const TPEAudioOutput& CPEEngineInfoImpl::AudioOutputCommand() const |
|
270 |
{ |
|
271 |
return iCallCommandInfo.iAudioOutput; |
|
272 |
} |
|
273 |
||
274 |
// ----------------------------------------------------------------------------- |
|
275 |
// CPEEngineInfoImpl::ShowNoteCommand |
|
276 |
// Gets audio note command value from the TPECallCommandInfo structure. |
|
277 |
// ----------------------------------------------------------------------------- |
|
278 |
// |
|
279 |
TBool CPEEngineInfoImpl::ShowNoteCommand() const |
|
280 |
{ |
|
281 |
return iCallCommandInfo.iShowNote; |
|
282 |
} |
|
283 |
||
284 |
// ----------------------------------------------------------------------------- |
|
285 |
// CPEEngineInfoImpl::AudioOutputPreference |
|
286 |
// Gets audio output preference value from the TPEBasicInfo structure. |
|
287 |
// ----------------------------------------------------------------------------- |
|
288 |
// |
|
289 |
const TInt& CPEEngineInfoImpl::AudioOutputPreference() const |
|
290 |
{ |
|
291 |
return iBasicInfo.iAudioOutputPreference; |
|
292 |
} |
|
293 |
||
294 |
// ----------------------------------------------------------------------------- |
|
295 |
// CPEEngineInfoImpl::AudioVolume |
|
296 |
// Gets audio volume value from the TPEBasicInfo structure. |
|
297 |
// ----------------------------------------------------------------------------- |
|
298 |
// |
|
299 |
const TInt& CPEEngineInfoImpl::AudioVolume() const |
|
300 |
{ |
|
301 |
TEFLOGSTRING2( KTAINT, |
|
302 |
"PE CPEEngineInfoImpl::AudioVolume, volume: %d", iBasicInfo.iAudioVolume ); |
|
303 |
return iBasicInfo.iAudioVolume; |
|
304 |
} |
|
305 |
||
306 |
// ----------------------------------------------------------------------------- |
|
307 |
// CPEEngineInfoImpl::AudioVolumeCommand |
|
308 |
// Gets audio volume command value from the TPECallCommandInfo structure. |
|
309 |
// ----------------------------------------------------------------------------- |
|
310 |
// |
|
311 |
const TInt& CPEEngineInfoImpl::AudioVolumeCommand() const |
|
312 |
{ |
|
313 |
TEFLOGSTRING2( KTAINT, |
|
314 |
"PE CPEEngineInfoImpl::AudioVolumeCommand, volume: %d", |
|
315 |
iCallCommandInfo.iAudioVolume ); |
|
316 |
return iCallCommandInfo.iAudioVolume; |
|
317 |
} |
|
318 |
||
319 |
// ----------------------------------------------------------------------------- |
|
320 |
// CPEEngineInfoImpl::CallClientInformation |
|
321 |
// Gets phone client information from the TPECallInfo structure. |
|
322 |
// ----------------------------------------------------------------------------- |
|
323 |
// |
|
324 |
const MPEClientInformation& CPEEngineInfoImpl::CallClientInformation( |
|
325 |
const TInt aCallId ) const |
|
326 |
{ |
|
327 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
328 |
return iCurrentCalls[ aCallId ]->ClientInformation(); |
|
329 |
} |
|
330 |
||
331 |
// ----------------------------------------------------------------------------- |
|
332 |
// CPEEngineInfoImpl::CallDirection |
|
333 |
// Gets the call direction. |
|
334 |
// ----------------------------------------------------------------------------- |
|
335 |
// |
|
336 |
RMobileCall::TMobileCallDirection CPEEngineInfoImpl::CallDirection( |
|
337 |
const TInt aCallId ) const |
|
338 |
{ |
|
339 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
340 |
return iCurrentCalls[ aCallId ]->CallDirection(); |
|
341 |
} |
|
342 |
||
343 |
// ----------------------------------------------------------------------------- |
|
344 |
// CPEEngineInfoImpl::CallDuration |
|
345 |
// Gets the duration of the last call to idle. |
|
346 |
// ----------------------------------------------------------------------------- |
|
347 |
// |
|
348 |
const TInt& CPEEngineInfoImpl::CallDuration() const |
|
349 |
{ |
|
350 |
return iBasicInfo.iLastCallDuration; |
|
351 |
} |
|
352 |
||
353 |
// ----------------------------------------------------------------------------- |
|
354 |
// CPEEngineInfoImpl::CallDuration |
|
355 |
// Gets the duration of the call. |
|
356 |
// ----------------------------------------------------------------------------- |
|
357 |
// |
|
358 |
TTimeIntervalSeconds CPEEngineInfoImpl::CallDuration( |
|
359 |
const TInt aCallId ) const |
|
360 |
{ |
|
361 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
362 |
return iCurrentCalls[ aCallId ]->Duration(); |
|
363 |
} |
|
364 |
||
365 |
// ----------------------------------------------------------------------------- |
|
366 |
// CPEEngineInfoImpl::CallId |
|
367 |
// Gets the identification number of the call from the TPECallCommandInfo structure. |
|
368 |
// ----------------------------------------------------------------------------- |
|
369 |
// |
|
370 |
const TInt& CPEEngineInfoImpl::CallId() const |
|
371 |
{ |
|
372 |
return iCallCommandInfo.iCallId; |
|
373 |
} |
|
374 |
||
375 |
// ----------------------------------------------------------------------------- |
|
376 |
// CPEEngineInfoImpl::CallALSLine |
|
377 |
// Gets als line value from the TPECallInfo structure. |
|
378 |
// ----------------------------------------------------------------------------- |
|
379 |
// |
|
380 |
CCCECallParameters::TCCELineType CPEEngineInfoImpl::CallALSLine( |
|
381 |
const TInt aCallId ) const |
|
382 |
{ |
|
383 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
384 |
return iCurrentCalls[ aCallId ]->AlsLine(); |
|
385 |
} |
|
386 |
||
387 |
// ----------------------------------------------------------------------------- |
|
388 |
// CPEEngineInfoImpl::CallStartTime |
|
389 |
// Gets the start time of the call. |
|
390 |
// ----------------------------------------------------------------------------- |
|
391 |
// |
|
392 |
const TTime& CPEEngineInfoImpl::CallStartTime( |
|
393 |
const TInt aCallId ) const |
|
394 |
{ |
|
395 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
396 |
return iCurrentCalls[ aCallId ]->StartTime(); |
|
397 |
} |
|
398 |
||
399 |
// ----------------------------------------------------------------------------- |
|
400 |
// CPEEngineInfoImpl::CallState |
|
401 |
// Gets the state of the call. |
|
402 |
// ----------------------------------------------------------------------------- |
|
403 |
// |
|
404 |
TPEState CPEEngineInfoImpl::CallState( |
|
405 |
const TInt aCallId ) const |
|
406 |
{ |
|
407 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
408 |
return iCurrentCalls[ aCallId ]->CallState(); |
|
409 |
} |
|
410 |
||
411 |
// ----------------------------------------------------------------------------- |
|
412 |
// CPEEngineInfoImpl::CallType |
|
413 |
// Gets the type of the call. |
|
414 |
// ----------------------------------------------------------------------------- |
|
415 |
// |
|
416 |
TPECallType CPEEngineInfoImpl::CallType( |
|
417 |
const TInt aCallId ) const |
|
418 |
{ |
|
419 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
420 |
return iCurrentCalls[ aCallId ]->CallType(); |
|
421 |
} |
|
422 |
||
423 |
// ----------------------------------------------------------------------------- |
|
424 |
// CPEEngineInfoImpl::CallTypeCommand |
|
425 |
// Gets call type information for the attempted call |
|
426 |
// ----------------------------------------------------------------------------- |
|
427 |
// |
|
428 |
const TPECallType& CPEEngineInfoImpl::CallTypeCommand() const |
|
429 |
{ |
|
430 |
return iCallCommandInfo.iCallType; |
|
431 |
} |
|
432 |
||
433 |
// ----------------------------------------------------------------------------- |
|
434 |
// CPEEngineInfoImpl::ConferenceCallState |
|
435 |
// ----------------------------------------------------------------------------- |
|
436 |
// |
|
437 |
TPEState CPEEngineInfoImpl::ConferenceCallState() const |
|
438 |
{ |
|
439 |
return iConferenceCallInfo.iConferenceCallState; |
|
440 |
} |
|
441 |
||
442 |
// ----------------------------------------------------------------------------- |
|
443 |
// CPEEngineInfoImpl::IsSecureCall |
|
444 |
// Gets secured status from call info |
|
445 |
// ----------------------------------------------------------------------------- |
|
446 |
// |
|
447 |
TBool CPEEngineInfoImpl::IsSecureCall( const TInt aCallId ) const |
|
448 |
{ |
|
449 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
450 |
TInt isSecured = EFalse; |
|
451 |
||
452 |
// Conference call secure status |
|
453 |
if ( KPEConferenceCallID == aCallId ) |
|
454 |
{ |
|
455 |
TInt count = iCurrentCalls.Count(); |
|
456 |
||
457 |
for ( TInt i = 0; i < count; i++ ) |
|
458 |
{ |
|
459 |
if ( iCurrentCalls[ i ]->ConferenceMemberId() != KPECallIdNotUsed ) |
|
460 |
{ |
|
461 |
if ( iCurrentCalls[ i ]->SecureStatus() ) |
|
462 |
{ |
|
463 |
isSecured = ETrue; |
|
464 |
} |
|
465 |
else |
|
466 |
{ |
|
467 |
isSecured = EFalse; |
|
468 |
break; |
|
469 |
} |
|
470 |
} |
|
471 |
} |
|
472 |
} |
|
473 |
else |
|
474 |
{ |
|
475 |
isSecured = iCurrentCalls[ aCallId ]->SecureStatus(); |
|
476 |
} |
|
477 |
||
478 |
return isSecured; |
|
479 |
} |
|
480 |
||
481 |
// ----------------------------------------------------------------------------- |
|
482 |
// CPEEngineInfoImpl::DataPortName |
|
483 |
// Gets the name of data port currently on-loan. |
|
484 |
// ----------------------------------------------------------------------------- |
|
485 |
// |
|
486 |
const TName& CPEEngineInfoImpl::DataPortName() const |
|
487 |
{ |
|
488 |
return iBasicInfo.iDataPortName; |
|
489 |
} |
|
490 |
||
491 |
// ----------------------------------------------------------------------------- |
|
492 |
// CPEEngineInfoImpl::DtmfPostFix |
|
493 |
// Gets dtmf postfix value from the TPEBasicInfo structure. |
|
494 |
// ----------------------------------------------------------------------------- |
|
495 |
// |
|
496 |
const TPEDtmfString& CPEEngineInfoImpl::DtmfPostFix( const TInt aCallId ) const |
|
497 |
{ |
|
498 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
499 |
return iCurrentCalls[ aCallId ]->DtmfPostFix(); |
|
500 |
} |
|
501 |
||
502 |
// ----------------------------------------------------------------------------- |
|
503 |
// CPEEngineInfoImpl::DtmfString |
|
504 |
// Gets dtmf string value from the TPEBasicInfo structure. |
|
505 |
// ----------------------------------------------------------------------------- |
|
506 |
// |
|
507 |
const TPEDtmfString& CPEEngineInfoImpl::DtmfString() const |
|
508 |
{ |
|
509 |
return iBasicInfo.iDtmfString; |
|
510 |
} |
|
511 |
||
512 |
// ----------------------------------------------------------------------------- |
|
513 |
// CPEEngineInfoImpl::DtmfStringCommand |
|
514 |
// Gets dtmf string command value from TPECallCommandInfo-structure |
|
515 |
// ----------------------------------------------------------------------------- |
|
516 |
// |
|
517 |
const TPEDtmfString& CPEEngineInfoImpl::DtmfStringCommand() const |
|
518 |
{ |
|
519 |
return iCallCommandInfo.iDtmfString; |
|
520 |
} |
|
521 |
||
522 |
// ----------------------------------------------------------------------------- |
|
523 |
// CPEEngineInfoImpl::ErrorInfo |
|
524 |
// Gets the error code value of the phone from the TPEBasicInfo structure. |
|
525 |
// ----------------------------------------------------------------------------- |
|
526 |
// |
|
527 |
const TPEErrorInfo& CPEEngineInfoImpl::ErrorInfo() const |
|
528 |
{ |
|
529 |
return iBasicInfo.iErrorInfo; |
|
530 |
} |
|
531 |
||
532 |
// ----------------------------------------------------------------------------- |
|
533 |
// CPEEngineInfoImpl::InbandTone |
|
534 |
// Gets correct inband tone for specific call state transition or error |
|
535 |
// ----------------------------------------------------------------------------- |
|
536 |
// |
|
537 |
const TCCPTone& CPEEngineInfoImpl::InbandTone() const |
|
538 |
{ |
|
539 |
return iBasicInfo.iInbandTone; |
|
540 |
} |
|
541 |
||
542 |
// ----------------------------------------------------------------------------- |
|
543 |
// CPEEngineInfoImpl::KeyCode |
|
544 |
// Gets key code value. |
|
545 |
// ----------------------------------------------------------------------------- |
|
546 |
// |
|
547 |
const TChar& CPEEngineInfoImpl::KeyCode() const |
|
548 |
{ |
|
549 |
return iCallCommandInfo.iKeyCode; |
|
550 |
} |
|
551 |
||
552 |
// ----------------------------------------------------------------------------- |
|
553 |
// CPEEngineInfoImpl::KeypadVolume |
|
554 |
// Gets Keypad volume value from the TPEBasicInfo structure. |
|
555 |
// (other items were commented in a header). |
|
556 |
// ----------------------------------------------------------------------------- |
|
557 |
// |
|
558 |
const TInt& CPEEngineInfoImpl::KeypadVolume() const |
|
559 |
{ |
|
560 |
return iBasicInfo.iKeypadVolume; |
|
561 |
} |
|
562 |
||
563 |
// ----------------------------------------------------------------------------- |
|
564 |
// CPEEngineInfoImpl::LoggingIndicator |
|
565 |
// Get logging indicator from TPECallInfo. |
|
566 |
// (other items were commented in a header). |
|
567 |
// ----------------------------------------------------------------------------- |
|
568 |
// |
|
569 |
TBool CPEEngineInfoImpl::LoggingIndicator( |
|
570 |
const TInt aCallId ) const |
|
571 |
{ |
|
572 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
573 |
__ASSERT_ALWAYS( !CallIdCheck::IsConference( aCallId ), Panic( EPEPanicIllegalCommand ) ); |
|
574 |
return iCurrentCalls[ aCallId ]->LoggingEnabled(); |
|
575 |
} |
|
576 |
||
577 |
// ----------------------------------------------------------------------------- |
|
578 |
// CPEEngineInfoImpl::MissedCall |
|
579 |
// Get missed call indicator from TPECallInfo. |
|
580 |
// (other items were commented in a header). |
|
581 |
// ----------------------------------------------------------------------------- |
|
582 |
// |
|
583 |
TBool CPEEngineInfoImpl::MissedCall( |
|
584 |
const TInt aCallId ) const |
|
585 |
{ |
|
586 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
587 |
__ASSERT_ALWAYS( !CallIdCheck::IsConference( aCallId ), Panic( EPEPanicIllegalCommand ) ); |
|
588 |
return iCurrentCalls[ aCallId ]->MissedCall(); |
|
589 |
} |
|
590 |
||
591 |
// ----------------------------------------------------------------------------- |
|
592 |
// CPEEngineInfoImpl::NetworkInformation |
|
593 |
// Return network information |
|
594 |
// (other items were commented in a header). |
|
595 |
// ----------------------------------------------------------------------------- |
|
596 |
// |
|
597 |
const TNWNetworkRegistrationStatus& CPEEngineInfoImpl::NetworkRegistrationStatus() const |
|
598 |
{ |
|
599 |
return iBasicInfo.iNetworkRegistrationStatus; |
|
600 |
} |
|
601 |
||
602 |
// ----------------------------------------------------------------------------- |
|
603 |
// CPEEngineInfoImpl::PersonalToneStatus |
|
604 |
// Gets personal tone status from the TPEBasicInfo structure. |
|
605 |
// (other items were commented in a header). |
|
606 |
// ----------------------------------------------------------------------------- |
|
607 |
// |
|
608 |
const TBool& CPEEngineInfoImpl::PersonalToneStatus() const |
|
609 |
{ |
|
610 |
return iBasicInfo.iPersonalToneStatus; |
|
611 |
} |
|
612 |
||
613 |
// ----------------------------------------------------------------------------- |
|
614 |
// CPEEngineInfoImpl::PhoneNumber |
|
615 |
// Return the phone number from the TPECallCommandInfo structure. |
|
616 |
// ----------------------------------------------------------------------------- |
|
617 |
// |
|
618 |
const TPEPhoneNumber& CPEEngineInfoImpl::PhoneNumber() const |
|
619 |
{ |
|
620 |
return iCallCommandInfo.iPhoneNumber; |
|
621 |
} |
|
622 |
||
623 |
// ----------------------------------------------------------------------------- |
|
624 |
// CPEEngineInfoImpl::PhoneNumberIsServiceCode |
|
625 |
// Return the phone number parsing result |
|
626 |
// ----------------------------------------------------------------------------- |
|
627 |
// |
|
628 |
const TBool& CPEEngineInfoImpl::PhoneNumberIsServiceCode() const |
|
629 |
{ |
|
630 |
return iBasicInfo.iPhoneNumberIsServiceCode; |
|
631 |
} |
|
632 |
||
633 |
// ----------------------------------------------------------------------------- |
|
634 |
// CPEEngineInfoImpl::CallOriginCommand |
|
635 |
// Gets call origin for next call attempt |
|
636 |
// ----------------------------------------------------------------------------- |
|
637 |
// |
|
638 |
const TPECallOrigin& CPEEngineInfoImpl::CallOriginCommand() const |
|
639 |
{ |
|
640 |
return iCallCommandInfo.iCallOrigin; |
|
641 |
} |
|
642 |
||
643 |
// CPEEngineInfoImpl::ProfileId |
|
644 |
// Gets the profile id from the TPEBasicInfo structure. |
|
645 |
// ----------------------------------------------------------------------------- |
|
646 |
// |
|
647 |
const TInt& CPEEngineInfoImpl::ProfileId() const |
|
648 |
{ |
|
649 |
return iBasicInfo.iProfileId; |
|
650 |
} |
|
651 |
||
652 |
// ----------------------------------------------------------------------------- |
|
653 |
// CPEEngineInfoImpl::ProfileName |
|
654 |
// Gets the profile name from the TPEBasicInfo structure. |
|
655 |
// ----------------------------------------------------------------------------- |
|
656 |
// |
|
657 |
const TPEProfileName& CPEEngineInfoImpl::ProfileName() const |
|
658 |
{ |
|
659 |
return iBasicInfo.iProfileName; |
|
660 |
} |
|
661 |
||
662 |
// ----------------------------------------------------------------------------- |
|
663 |
// CPEEngineInfoImpl::RemoteIdentity |
|
664 |
// Gets the remote identity from the TPEBasicInfo structure. |
|
665 |
// ----------------------------------------------------------------------------- |
|
666 |
// |
|
667 |
RMobileCall::TMobileCallRemoteIdentityStatus CPEEngineInfoImpl::RemoteIdentity( |
|
668 |
const TInt aCallId ) const |
|
669 |
{ |
|
670 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
671 |
return iCurrentCalls[ aCallId ]->RemoteIdentity(); |
|
672 |
} |
|
673 |
||
674 |
// ----------------------------------------------------------------------------- |
|
675 |
// CPEEngineInfoImpl::RingingTone |
|
676 |
// Gets the ringing tone file name from the TPEBasicInfo structure. |
|
677 |
// ----------------------------------------------------------------------------- |
|
678 |
// |
|
679 |
const TPEContactFileName& CPEEngineInfoImpl::RingingTone( |
|
680 |
const TInt& aCallId ) const |
|
681 |
{ |
|
682 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
683 |
||
684 |
if ( iCurrentCalls[aCallId]->AlsLine() == CCCECallParameters::ECCELineTypeAux ) |
|
685 |
{ |
|
686 |
return iBasicInfo.iRingingToneName2; |
|
687 |
} |
|
688 |
else if ( EPECallTypeVideo == iCurrentCalls[aCallId]->CallType() ) |
|
689 |
{ |
|
690 |
return iBasicInfo.iVideoCallRingingTone; |
|
691 |
} |
|
692 |
else |
|
693 |
{ |
|
694 |
return iBasicInfo.iRingingToneName1; |
|
695 |
} |
|
696 |
} |
|
697 |
||
698 |
// ----------------------------------------------------------------------------- |
|
699 |
// CPEEngineInfoImpl::RingingType |
|
700 |
// Gets the ringingtype. |
|
701 |
// (other items were commented in a header). |
|
702 |
// ----------------------------------------------------------------------------- |
|
703 |
// |
|
704 |
const TProfileRingingType& CPEEngineInfoImpl::RingingType() const |
|
705 |
{ |
|
706 |
return iBasicInfo.iRingingType; |
|
707 |
} |
|
708 |
||
709 |
// ----------------------------------------------------------------------------- |
|
710 |
// CPEEngineInfoImpl::RingingVolume |
|
711 |
// Gets the ringing volume. |
|
712 |
// (other items were commented in a header). |
|
713 |
// ----------------------------------------------------------------------------- |
|
714 |
// |
|
715 |
const TInt& CPEEngineInfoImpl::RingingVolume() const |
|
716 |
{ |
|
717 |
return iBasicInfo.iRingingVolume; |
|
718 |
} |
|
719 |
||
720 |
// ----------------------------------------------------------------------------- |
|
721 |
// CPEEngineInfoImpl::TextToSpeech |
|
722 |
// Return the status of the text-to-speech preference setting. |
|
723 |
// (other items were commented in a header). |
|
724 |
// ----------------------------------------------------------------------------- |
|
725 |
// |
|
726 |
const TBool& CPEEngineInfoImpl::TextToSpeech() const |
|
727 |
{ |
|
728 |
return iBasicInfo.iTextToSpeech; |
|
729 |
} |
|
730 |
||
731 |
// ----------------------------------------------------------------------------- |
|
732 |
// CPEEngineInfoImpl::UserToUserInformation |
|
733 |
// Return User to user information |
|
734 |
// (other items were commented in a header). |
|
735 |
// ----------------------------------------------------------------------------- |
|
736 |
// |
|
737 |
const TPEUserToUserInfo& CPEEngineInfoImpl::UserToUserInformation() const |
|
738 |
{ |
|
739 |
return iCallCommandInfo.iUserToUserInfo; |
|
740 |
} |
|
741 |
||
742 |
// ----------------------------------------------------------------------------- |
|
743 |
// CPEEngineInfoImpl::SetALSLine |
|
744 |
// Sets active als line value to the TPEBasicInfo structure |
|
745 |
// (other items were commented in a header). |
|
746 |
// ----------------------------------------------------------------------------- |
|
747 |
// |
|
748 |
void CPEEngineInfoImpl::SetALSLine( |
|
749 |
const CCCECallParameters::TCCELineType& aALSLine ) |
|
750 |
{ |
|
751 |
TEFLOGSTRING2( KTAINT, |
|
752 |
"PE CPEEngineInfoImpl::SetALSLine: aALSLine: %d", aALSLine ); |
|
753 |
__ASSERT_ALWAYS( ( CCCECallParameters::ECCELineTypePrimary <= aALSLine && aALSLine <= CCCECallParameters::ECCELineTypeAux ), |
|
754 |
Panic( EPEPanicInvalidParameter ) ); |
|
755 |
iBasicInfo.iALSLine = aALSLine; |
|
756 |
} |
|
757 |
||
758 |
||
759 |
// ----------------------------------------------------------------------------- |
|
760 |
// CPEEngineInfoImpl::SetALSLine |
|
761 |
// Sets active als line value to the TPEBasicInfo structure |
|
762 |
// (other items were commented in a header). |
|
763 |
// ----------------------------------------------------------------------------- |
|
764 |
// |
|
765 |
void CPEEngineInfoImpl::SetALSLineSupport( |
|
766 |
const TBool& aALSLineSupport ) |
|
767 |
{ |
|
768 |
TEFLOGSTRING2( KTAINT, |
|
769 |
"PE CPEEngineInfoImpl::ALSLineSupport: aALSLineSupport: %d", aALSLineSupport ); |
|
770 |
iBasicInfo.iALSLineSupport = aALSLineSupport; |
|
771 |
} |
|
772 |
||
773 |
// ----------------------------------------------------------------------------- |
|
774 |
// CPEEngineInfoImpl::SetAudioMuteCommand |
|
775 |
// Sets audio mode of the phone to the TPEBasicInfo structure. |
|
776 |
// (other items were commented in a header). |
|
777 |
// ----------------------------------------------------------------------------- |
|
778 |
// |
|
779 |
void CPEEngineInfoImpl::SetAudioMuteCommand( |
|
780 |
const TBool& aAudioMute ) |
|
781 |
{ |
|
782 |
TEFLOGSTRING2( KTAINT, |
|
783 |
"PE CPEEngineInfoImpl::SetAudioMuteCommand, mute: %d", aAudioMute ); |
|
784 |
iCallCommandInfo.iAudioMute = aAudioMute; |
|
785 |
} |
|
786 |
||
787 |
// ----------------------------------------------------------------------------- |
|
788 |
// CPEEngineInfoImpl::SetAudioOutputCommand |
|
789 |
// Sets audio output path to the TPECallCommandInfo structure. |
|
790 |
// (other items were commented in a header). |
|
791 |
// ----------------------------------------------------------------------------- |
|
792 |
// |
|
793 |
void CPEEngineInfoImpl::SetAudioOutputCommand( |
|
794 |
const TPEAudioOutput& aOutput, |
|
795 |
const TBool aShowNote |
|
796 |
) |
|
797 |
{ |
|
798 |
TEFLOGSTRING2( KTAINT, |
|
799 |
"PE CPEEngineInfoImpl::SetAudioOutputCommand, output: %d", aOutput ); |
|
800 |
__ASSERT_ALWAYS( ( EPENotActive <= aOutput && |
|
801 |
aOutput <= EPETTY ), Panic( EPEPanicInvalidParameter ) ); |
|
802 |
iCallCommandInfo.iAudioOutput = aOutput; |
|
803 |
iCallCommandInfo.iShowNote = aShowNote; |
|
804 |
} |
|
805 |
||
806 |
// ----------------------------------------------------------------------------- |
|
807 |
// CPEEngineInfoImpl::SetAudioVolumeCommand |
|
808 |
// Sets audio mode of the phone to the TPEBasicInfo structure. |
|
809 |
// (other items were commented in a header). |
|
810 |
// ----------------------------------------------------------------------------- |
|
811 |
// |
|
812 |
void CPEEngineInfoImpl::SetAudioVolumeCommand( |
|
813 |
const TInt& aAudioVolume ) |
|
814 |
{ |
|
815 |
TEFLOGSTRING2( KTAINT, |
|
816 |
"PE CPEEngineInfoImpl::SetAudioVolumeCommand, volume: %d", aAudioVolume ); |
|
817 |
// No need to check that, is parameter value correct. Maximun value is |
|
818 |
// platform depended. If the volume is not within this range, the volume |
|
819 |
// is automatically set to minimum or maximum value based on the value |
|
820 |
// that is being passed (by CMMFDevSound ). |
|
821 |
iCallCommandInfo.iAudioVolume = aAudioVolume; |
|
822 |
} |
|
823 |
||
824 |
// ----------------------------------------------------------------------------- |
|
825 |
// CPEEngineInfoImpl::SetCallClientInformation |
|
826 |
// Sets phone client information to the TPECallInfo structure. |
|
827 |
// (other items were commented in a header). |
|
828 |
// ----------------------------------------------------------------------------- |
|
829 |
// |
|
830 |
void CPEEngineInfoImpl::SetCallClientInformation( |
|
831 |
const MPEClientInformation& aClientInformation, |
|
832 |
const TInt aCallId ) |
|
833 |
{ |
|
834 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
835 |
iCurrentCalls[ aCallId ]->ClientInformation().Set( aClientInformation ); |
|
836 |
} |
|
837 |
||
838 |
// ----------------------------------------------------------------------------- |
|
839 |
// CPEEngineInfoImpl::SetCallDirection |
|
840 |
// Sets the call direction to the TPECallInfo structure. |
|
841 |
// (other items were commented in a header). |
|
842 |
// ----------------------------------------------------------------------------- |
|
843 |
// |
|
844 |
void CPEEngineInfoImpl::SetCallDirection( |
|
845 |
const RMobileCall::TMobileCallDirection& aCallDirection, |
|
846 |
const TInt aCallId ) |
|
847 |
{ |
|
848 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
849 |
__ASSERT_ALWAYS( ( RMobileCall::EDirectionUnknown <= aCallDirection && |
|
850 |
aCallDirection <= RMobileCall::EMobileTerminated ), Panic( EPEPanicInvalidParameter ) ); |
|
851 |
iCurrentCalls[ aCallId ]->SetCallDirection( aCallDirection ); |
|
852 |
} |
|
853 |
||
854 |
// ----------------------------------------------------------------------------- |
|
855 |
// CPEEngineInfoImpl::SetCallDuration |
|
856 |
// Sets the duration of the call to the TPECallInfo structure. |
|
857 |
// (other items were commented in a header). |
|
858 |
// ----------------------------------------------------------------------------- |
|
859 |
// |
|
860 |
void CPEEngineInfoImpl::SetCallDuration( |
|
861 |
const TTimeIntervalSeconds& aCallDuration, |
|
862 |
const TInt aCallId ) |
|
863 |
{ |
|
864 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
865 |
iCurrentCalls[ aCallId ]->SetDuration( aCallDuration ); |
|
866 |
} |
|
867 |
||
868 |
// ----------------------------------------------------------------------------- |
|
869 |
// CPEEngineInfoImpl::SetCallId |
|
870 |
// Sets the identification number of the call to the TPECallCommandInfo structure |
|
871 |
// (other items were commented in a header). |
|
872 |
// ----------------------------------------------------------------------------- |
|
873 |
// |
|
874 |
void CPEEngineInfoImpl::SetCallId( |
|
875 |
const TInt& aCallId ) |
|
876 |
{ |
|
877 |
__ASSERT_ALWAYS( CallIdCheck::IsValid( aCallId ), |
|
878 |
Panic( EPEPanicCallIndexOutOfRange ) ); |
|
879 |
iCallCommandInfo.iCallId = aCallId; |
|
880 |
} |
|
881 |
||
882 |
// ----------------------------------------------------------------------------- |
|
883 |
// CPEEngineInfoImpl::SetCallStartTime |
|
884 |
// Sets the start time of the call to the TPECallInfo structure. |
|
885 |
// (other items were commented in a header). |
|
886 |
// ----------------------------------------------------------------------------- |
|
887 |
// |
|
888 |
void CPEEngineInfoImpl::SetCallStartTime( |
|
889 |
const TTime& aCallStartTime, |
|
890 |
const TInt aCallId ) |
|
891 |
{ |
|
892 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
893 |
iCurrentCalls[ aCallId ]->SetStartTime( aCallStartTime ); |
|
894 |
} |
|
895 |
||
896 |
// ----------------------------------------------------------------------------- |
|
897 |
// CPEEngineInfoImpl::SetCallState |
|
898 |
// Sets the state of the call to the TPECallInfo structure. |
|
899 |
// (other items were commented in a header). |
|
900 |
// ----------------------------------------------------------------------------- |
|
901 |
// |
|
902 |
void CPEEngineInfoImpl::SetCallState( |
|
903 |
const TPEState& aCallState, |
|
904 |
const TInt aCallId ) |
|
905 |
{ |
|
906 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
907 |
__ASSERT_ALWAYS( !( aCallState > EPEStateMaximumState ), |
|
908 |
Panic( EPEPanicInvalidParameter ) ); |
|
909 |
iCurrentCalls[ aCallId ]->SetCallState( aCallState ); |
|
910 |
} |
|
911 |
||
912 |
// ----------------------------------------------------------------------------- |
|
913 |
// CPEEngineInfoImpl::SetCallType |
|
914 |
// Sets the type of the call. |
|
915 |
// ----------------------------------------------------------------------------- |
|
916 |
// |
|
917 |
void CPEEngineInfoImpl::SetCallType( |
|
918 |
const TPECallType& aCallType, |
|
919 |
const TInt aCallId ) |
|
920 |
{ |
|
921 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
922 |
__ASSERT_ALWAYS( ( EPECallTypeUninitialized <= aCallType && |
|
923 |
aCallType <= EPECallTypeVoIP ), Panic( EPEPanicInvalidParameter ) ); |
|
924 |
iCurrentCalls[ aCallId ]->SetCallType( aCallType ); |
|
925 |
TEFLOGSTRING3( KTAINT, |
|
926 |
"PE CPEEngineInfoImpl::SetCallType: call id: %d , aCallType: %d" |
|
927 |
,aCallId ,aCallType ); |
|
928 |
} |
|
929 |
||
930 |
// ----------------------------------------------------------------------------- |
|
931 |
// CPEEngineInfoImpl::SetCallTypeCommand |
|
932 |
// Sets call type information for following command message |
|
933 |
// ----------------------------------------------------------------------------- |
|
934 |
// |
|
935 |
void CPEEngineInfoImpl::SetCallTypeCommand( |
|
936 |
const TPECallType& aCallType ) |
|
937 |
{ |
|
938 |
__ASSERT_ALWAYS( ( EPECallTypeUninitialized <= aCallType && |
|
939 |
aCallType <= EPECallTypeVoIP ), Panic( EPEPanicInvalidParameter ) ); |
|
940 |
iCallCommandInfo.iCallType = aCallType; |
|
941 |
} |
|
942 |
||
943 |
// ----------------------------------------------------------------------------- |
|
944 |
// CPEEngineInfoImpl::SetConferenceCallState |
|
945 |
// ----------------------------------------------------------------------------- |
|
946 |
// |
|
947 |
void CPEEngineInfoImpl::SetConferenceCallState( |
|
948 |
const TPEState& aCallState ) |
|
949 |
{ |
|
950 |
__ASSERT_ALWAYS( !( aCallState > EPEStateMaximumState ), |
|
951 |
Panic( EPEPanicInvalidParameter ) ); |
|
952 |
iConferenceCallInfo.iConferenceCallState = aCallState; |
|
953 |
} |
|
954 |
||
955 |
||
956 |
||
957 |
// ----------------------------------------------------------------------------- |
|
958 |
// CPEEngineInfoImpl::SetDataPortName |
|
959 |
// Sets the name of data port currently on-loan. |
|
960 |
// ----------------------------------------------------------------------------- |
|
961 |
// |
|
962 |
void CPEEngineInfoImpl::SetDataPortName( |
|
963 |
const TName& aDataPortName ) |
|
964 |
{ |
|
965 |
TEFLOGSTRING2( KTAINT, |
|
966 |
"PE CPEEngineInfoImpl::SetDataPortName: dataport name = %S", &aDataPortName ); |
|
967 |
iBasicInfo.iDataPortName = aDataPortName; |
|
968 |
} |
|
969 |
||
970 |
// ----------------------------------------------------------------------------- |
|
971 |
// CPEEngineInfoImpl::SetDtmfStringCommand |
|
972 |
// Sets the dtmf string value to the TPECommandInfo structure. |
|
973 |
// (other items were commented in a header). |
|
974 |
// ----------------------------------------------------------------------------- |
|
975 |
// |
|
976 |
void CPEEngineInfoImpl::SetDtmfStringCommand( |
|
977 |
const TPEDtmfString& aDtmfString ) |
|
978 |
{ |
|
979 |
__ASSERT_DEBUG( !( aDtmfString.Length() > KPEDtmfMaxLength ), |
|
980 |
Panic( EPEPanicInvalidParameter ) ); |
|
981 |
iCallCommandInfo.iDtmfString = aDtmfString; |
|
982 |
} |
|
983 |
||
984 |
// ----------------------------------------------------------------------------- |
|
985 |
// CPEEngineInfoImpl::SetKeyCode |
|
986 |
// Sets the key code value to the TPECallCommandInfo structure. |
|
987 |
// ----------------------------------------------------------------------------- |
|
988 |
// |
|
989 |
void CPEEngineInfoImpl::SetKeyCode( |
|
990 |
const TChar& aKeyCode ) |
|
991 |
{ |
|
992 |
iCallCommandInfo.iKeyCode = aKeyCode; |
|
993 |
} |
|
994 |
||
995 |
// ----------------------------------------------------------------------------- |
|
996 |
// CPEEngineInfoImpl::SetLoggingIndicator |
|
997 |
// Set logging indicator to TPECallInfo. |
|
998 |
// ----------------------------------------------------------------------------- |
|
999 |
// |
|
1000 |
void CPEEngineInfoImpl::SetLoggingIndicator( |
|
1001 |
const TBool aLoggingIndicator, |
|
1002 |
const TInt aCallId ) |
|
1003 |
{ |
|
1004 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1005 |
__ASSERT_ALWAYS( !CallIdCheck::IsConference( aCallId ), Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1006 |
iCurrentCalls[ aCallId ]->SetLoggingEnabled( aLoggingIndicator ); |
|
1007 |
TEFLOGSTRING3( KTAINT, |
|
1008 |
"PE CPEEngineInfoImpl::SetLoggingIndicator: call id: %d , iLoggingEnabled: %d" |
|
1009 |
,aCallId ,aLoggingIndicator ); |
|
1010 |
} |
|
1011 |
||
1012 |
// ----------------------------------------------------------------------------- |
|
1013 |
// CPEEngineInfoImpl::SetMissedCall |
|
1014 |
// Set missed call indicator to TPECallInfo. |
|
1015 |
// ----------------------------------------------------------------------------- |
|
1016 |
// |
|
1017 |
void CPEEngineInfoImpl::SetMissedCall( |
|
1018 |
const TBool& aMissedCall, |
|
1019 |
const TInt aCallId ) |
|
1020 |
{ |
|
1021 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1022 |
__ASSERT_ALWAYS( !CallIdCheck::IsConference( aCallId ), Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1023 |
iCurrentCalls[ aCallId ]->SetMissedCall( aMissedCall ); |
|
1024 |
} |
|
1025 |
||
1026 |
// ----------------------------------------------------------------------------- |
|
1027 |
// CPEEngineInfoImpl::SetPhoneNumber |
|
1028 |
// Sets the phone number to the TPECallCommandInfo structure. |
|
1029 |
// ----------------------------------------------------------------------------- |
|
1030 |
// |
|
1031 |
void CPEEngineInfoImpl::SetPhoneNumber( |
|
1032 |
const TPEPhoneNumber& aPhoneNumber ) |
|
1033 |
{ |
|
1034 |
__ASSERT_DEBUG( !( aPhoneNumber.Length() > KPEPhoneNumberMaxLength ), |
|
1035 |
Panic( EPEPanicExternalDataIdOutOfRange ) ); |
|
1036 |
iCallCommandInfo.iPhoneNumber = aPhoneNumber; |
|
1037 |
} |
|
1038 |
||
1039 |
// ----------------------------------------------------------------------------- |
|
1040 |
// CPEEngineInfoImpl::SetRemoteIdentity |
|
1041 |
// Sets the remote party status to the TPECallInfo structure. |
|
1042 |
// ----------------------------------------------------------------------------- |
|
1043 |
// |
|
1044 |
void CPEEngineInfoImpl::SetRemoteIdentity( |
|
1045 |
const RMobileCall::TMobileCallRemoteIdentityStatus& aIdentity, |
|
1046 |
const TInt aCallId ) |
|
1047 |
{ |
|
1048 |
TEFLOGSTRING2( KTAINT, |
|
1049 |
"PE CPEEngineInfoImpl::SetRemoteIdentity: aIdentity = %d", aIdentity ); |
|
1050 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1051 |
__ASSERT_ALWAYS( ( RMobileCall::ERemoteIdentityUnknown <= aIdentity && |
|
1052 |
aIdentity <= RMobileCall::ERemoteIdentityAvailableNoCliUnavailable ), |
|
1053 |
Panic( EPEPanicInvalidParameter ) ); |
|
1054 |
iCurrentCalls[ aCallId ]->SetRemoteIdentity( aIdentity ); |
|
1055 |
} |
|
1056 |
||
1057 |
// ----------------------------------------------------------------------------- |
|
1058 |
// CPEEngineInfoImpl::TwoDigitSupportStatus |
|
1059 |
// Return the status of the two dial digit. |
|
1060 |
// (other items were commented in a header). |
|
1061 |
// ----------------------------------------------------------------------------- |
|
1062 |
// |
|
1063 |
||
1064 |
const TBool& CPEEngineInfoImpl::TwoDigitSupportStatus() const |
|
1065 |
{ |
|
1066 |
return iBasicInfo.iTwoDigitSupportStatus; |
|
1067 |
} |
|
1068 |
||
1069 |
// ----------------------------------------------------------------------------- |
|
1070 |
// CPEEngineInfoImpl::VoiceMailBoxNumberLine1 |
|
1071 |
// Gets the VoiceMailBoxNumber for line 1. |
|
1072 |
// (other items were commented in a header). |
|
1073 |
// ----------------------------------------------------------------------------- |
|
1074 |
// |
|
1075 |
const TPEPhoneNumber& CPEEngineInfoImpl::VoiceMailBoxNumberLine1() const |
|
1076 |
{ |
|
1077 |
return iBasicInfo.iVMBXNumbers.iVMBXL1; |
|
1078 |
} |
|
1079 |
||
1080 |
// ----------------------------------------------------------------------------- |
|
1081 |
// CPEEngineInfoImpl::VoiceMailBoxNumberLine2 |
|
1082 |
// Gets the VoiceMailBoxNumber for line 2. |
|
1083 |
// (other items were commented in a header). |
|
1084 |
// ----------------------------------------------------------------------------- |
|
1085 |
// |
|
1086 |
const TPEPhoneNumber& CPEEngineInfoImpl::VoiceMailBoxNumberLine2() const |
|
1087 |
{ |
|
1088 |
return iBasicInfo.iVMBXNumbers.iVMBXL2; |
|
1089 |
} |
|
1090 |
||
1091 |
// ----------------------------------------------------------------------------- |
|
1092 |
// CPEEngienInfo::DTMFVoiceMailBoxNumberLine1 |
|
1093 |
// Gets the DTMFVoiceMailBoxNumber for line 1. |
|
1094 |
// (other items were commented in a header). |
|
1095 |
// ----------------------------------------------------------------------------- |
|
1096 |
// |
|
1097 |
const TPEPhoneNumber& CPEEngineInfoImpl::DTMFVoiceMailBoxNumberLine1() const |
|
1098 |
{ |
|
1099 |
return iBasicInfo.iVMBXNumbers.iDTMFVMBXL1; |
|
1100 |
} |
|
1101 |
||
1102 |
// ----------------------------------------------------------------------------- |
|
1103 |
// CPEEngienInfo::DTMFVoiceMailBoxNumberLine2 |
|
1104 |
// Gets the DTMFVoiceMailBoxNumber for line 2. |
|
1105 |
// ----------------------------------------------------------------------------- |
|
1106 |
// |
|
1107 |
const TPEPhoneNumber& CPEEngineInfoImpl::DTMFVoiceMailBoxNumberLine2() const |
|
1108 |
{ |
|
1109 |
return iBasicInfo.iVMBXNumbers.iDTMFVMBXL2; |
|
1110 |
} |
|
1111 |
||
1112 |
// ----------------------------------------------------------------------------- |
|
1113 |
// CPEEngineInfoImpl::SetAlertForGroup |
|
1114 |
// Set the group id's which are active to play ring tone |
|
1115 |
// ----------------------------------------------------------------------------- |
|
1116 |
// |
|
1117 |
void CPEEngineInfoImpl::SetAlertForGroup( |
|
1118 |
const TArray< TContactItemId >& aAlertForGroup ) |
|
1119 |
{ |
|
1120 |
TInt errorCode( KErrNone ); |
|
1121 |
||
1122 |
iAlertForGroup.Reset(); |
|
1123 |
for ( TInt i = 0; i < aAlertForGroup.Count(); i++ ) |
|
1124 |
{ |
|
1125 |
errorCode = iAlertForGroup.Append( aAlertForGroup[ i ] ); |
|
1126 |
TEFLOGSTRING3( |
|
1127 |
KTAINT, |
|
1128 |
"PE CPEEngineInfoImpl::SetAlertForGroup, index: %d, alert for: %d", |
|
1129 |
i, |
|
1130 |
aAlertForGroup[ i ] ); |
|
1131 |
} |
|
1132 |
if ( errorCode != KErrNone ) |
|
1133 |
{ |
|
1134 |
TEFLOGSTRING2( KTAERROR, |
|
1135 |
"CPEENGINEINFOIMPL::SETALERTFORGROUP ! RARRAY::APPEND FAILED WITH EXIT CODE: &d", |
|
1136 |
errorCode ); |
|
1137 |
iAlertForGroup.Reset(); |
|
1138 |
} |
|
1139 |
} |
|
1140 |
||
1141 |
// ----------------------------------------------------------------------------- |
|
1142 |
// CPEEngineInfoImpl::SetAudioMute |
|
1143 |
// Sets audio mute state of the phone to TPEBasicInfo-structure |
|
1144 |
// ----------------------------------------------------------------------------- |
|
1145 |
// |
|
1146 |
void CPEEngineInfoImpl::SetAudioMute( |
|
1147 |
const TBool aAudioMute ) |
|
1148 |
{ |
|
1149 |
iBasicInfo.iAudioMute = aAudioMute; |
|
1150 |
} |
|
1151 |
||
1152 |
// ----------------------------------------------------------------------------- |
|
1153 |
// CPEEngineInfoImpl::SetAudioOutput |
|
1154 |
// Sets hands free mode of the phone to TPEBasicInfo-structure |
|
1155 |
// ----------------------------------------------------------------------------- |
|
1156 |
// |
|
1157 |
void CPEEngineInfoImpl::SetAudioOutput( |
|
1158 |
const TPEAudioOutput aOutput, |
|
1159 |
const TPEAudioOutput aPreviousOutput, |
|
1160 |
const TBool aShowNote ) |
|
1161 |
{ |
|
1162 |
TEFLOGSTRING2( KTAINT, |
|
1163 |
"PE CPEEngineInfoImpl::SetAudioOutput, output: %d", aOutput ); |
|
1164 |
__ASSERT_ALWAYS( ( EPENotActive <= aOutput && |
|
1165 |
aOutput <= EPETTY ), Panic( EPEPanicInvalidParameter ) ); |
|
1166 |
iBasicInfo.iPhoneAudioRouteParameters.iAudioOutput = aOutput; |
|
1167 |
iBasicInfo.iPhoneAudioRouteParameters.iPreviousOutput = aPreviousOutput; |
|
1168 |
iBasicInfo.iPhoneAudioRouteParameters.iShowNote = aShowNote; |
|
1169 |
} |
|
1170 |
||
1171 |
// ----------------------------------------------------------------------------- |
|
1172 |
// CPEEngineInfoImpl::SetAvailableAudioOutputs |
|
1173 |
// Sets hands free mode of the phone to TPEBasicInfo-structure |
|
1174 |
// ----------------------------------------------------------------------------- |
|
1175 |
// |
|
1176 |
void CPEEngineInfoImpl::SetAvailableAudioOutputs( |
|
1177 |
const TArray<TPEAudioOutput>& aAvailableOutputs ) |
|
1178 |
{ |
|
1179 |
TEFLOGSTRING( KTAINT, "PE CPEEngineInfoImpl::SetAvailableAudioOutputs" ); |
|
1180 |
// reset the array |
|
1181 |
iAvailableAudioOutputs.Reset(); |
|
1182 |
||
1183 |
// set the available outputs |
|
1184 |
for (TInt j = 0; j < aAvailableOutputs.Count(); j++) |
|
1185 |
{ |
|
1186 |
iAvailableAudioOutputs[j] = aAvailableOutputs[j]; |
|
1187 |
TEFLOGSTRING3( |
|
1188 |
KTAINT, |
|
1189 |
"PE CPEEngineInfoImpl::SetAvailableAudioOutputs, index: %d, available: %d", |
|
1190 |
j, |
|
1191 |
aAvailableOutputs[j] ); |
|
1192 |
} |
|
1193 |
TEFLOGSTRING( KTAINT, "PE CPEEngineInfoImpl::SetAvailableAudioOutputs: Done" ); |
|
1194 |
} |
|
1195 |
||
1196 |
// ----------------------------------------------------------------------------- |
|
1197 |
// CPEEngineInfoImpl::SetAudioOutputPreference |
|
1198 |
// Sets audio output preference to TPEBasicInfo-structure |
|
1199 |
// ----------------------------------------------------------------------------- |
|
1200 |
// |
|
1201 |
void CPEEngineInfoImpl::SetAudioOutputPreference( |
|
1202 |
const TInt aOutputPreference ) |
|
1203 |
{ |
|
1204 |
TEFLOGSTRING2( KTAINT, |
|
1205 |
"PE CPEEngineInfoImpl::SetAudioOutputPreference, value: %d", |
|
1206 |
aOutputPreference ); |
|
1207 |
__ASSERT_ALWAYS( !( aOutputPreference != EPSAudioPrivate && |
|
1208 |
aOutputPreference != EPSAudioPublic ), Panic( EPEPanicInvalidParameter ) ); |
|
1209 |
iBasicInfo.iAudioOutputPreference = aOutputPreference; |
|
1210 |
} |
|
1211 |
||
1212 |
// ----------------------------------------------------------------------------- |
|
1213 |
// CPEEngineInfoImpl::SetAudioVolume |
|
1214 |
// Sets audio volume of the phone to TPEBasicInfo-structure |
|
1215 |
// ----------------------------------------------------------------------------- |
|
1216 |
// |
|
1217 |
void CPEEngineInfoImpl::SetAudioVolume( |
|
1218 |
const TInt aAudioVolume ) |
|
1219 |
{ |
|
1220 |
TEFLOGSTRING2( KTAINT, |
|
1221 |
"PE CPEEngineInfoImpl::SetAudioVolume, volume: %d", aAudioVolume ); |
|
1222 |
iBasicInfo.iAudioVolume = aAudioVolume; |
|
1223 |
} |
|
1224 |
||
1225 |
// ----------------------------------------------------------------------------- |
|
1226 |
// CPEEngineInfoImpl::SetCallALSLine |
|
1227 |
// Sets the alsline value to the TPECallInfo structure. |
|
1228 |
// ----------------------------------------------------------------------------- |
|
1229 |
// |
|
1230 |
void CPEEngineInfoImpl::SetCallALSLine( |
|
1231 |
const CCCECallParameters::TCCELineType& aALSLine, |
|
1232 |
const TInt aCallId ) |
|
1233 |
{ |
|
1234 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1235 |
__ASSERT_ALWAYS( ( CCCECallParameters::ECCELineTypePrimary <= aALSLine && aALSLine <= CCCECallParameters::ECCELineTypeAux ), |
|
1236 |
Panic( EPEPanicInvalidParameter ) ); |
|
1237 |
iCurrentCalls[ aCallId ]->SetAlsLine( aALSLine ); |
|
1238 |
TEFLOGSTRING3( KTAINT, |
|
1239 |
"PE CPEEngineInfoImpl::SetCallALSLine: line: %d, call id: %d", |
|
1240 |
iCurrentCalls[ aCallId ]->AlsLine(), |
|
1241 |
aCallId ); |
|
1242 |
} |
|
1243 |
||
1244 |
// ----------------------------------------------------------------------------- |
|
1245 |
// CPEEngineInfoImpl::SetCallDuration |
|
1246 |
// Sets call duration of the last call to Idle to TPEBasicInfo-structure |
|
1247 |
// ----------------------------------------------------------------------------- |
|
1248 |
// |
|
1249 |
void CPEEngineInfoImpl::SetCallDuration( |
|
1250 |
const TInt& aCallDuration ) |
|
1251 |
{ |
|
1252 |
iBasicInfo.iLastCallDuration = aCallDuration; |
|
1253 |
} |
|
1254 |
||
1255 |
// ----------------------------------------------------------------------------- |
|
1256 |
// CPEEngineInfoImpl::SetDtmfPostFix |
|
1257 |
// Sets dtmf postfix value to TPEBasicInfo-structure |
|
1258 |
// ----------------------------------------------------------------------------- |
|
1259 |
// |
|
1260 |
void CPEEngineInfoImpl::SetDtmfPostFix( |
|
1261 |
const TPEDtmfString& aDtmfPostFix, |
|
1262 |
const TInt aCallId ) |
|
1263 |
{ |
|
1264 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1265 |
__ASSERT_DEBUG( !( aDtmfPostFix.Length() > KPEDtmfMaxLength ), |
|
1266 |
Panic( EPEPanicInvalidParameter ) ); |
|
1267 |
iCurrentCalls[ aCallId ]->SetDtmfPostFix( aDtmfPostFix ); |
|
1268 |
} |
|
1269 |
||
1270 |
// ----------------------------------------------------------------------------- |
|
1271 |
// CPEEngineInfoImpl::SetDtmfString |
|
1272 |
// Sets dtmf string value to TPEBasicInfo-structure |
|
1273 |
// ----------------------------------------------------------------------------- |
|
1274 |
// |
|
1275 |
void CPEEngineInfoImpl::SetDtmfString( |
|
1276 |
const TPEDtmfString& aDtmfString ) |
|
1277 |
{ |
|
1278 |
__ASSERT_DEBUG( !( aDtmfString.Length() > KPEDtmfMaxLength ), |
|
1279 |
Panic( EPEPanicInvalidParameter ) ); |
|
1280 |
iBasicInfo.iDtmfString = aDtmfString; |
|
1281 |
} |
|
1282 |
// ----------------------------------------------------------------------------- |
|
1283 |
// CPEEngineInfoImpl::SetErrorCode |
|
1284 |
// Sets error code of the phone to TPEBasicInfo-structure |
|
1285 |
// ----------------------------------------------------------------------------- |
|
1286 |
// |
|
1287 |
void CPEEngineInfoImpl::SetErrorCode( |
|
1288 |
const TInt aErrorCode ) |
|
1289 |
{ |
|
1290 |
iBasicInfo.iErrorInfo.iErrorCode = aErrorCode; |
|
1291 |
} |
|
1292 |
||
1293 |
// ----------------------------------------------------------------------------- |
|
1294 |
// CPEEngineInfoImpl::SetInbandTone |
|
1295 |
// Sets correct inband tone for specific call state transition or error |
|
1296 |
// ----------------------------------------------------------------------------- |
|
1297 |
// |
|
1298 |
void CPEEngineInfoImpl::SetInbandTone( const TCCPTone aTone ) |
|
1299 |
{ |
|
1300 |
iBasicInfo.iInbandTone = aTone; |
|
1301 |
} |
|
1302 |
||
1303 |
// ----------------------------------------------------------------------------- |
|
1304 |
// CPEEngineInfoImpl::SetKeypadVolume |
|
1305 |
// Sets keypad volume of the phone to TPEBasicInfo-structure |
|
1306 |
// ----------------------------------------------------------------------------- |
|
1307 |
// |
|
1308 |
void CPEEngineInfoImpl::SetKeypadVolume( |
|
1309 |
const TInt aKeypadVolume ) |
|
1310 |
{ |
|
1311 |
iBasicInfo.iKeypadVolume = aKeypadVolume; |
|
1312 |
} |
|
1313 |
||
1314 |
// ----------------------------------------------------------------------------- |
|
1315 |
// CPEEngineInfoImpl::SetNetworkRegistrationStatus |
|
1316 |
// Sets network registration status to TPEBasicInfo-structure |
|
1317 |
// ----------------------------------------------------------------------------- |
|
1318 |
// |
|
1319 |
void CPEEngineInfoImpl::SetNetworkRegistrationStatus( |
|
1320 |
const TNWNetworkRegistrationStatus& aRegistrationStatus ) |
|
1321 |
{ |
|
1322 |
__ASSERT_ALWAYS( ( ENWStatusRegistrationUnknown <= aRegistrationStatus && |
|
1323 |
aRegistrationStatus <= ENWStatusRegisteredRoaming ), Panic( EPEPanicInvalidParameter ) ); |
|
1324 |
iBasicInfo.iNetworkRegistrationStatus = aRegistrationStatus; |
|
1325 |
TEFLOGSTRING2( KTAINT, |
|
1326 |
"PE CPEEngineInfoImpl::SetNetworkRegistrationStatus, iNetworkRegistrationStatus: %d", |
|
1327 |
iBasicInfo.iNetworkRegistrationStatus ); |
|
1328 |
} |
|
1329 |
||
1330 |
// ----------------------------------------------------------------------------- |
|
1331 |
// CPEEngineInfoImpl::SetPersonalToneStatus |
|
1332 |
// Sets personal tone status of the phones profile settings to TPEBasicInfo-structure |
|
1333 |
// ----------------------------------------------------------------------------- |
|
1334 |
// |
|
1335 |
void CPEEngineInfoImpl::SetPersonalToneStatus( |
|
1336 |
const TInt& aPersonalToneStatus ) |
|
1337 |
{ |
|
1338 |
iBasicInfo.iPersonalToneStatus = aPersonalToneStatus; |
|
1339 |
} |
|
1340 |
||
1341 |
// ----------------------------------------------------------------------------- |
|
1342 |
// CPEEngineInfoImpl::SetPhoneNumberIsServiceCode |
|
1343 |
// Sets phone number parsing result |
|
1344 |
// ----------------------------------------------------------------------------- |
|
1345 |
// |
|
1346 |
void CPEEngineInfoImpl::SetPhoneNumberIsServiceCode( |
|
1347 |
const TBool& aServiceCode ) |
|
1348 |
{ |
|
1349 |
iBasicInfo.iPhoneNumberIsServiceCode = aServiceCode; |
|
1350 |
} |
|
1351 |
||
1352 |
// ----------------------------------------------------------------------------- |
|
1353 |
// CPEEngineInfoImpl::SetCallOriginCommand |
|
1354 |
// Sets call origin for the next call attempt |
|
1355 |
// ----------------------------------------------------------------------------- |
|
1356 |
// |
|
1357 |
void CPEEngineInfoImpl::SetCallOriginCommand( const TPECallOrigin& aOrigin ) |
|
1358 |
{ |
|
1359 |
iCallCommandInfo.iCallOrigin = aOrigin; |
|
1360 |
} |
|
1361 |
||
1362 |
// ----------------------------------------------------------------------------- |
|
1363 |
// CPEEngineInfoImpl::SetProfileId |
|
1364 |
// Sets profile id to TPEBasicInfo-structure |
|
1365 |
// (other items were commented in a header). |
|
1366 |
// ----------------------------------------------------------------------------- |
|
1367 |
// |
|
1368 |
void CPEEngineInfoImpl::SetProfileId( |
|
1369 |
const TInt aProfileId ) |
|
1370 |
{ |
|
1371 |
iBasicInfo.iProfileId = aProfileId; |
|
1372 |
} |
|
1373 |
||
1374 |
// ----------------------------------------------------------------------------- |
|
1375 |
// CPEEngineInfoImpl::SetProfileName |
|
1376 |
// Sets profile name to TPEBasicInfo-structure |
|
1377 |
// (other items were commented in a header). |
|
1378 |
// ----------------------------------------------------------------------------- |
|
1379 |
// |
|
1380 |
void CPEEngineInfoImpl::SetProfileName( |
|
1381 |
const TPEProfileName& aProfileName ) |
|
1382 |
{ |
|
1383 |
__ASSERT_DEBUG( !( aProfileName.Length() > KPEProfileNameLength ), Panic( EPEPanicInvalidParameter ) ); |
|
1384 |
iBasicInfo.iProfileName = aProfileName; |
|
1385 |
} |
|
1386 |
||
1387 |
// ----------------------------------------------------------------------------- |
|
1388 |
// CPEEngineInfoImpl::SetRingingTone1 |
|
1389 |
// Sets ringing type to TPEBasicInfo-structure |
|
1390 |
// (other items were commented in a header). |
|
1391 |
// ----------------------------------------------------------------------------- |
|
1392 |
// |
|
1393 |
void CPEEngineInfoImpl::SetRingingTone1( |
|
1394 |
const TPEContactFileName& aRingingToneName ) |
|
1395 |
{ |
|
1396 |
__ASSERT_DEBUG( !( aRingingToneName.Length() > KMaxFileName ), |
|
1397 |
Panic( EPEPanicInvalidParameter ) ); |
|
1398 |
iBasicInfo.iRingingToneName1 = aRingingToneName; |
|
1399 |
} |
|
1400 |
||
1401 |
// ----------------------------------------------------------------------------- |
|
1402 |
// CPEEngineInfoImpl::SetRingingTone2 |
|
1403 |
// Sets ringing type to TPEBasicInfo-structure |
|
1404 |
// (other items were commented in a header). |
|
1405 |
// ----------------------------------------------------------------------------- |
|
1406 |
// |
|
1407 |
void CPEEngineInfoImpl::SetRingingTone2( |
|
1408 |
const TPEContactFileName& aRingingToneName ) |
|
1409 |
{ |
|
1410 |
__ASSERT_DEBUG( !( aRingingToneName.Length() > KMaxFileName ), |
|
1411 |
Panic( EPEPanicInvalidParameter ) ); |
|
1412 |
iBasicInfo.iRingingToneName2 = aRingingToneName; |
|
1413 |
} |
|
1414 |
||
1415 |
// ----------------------------------------------------------------------------- |
|
1416 |
// CPEEngineInfoImpl::SetVideoCallRingingTone |
|
1417 |
// Sets video call ringing tone name to TPEBasicInfo-structure |
|
1418 |
// (other items were commented in a header). |
|
1419 |
// ----------------------------------------------------------------------------- |
|
1420 |
// |
|
1421 |
void CPEEngineInfoImpl::SetVideoCallRingingTone( |
|
1422 |
const TPEContactFileName& aRingingToneName ) |
|
1423 |
{ |
|
1424 |
__ASSERT_DEBUG( !( aRingingToneName.Length() > KMaxFileName ), |
|
1425 |
Panic( EPEPanicInvalidParameter ) ); |
|
1426 |
iBasicInfo.iVideoCallRingingTone = aRingingToneName; |
|
1427 |
} |
|
1428 |
||
1429 |
// ----------------------------------------------------------------------------- |
|
1430 |
// CPEEngineInfoImpl::SetRingingType |
|
1431 |
// Sets ringing type to TPEBasicInfo-structure |
|
1432 |
// (other items were commented in a header). |
|
1433 |
// ----------------------------------------------------------------------------- |
|
1434 |
// |
|
1435 |
void CPEEngineInfoImpl::SetRingingType( |
|
1436 |
const TProfileRingingType& aRingingType ) |
|
1437 |
{ |
|
1438 |
__ASSERT_ALWAYS( ( EProfileRingingTypeRinging <= aRingingType && |
|
1439 |
aRingingType <= EProfileRingingTypeSilent ), Panic( EPEPanicInvalidParameter ) ); |
|
1440 |
iBasicInfo.iRingingType = aRingingType; |
|
1441 |
} |
|
1442 |
||
1443 |
// ----------------------------------------------------------------------------- |
|
1444 |
// CPEEngineInfoImpl::SetRingingVolume |
|
1445 |
// Sets ringing volume to TPEBasicInfo-structure |
|
1446 |
// (other items were commented in a header). |
|
1447 |
// ----------------------------------------------------------------------------- |
|
1448 |
// |
|
1449 |
void CPEEngineInfoImpl::SetRingingVolume( |
|
1450 |
const TInt& aRingingVolume ) |
|
1451 |
{ |
|
1452 |
iBasicInfo.iRingingVolume = aRingingVolume; |
|
1453 |
} |
|
1454 |
||
1455 |
// ----------------------------------------------------------------------------- |
|
1456 |
// CPEEngineInfoImpl::SetTextToSpeech |
|
1457 |
// Sets text-to-speech of the phone to TPEBasicInfo-structure |
|
1458 |
// (other items were commented in a header). |
|
1459 |
// ----------------------------------------------------------------------------- |
|
1460 |
// |
|
1461 |
void CPEEngineInfoImpl::SetTextToSpeech( |
|
1462 |
const TBool aTextToSpeech ) |
|
1463 |
{ |
|
1464 |
iBasicInfo.iTextToSpeech = aTextToSpeech; |
|
1465 |
} |
|
1466 |
||
1467 |
// ----------------------------------------------------------------------------- |
|
1468 |
// CPEEngineInfoImpl::SetTwoDigitSupportStatus |
|
1469 |
// Sets two digit support status of the phone to TPEBasicInfo-structure |
|
1470 |
// (other items were commented in a header). |
|
1471 |
// ----------------------------------------------------------------------------- |
|
1472 |
// |
|
1473 |
void CPEEngineInfoImpl::SetTwoDigitSupportStatus( |
|
1474 |
const TBool aTwoDigitSupportStatus ) |
|
1475 |
{ |
|
1476 |
iBasicInfo.iTwoDigitSupportStatus = aTwoDigitSupportStatus; |
|
1477 |
} |
|
1478 |
||
1479 |
// ----------------------------------------------------------------------------- |
|
1480 |
// CPEEngineInfoImpl::SetCallSecureStatus |
|
1481 |
// Sets Secure status to call info |
|
1482 |
// ----------------------------------------------------------------------------- |
|
1483 |
// |
|
1484 |
void CPEEngineInfoImpl::SetCallSecureStatus( |
|
1485 |
const TBool aSecureStatus, |
|
1486 |
const TInt aCallId ) |
|
1487 |
{ |
|
1488 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1489 |
iCurrentCalls[ aCallId ]->SetSecureStatus( aSecureStatus ); |
|
1490 |
TEFLOGSTRING3( KTAINT, |
|
1491 |
"PE CPEEngineInfoImpl::SetCallSecureStatus, iSecureStatus: %d, call id: %d", |
|
1492 |
iCurrentCalls[ aCallId ]->SecureStatus(), |
|
1493 |
aCallId ); |
|
1494 |
} |
|
1495 |
||
1496 |
// ----------------------------------------------------------------------------- |
|
1497 |
// CPEEngineInfoImpl::SetSecureSpecified |
|
1498 |
// Sets Secure status to call info |
|
1499 |
// ----------------------------------------------------------------------------- |
|
1500 |
// |
|
1501 |
void CPEEngineInfoImpl::SetSecureSpecified( |
|
1502 |
const TBool aSecureSpecified ) |
|
1503 |
{ |
|
1504 |
iBasicInfo.iSecureSpecified = aSecureSpecified; |
|
1505 |
} |
|
1506 |
||
1507 |
// ----------------------------------------------------------------------------- |
|
1508 |
// CPEEngienInfo::SetDTMFVoiceMailBoxNumberLine1 |
|
1509 |
// Sets DTMFVoiceMailBoxNumber for Line 1 information from TPEBasicInfo-structure |
|
1510 |
// (other items were commented in a header). |
|
1511 |
// ----------------------------------------------------------------------------- |
|
1512 |
// |
|
1513 |
void CPEEngineInfoImpl::SetDTMFVoiceMailBoxNumberLine1( |
|
1514 |
const TDesC& aDTMFVoiceMailBoxNumberLine1 ) |
|
1515 |
{ |
|
1516 |
__ASSERT_DEBUG( !( aDTMFVoiceMailBoxNumberLine1.Length() |
|
1517 |
> KPEPhoneNumberMaxLength ), Panic( EPEPanicInvalidParameter ) ); |
|
1518 |
iBasicInfo.iVMBXNumbers.iDTMFVMBXL1 = aDTMFVoiceMailBoxNumberLine1; |
|
1519 |
} |
|
1520 |
||
1521 |
// ----------------------------------------------------------------------------- |
|
1522 |
// CPEEngienInfo::SetDTMFVoiceMailBoxNumberLine2 |
|
1523 |
// Sets DTMFVoiceMailBoxNumber for Line 2 information from |
|
1524 |
// TPEBasicInfo-structure |
|
1525 |
// ----------------------------------------------------------------------------- |
|
1526 |
// |
|
1527 |
void CPEEngineInfoImpl::SetDTMFVoiceMailBoxNumberLine2( |
|
1528 |
const TDesC& aDTMFVoiceMailBoxNumberLine2 ) |
|
1529 |
{ |
|
1530 |
__ASSERT_DEBUG( !( aDTMFVoiceMailBoxNumberLine2.Length() |
|
1531 |
> KPEPhoneNumberMaxLength ), Panic( EPEPanicInvalidParameter ) ); |
|
1532 |
iBasicInfo.iVMBXNumbers.iDTMFVMBXL2 = aDTMFVoiceMailBoxNumberLine2; |
|
1533 |
} |
|
1534 |
||
1535 |
// ----------------------------------------------------------------------------- |
|
1536 |
// CPEEngienInfo::SetVoiceMailBoxNumberLine1 |
|
1537 |
// Gets VoiceMailBoxNumber for Line 1 information from TPEBasicInfo-structure |
|
1538 |
// (other items were commented in a header). |
|
1539 |
// ----------------------------------------------------------------------------- |
|
1540 |
// |
|
1541 |
void CPEEngineInfoImpl::SetVoiceMailBoxNumberLine1( |
|
1542 |
const TDesC& aVoiceMailBoxNumberLine1 ) |
|
1543 |
{ |
|
1544 |
__ASSERT_DEBUG( !( aVoiceMailBoxNumberLine1.Length() |
|
1545 |
> KPEPhoneNumberMaxLength ), Panic( EPEPanicInvalidParameter ) ); |
|
1546 |
iBasicInfo.iVMBXNumbers.iVMBXL1 = aVoiceMailBoxNumberLine1; |
|
1547 |
} |
|
1548 |
||
1549 |
// ----------------------------------------------------------------------------- |
|
1550 |
// CPEEngienInfo::SetVoiceMailBoxNumberLine2 |
|
1551 |
// Gets VoiceMailBoxNumber for Line 2 information from TPEBasicInfo-structure |
|
1552 |
// (other items were commented in a header). |
|
1553 |
// ----------------------------------------------------------------------------- |
|
1554 |
// |
|
1555 |
void CPEEngineInfoImpl::SetVoiceMailBoxNumberLine2( |
|
1556 |
const TDesC& aVoiceMailBoxNumberLine2 ) |
|
1557 |
{ |
|
1558 |
__ASSERT_DEBUG( !( aVoiceMailBoxNumberLine2.Length() |
|
1559 |
> KPEPhoneNumberMaxLength ), Panic( EPEPanicInvalidParameter ) ); |
|
1560 |
iBasicInfo.iVMBXNumbers.iVMBXL2 = aVoiceMailBoxNumberLine2; |
|
1561 |
} |
|
1562 |
||
1563 |
// ----------------------------------------------------------------------------- |
|
1564 |
// CPEEngineInfoImpl::SetLogForcedCopletion |
|
1565 |
// Set the log forced completion indicator. |
|
1566 |
// (other items were commented in a header). |
|
1567 |
// ----------------------------------------------------------------------------- |
|
1568 |
// |
|
1569 |
void CPEEngineInfoImpl::SetLogForcedCompletion( |
|
1570 |
const TBool aForcedCompletion, |
|
1571 |
const TInt aCallId ) |
|
1572 |
{ |
|
1573 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1574 |
iCurrentCalls[ aCallId ]->SetLogForcedCompletion( aForcedCompletion ); |
|
1575 |
} |
|
1576 |
||
1577 |
// ----------------------------------------------------------------------------- |
|
1578 |
// CPEEngineInfoImpl::GetLogForcedCompletion |
|
1579 |
// Gets the log forced completion indicator |
|
1580 |
// (other items were commented in a header). |
|
1581 |
// ----------------------------------------------------------------------------- |
|
1582 |
// |
|
1583 |
TBool CPEEngineInfoImpl::LogForcedCompletion( |
|
1584 |
const TInt aCallId ) const |
|
1585 |
{ |
|
1586 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1587 |
return iCurrentCalls[ aCallId ]->LogForcedCompletion(); |
|
1588 |
} |
|
1589 |
||
1590 |
// ----------------------------------------------------------------------------- |
|
1591 |
// CPEEngineInfoImpl::SetPhoneNumber |
|
1592 |
// Sets the phone number to the TPECallCommandInfo structure. |
|
1593 |
// (other items were commented in a header). |
|
1594 |
// ----------------------------------------------------------------------------- |
|
1595 |
// |
|
1596 |
void CPEEngineInfoImpl::SetWholeOutgoingPhoneNumber( |
|
1597 |
const TPEPhoneNumber& aPhoneNumber, |
|
1598 |
const TInt aCallId ) |
|
1599 |
{ |
|
1600 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1601 |
__ASSERT_DEBUG( !( aPhoneNumber.Length() > KPEPhoneNumberMaxLength ), |
|
1602 |
Panic( EPEPanicInvalidParameter ) ); |
|
1603 |
iCurrentCalls[ aCallId ]->SetWholeOutgoingPhoneNumber( aPhoneNumber ); |
|
1604 |
TEFLOGSTRING3( KTAINT, |
|
1605 |
"PE CPEEngineInfoImpl::SetWholeOutgoingPhoneNumber: phone number: '%S', call id: %d" |
|
1606 |
, &iCurrentCalls[ aCallId ]->WholeOutgoingPhoneNumber(), aCallId ); |
|
1607 |
} |
|
1608 |
||
1609 |
// ----------------------------------------------------------------------------- |
|
1610 |
// CPEEngineInfoImpl::PhoneNumber |
|
1611 |
// Return the phone number from the TPECallCommandInfo structure. |
|
1612 |
// (other items were commented in a header). |
|
1613 |
// ----------------------------------------------------------------------------- |
|
1614 |
// |
|
1615 |
const TPEPhoneNumber& CPEEngineInfoImpl::WholeOutgoingPhoneNumber( |
|
1616 |
const TInt aCallId ) const |
|
1617 |
{ |
|
1618 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1619 |
return iCurrentCalls[ aCallId ]->WholeOutgoingPhoneNumber(); |
|
1620 |
} |
|
1621 |
||
1622 |
// ----------------------------------------------------------------------------- |
|
1623 |
// CPEEngineInfoImpl::ServiceIdCommand |
|
1624 |
// Return the Service Id from the TPECallCommandInfo structure. |
|
1625 |
// ----------------------------------------------------------------------------- |
|
1626 |
// |
|
1627 |
TUint32 CPEEngineInfoImpl::ServiceIdCommand() const |
|
1628 |
{ |
|
1629 |
return iCallCommandInfo.iServiceId; |
|
1630 |
} |
|
1631 |
||
1632 |
// ----------------------------------------------------------------------------- |
|
1633 |
// CPEEngineInfoImpl::SetServiceIdCommand |
|
1634 |
// Set the Service Id to the TPECallCommandInfo structure. |
|
1635 |
// ----------------------------------------------------------------------------- |
|
1636 |
// |
|
1637 |
void CPEEngineInfoImpl::SetServiceIdCommand( TUint32 aServiceId ) |
|
1638 |
{ |
|
1639 |
iCallCommandInfo.iServiceId = aServiceId; |
|
1640 |
} |
|
1641 |
||
1642 |
// ----------------------------------------------------------------------------- |
|
1643 |
// CPEEngineInfoImpl::ServiceId |
|
1644 |
// Return the Service Id from the TPECallInfo structure. |
|
1645 |
// ----------------------------------------------------------------------------- |
|
1646 |
// |
|
1647 |
TUint32 CPEEngineInfoImpl::ServiceId( const TInt aCallId ) const |
|
1648 |
{ |
|
1649 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1650 |
return iCurrentCalls[ aCallId ]->CallServiceId(); |
|
1651 |
} |
|
1652 |
||
1653 |
// ----------------------------------------------------------------------------- |
|
1654 |
// CPEEngineInfoImpl::SetServiceId |
|
1655 |
// Set the Service Id to the TPECallInfo structure. |
|
1656 |
// ----------------------------------------------------------------------------- |
|
1657 |
// |
|
1658 |
void CPEEngineInfoImpl::SetServiceId( const TInt aCallId, TUint32 aServiceId ) |
|
1659 |
{ |
|
1660 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1661 |
iCurrentCalls[ aCallId ]->SetCallServiceId( aServiceId ); |
|
1662 |
} |
|
1663 |
||
1664 |
// ----------------------------------------------------------------------------- |
|
1665 |
// CPEEngineInfoImpl::ActiveForwardingInfo |
|
1666 |
// Gets active forward info from the TPEBasicInfo structure. |
|
1667 |
// (other items were commented in a header). |
|
1668 |
// ----------------------------------------------------------------------------- |
|
1669 |
// |
|
1670 |
const TPEActiveForwardInfo& CPEEngineInfoImpl::ActiveForwardingInfo() const |
|
1671 |
{ |
|
1672 |
return iBasicInfo.iActiveForward; |
|
1673 |
} |
|
1674 |
||
1675 |
// ----------------------------------------------------------------------------- |
|
1676 |
// CPEEngineInfoImpl::BarringInfo |
|
1677 |
// Gets the call barring information. |
|
1678 |
// (other items were commented in a header). |
|
1679 |
// ----------------------------------------------------------------------------- |
|
1680 |
// |
|
1681 |
const TPEBarringInfo& CPEEngineInfoImpl::BarringInfo() const |
|
1682 |
{ |
|
1683 |
return iBasicInfo.iBarringInfo; |
|
1684 |
} |
|
1685 |
||
1686 |
// ----------------------------------------------------------------------------- |
|
1687 |
// CPEEngineInfoImpl::CallConference |
|
1688 |
// Gets the call's conference value. |
|
1689 |
// (other items were commented in a header). |
|
1690 |
// ----------------------------------------------------------------------------- |
|
1691 |
// |
|
1692 |
TInt CPEEngineInfoImpl::CallConference( const TInt aCallId ) const |
|
1693 |
{ |
|
1694 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1695 |
return iCurrentCalls[ aCallId ]->Conference(); |
|
1696 |
} |
|
1697 |
||
1698 |
// ----------------------------------------------------------------------------- |
|
1699 |
// CPEEngineInfoImpl::CallControlCaps |
|
1700 |
// Gets the call control caps |
|
1701 |
// (other items were commented in a header). |
|
1702 |
// ----------------------------------------------------------------------------- |
|
1703 |
// |
|
1704 |
TPECallControlCaps CPEEngineInfoImpl::CallControlCaps( const TInt aCallId ) const |
|
1705 |
{ |
|
1706 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1707 |
return iCurrentCalls[ aCallId ]->CallControlCaps(); |
|
1708 |
} |
|
1709 |
||
1710 |
// ----------------------------------------------------------------------------- |
|
1711 |
// CPEEngineInfoImpl::CallForwarded |
|
1712 |
// Gets the call forwarded value. |
|
1713 |
// (other items were commented in a header). |
|
1714 |
// ----------------------------------------------------------------------------- |
|
1715 |
// |
|
1716 |
TBool CPEEngineInfoImpl::CallForwarded( const TInt aCallId ) const |
|
1717 |
{ |
|
1718 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1719 |
return iCurrentCalls[ aCallId ]->Forwarded(); |
|
1720 |
} |
|
1721 |
||
1722 |
// ----------------------------------------------------------------------------- |
|
1723 |
// CPEEngineInfoImpl::CallService |
|
1724 |
// Gets Service value. |
|
1725 |
// (other items were commented in a header). |
|
1726 |
// ----------------------------------------------------------------------------- |
|
1727 |
// |
|
1728 |
RMobilePhone::TMobileService CPEEngineInfoImpl::CallService( const TInt aCallId ) const |
|
1729 |
{ |
|
1730 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1731 |
return iCurrentCalls[ aCallId ]->Service(); |
|
1732 |
} |
|
1733 |
||
1734 |
// ----------------------------------------------------------------------------- |
|
1735 |
// CPEEngineInfoImpl::ConferenceCallCaps |
|
1736 |
// Gets Conference call capabilities. |
|
1737 |
// (other items were commented in a header). |
|
1738 |
// ----------------------------------------------------------------------------- |
|
1739 |
// |
|
1740 |
TUint32 CPEEngineInfoImpl::ConferenceCallCaps( const TInt aCallId ) const |
|
1741 |
{ |
|
1742 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1743 |
return iCurrentCalls[ aCallId ]->ConferenceCaps(); |
|
1744 |
} |
|
1745 |
||
1746 |
// ----------------------------------------------------------------------------- |
|
1747 |
// CPEEngineInfoImpl::ConferenceMemberName |
|
1748 |
// Gets added or removed Conference members TName information. |
|
1749 |
// (other items were commented in a header). |
|
1750 |
// ----------------------------------------------------------------------------- |
|
1751 |
// |
|
1752 |
const TName& CPEEngineInfoImpl::ConferenceMemberName( const TInt aCallId ) const |
|
1753 |
{ |
|
1754 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1755 |
return iCurrentCalls[ aCallId ]->ConferenceMemberName(); |
|
1756 |
} |
|
1757 |
// ----------------------------------------------------------------------------- |
|
1758 |
// CPEEngineInfoImpl::IsConferenceMemberId |
|
1759 |
// Gets added or removed Conference members TName information. |
|
1760 |
// (other items were commented in a header). |
|
1761 |
// ----------------------------------------------------------------------------- |
|
1762 |
// |
|
1763 |
TInt CPEEngineInfoImpl::IsConferenceMemberId( const TInt aCallId ) const |
|
1764 |
{ |
|
1765 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1766 |
return iCurrentCalls[ aCallId ]->ConferenceMemberId(); |
|
1767 |
} |
|
1768 |
||
1769 |
// ----------------------------------------------------------------------------- |
|
1770 |
// CPEEngineInfoImpl::EmergencyNumber |
|
1771 |
// Gets emergency number for checking. |
|
1772 |
// (other items were commented in a header). |
|
1773 |
// ----------------------------------------------------------------------------- |
|
1774 |
// |
|
1775 |
const TPEPhoneNumber& CPEEngineInfoImpl::EmergencyNumber() const |
|
1776 |
{ |
|
1777 |
return iCallCommandInfo.iEmergencyNumber; |
|
1778 |
} |
|
1779 |
||
1780 |
// ----------------------------------------------------------------------------- |
|
1781 |
// CPEEngineInfoImpl::NumberOfConferenceMembers |
|
1782 |
// Gets number of conference members involved in conference call. |
|
1783 |
// (other items were commented in a header). |
|
1784 |
// ----------------------------------------------------------------------------- |
|
1785 |
// |
|
1786 |
TInt CPEEngineInfoImpl::NumberOfConferenceMembers( const TInt aCallId ) const |
|
1787 |
{ |
|
1788 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1789 |
return iCurrentCalls[ aCallId ]->NumberOfConferenceMembers(); |
|
1790 |
} |
|
1791 |
||
1792 |
// ----------------------------------------------------------------------------- |
|
1793 |
// CPEEngineInfoImpl::SimState |
|
1794 |
// Gets Sim state from the TPEBasicInfo structure. |
|
1795 |
// (other items were commented in a header). |
|
1796 |
// ----------------------------------------------------------------------------- |
|
1797 |
// |
|
1798 |
const TPESimState& CPEEngineInfoImpl::SimState() const |
|
1799 |
{ |
|
1800 |
return iBasicInfo.iSimState; |
|
1801 |
} |
|
1802 |
||
1803 |
// ----------------------------------------------------------------------------- |
|
1804 |
// CPEEngineInfoImpl::SecureSpecified |
|
1805 |
// Gets secure specified status |
|
1806 |
// ----------------------------------------------------------------------------- |
|
1807 |
// |
|
1808 |
TBool CPEEngineInfoImpl::SecureSpecified( ) const |
|
1809 |
{ |
|
1810 |
return iBasicInfo.iSecureSpecified; |
|
1811 |
} |
|
1812 |
||
1813 |
// ----------------------------------------------------------------------------- |
|
1814 |
// CPEEngineInfoImpl::SSCommandInfo |
|
1815 |
// Gets the last suplementary services string command information. |
|
1816 |
// (other items were commented in a header). |
|
1817 |
// ----------------------------------------------------------------------------- |
|
1818 |
// |
|
1819 |
const TPESSCommandInfo& CPEEngineInfoImpl::SSCommandInfo() const |
|
1820 |
{ |
|
1821 |
return iBasicInfo.iSSCommandInfo; |
|
1822 |
} |
|
1823 |
||
1824 |
// ----------------------------------------------------------------------------- |
|
1825 |
// CPEEngineInfoImpl::ResetCallInfo |
|
1826 |
// Resets TPECallInfo structure. |
|
1827 |
// (other items were commented in a header). |
|
1828 |
// ----------------------------------------------------------------------------- |
|
1829 |
// |
|
1830 |
void CPEEngineInfoImpl::ResetCallInfo( const TInt aCallId ) |
|
1831 |
{ |
|
1832 |
TEFLOGSTRING2( KTAINT, |
|
1833 |
"PE CPEEngineInfoImpl::ResetCallInfo CallId %d", aCallId ); |
|
1834 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1835 |
||
1836 |
iCurrentCalls[aCallId]->Reset( CallIdCheck::IsConference( aCallId ) ); |
|
1837 |
||
1838 |
if ( iRemoteInfo->Count() && // Check that array is not empty |
|
1839 |
( *iRemoteInfo )[aCallId ] // Check that there is content in this index |
|
1840 |
) |
|
1841 |
{ |
|
1842 |
( *iRemoteInfo )[aCallId ]->ResetRemoteInfo(); |
|
1843 |
} |
|
1844 |
} |
|
1845 |
||
1846 |
// ----------------------------------------------------------------------------- |
|
1847 |
// CPEEngineInfoImpl::SetCallConference |
|
1848 |
// Sets the conference value to the TPECallInfo structure. |
|
1849 |
// (other items were commented in a header). |
|
1850 |
// ----------------------------------------------------------------------------- |
|
1851 |
// |
|
1852 |
void CPEEngineInfoImpl::SetCallConference( const TInt aConference, const TInt aCallId ) |
|
1853 |
{ |
|
1854 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicIllegalCommand ) ); |
|
1855 |
iCurrentCalls[ aCallId ]->SetConference( aConference ); |
|
1856 |
} |
|
1857 |
||
1858 |
// ----------------------------------------------------------------------------- |
|
1859 |
// CPEEngineInfoImpl::SetCallControlCaps |
|
1860 |
// Sets the call control caps to the TPECallInfo structure. |
|
1861 |
// (other items were commented in a header). |
|
1862 |
// ----------------------------------------------------------------------------- |
|
1863 |
// |
|
1864 |
void CPEEngineInfoImpl::SetCallControlCaps( const TPECallControlCaps& aCallControlCaps, |
|
1865 |
const TInt aCallId ) |
|
1866 |
{ |
|
1867 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicIllegalCommand ) ); |
|
1868 |
iCurrentCalls[ aCallId ]->SetCallControlCaps( aCallControlCaps ); |
|
1869 |
} |
|
1870 |
||
1871 |
// ----------------------------------------------------------------------------- |
|
1872 |
// CPEEngineInfoImpl::SetCallForwarded |
|
1873 |
// Sets the forwarded value to the TPECallInfo structure. |
|
1874 |
// (other items were commented in a header). |
|
1875 |
// ----------------------------------------------------------------------------- |
|
1876 |
// |
|
1877 |
void CPEEngineInfoImpl::SetCallForwarded( const TBool aCallForwarded, const TInt aCallId ) |
|
1878 |
{ |
|
1879 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1880 |
iCurrentCalls[ aCallId ]->SetForwarded( aCallForwarded ); |
|
1881 |
} |
|
1882 |
||
1883 |
// ----------------------------------------------------------------------------- |
|
1884 |
// CPEEngineInfoImpl::SetCallService |
|
1885 |
// Sets the call service to the TPECallInfo structure. |
|
1886 |
// (other items were commented in a header). |
|
1887 |
// ----------------------------------------------------------------------------- |
|
1888 |
// |
|
1889 |
void CPEEngineInfoImpl::SetCallService( const RMobilePhone::TMobileService& aCallService, |
|
1890 |
const TInt aCallId ) |
|
1891 |
{ |
|
1892 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1893 |
iCurrentCalls[ aCallId ]->SetService( aCallService ); |
|
1894 |
} |
|
1895 |
||
1896 |
// ----------------------------------------------------------------------------- |
|
1897 |
// CPEEngineInfoImpl::SetConferenceCallCaps |
|
1898 |
// Sets the conference call capabilities to the TPECallInfo structure. |
|
1899 |
// (other items were commented in a header). |
|
1900 |
// ----------------------------------------------------------------------------- |
|
1901 |
// |
|
1902 |
void CPEEngineInfoImpl::SetConferenceCallCaps( const TUint32 aCaps, const TInt aCallId ) |
|
1903 |
{ |
|
1904 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1905 |
iCurrentCalls[ aCallId ]->SetConferenceCaps( aCaps ); |
|
1906 |
} |
|
1907 |
||
1908 |
// ----------------------------------------------------------------------------- |
|
1909 |
// CPEEngineInfoImpl::SetConferenceMemberInfo |
|
1910 |
// Sets the added or removed conference members TName information to the TPECallInfo structure. |
|
1911 |
// (other items were commented in a header). |
|
1912 |
// ----------------------------------------------------------------------------- |
|
1913 |
// |
|
1914 |
void CPEEngineInfoImpl::SetConferenceMemberInfo( const TName& aConferenceMemberName, |
|
1915 |
const TInt aConferenceMemberCallId, const TInt aCallId ) |
|
1916 |
{ |
|
1917 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1918 |
iCurrentCalls[ aCallId ]->SetConferenceMemberName( aConferenceMemberName ); |
|
1919 |
iCurrentCalls[ aCallId ]->SetConferenceMemberId( aConferenceMemberCallId ); |
|
1920 |
} |
|
1921 |
||
1922 |
// ----------------------------------------------------------------------------- |
|
1923 |
// CPEEngineInfoImpl::SetEmergencyNumber |
|
1924 |
// Sets the emergency numbers of the phone to the TPEBasicInfo structure. |
|
1925 |
// (other items were commented in a header). |
|
1926 |
// ----------------------------------------------------------------------------- |
|
1927 |
// |
|
1928 |
void CPEEngineInfoImpl::SetEmergencyNumber( const TPEPhoneNumber& aEmergencyNumber ) |
|
1929 |
{ |
|
1930 |
iCallCommandInfo.iEmergencyNumber = aEmergencyNumber; |
|
1931 |
} |
|
1932 |
||
1933 |
// ----------------------------------------------------------------------------- |
|
1934 |
// CPEEngineInfoImpl::RemotePartyName |
|
1935 |
// Remote party's network given name. (CNAP, skype id). |
|
1936 |
// (other items were commented in a header). |
|
1937 |
// ----------------------------------------------------------------------------- |
|
1938 |
// |
|
1939 |
const TPEContactName& CPEEngineInfoImpl::RemotePartyName( |
|
1940 |
const TInt aCallId ) const |
|
1941 |
{ |
|
1942 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1943 |
return iCurrentCalls[ aCallId ]->RemotePartyName(); |
|
1944 |
} |
|
1945 |
||
1946 |
// ----------------------------------------------------------------------------- |
|
1947 |
// CPEEngineInfoImpl::ErrorCode |
|
1948 |
// Error code from basic call info. |
|
1949 |
// (other items were commented in a header). |
|
1950 |
// ----------------------------------------------------------------------------- |
|
1951 |
// |
|
1952 |
TInt CPEEngineInfoImpl::ErrorCode() const |
|
1953 |
{ |
|
1954 |
return iBasicInfo.iErrorInfo.iErrorCode; |
|
1955 |
} |
|
1956 |
||
1957 |
// ----------------------------------------------------------------------------- |
|
1958 |
// CPEEngineInfoImpl::SetNumberOfConferenceMembers |
|
1959 |
// Sets the number of conference members involved in Conference |
|
1960 |
// call to the TPECallInfo structure. |
|
1961 |
// (other items were commented in a header). |
|
1962 |
// ----------------------------------------------------------------------------- |
|
1963 |
// |
|
1964 |
void CPEEngineInfoImpl::SetNumberOfConferenceMembers( const TInt aNumberOfMembers, const TInt aCallId ) |
|
1965 |
{ |
|
1966 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1967 |
iCurrentCalls[ aCallId ]->SetNumberOfConferenceMembers( aNumberOfMembers ); |
|
1968 |
} |
|
1969 |
||
1970 |
// ----------------------------------------------------------------------------- |
|
1971 |
// CPEEngineInfoImpl::ResumeHeldCall |
|
1972 |
// ----------------------------------------------------------------------------- |
|
1973 |
// |
|
1974 |
TBool CPEEngineInfoImpl::ResumeHeldCall( const TInt aCallId ) const |
|
1975 |
{ |
|
1976 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1977 |
return iCurrentCalls[ aCallId ]->ResumeHeldCall(); |
|
1978 |
} |
|
1979 |
||
1980 |
// ----------------------------------------------------------------------------- |
|
1981 |
// From base class MPEDataStore |
|
1982 |
// ----------------------------------------------------------------------------- |
|
1983 |
// |
|
1984 |
TInt CPEEngineInfoImpl::CallIndex( TInt aCallId ) const |
|
1985 |
{ |
|
1986 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
1987 |
return iCurrentCalls[ aCallId ]->CallIndex(); |
|
1988 |
} |
|
1989 |
||
1990 |
// ----------------------------------------------------------------------------- |
|
1991 |
// CPEEngineInfoImpl::SetBarringInfo |
|
1992 |
// Sets Barring information to TPEBasicInfo-structure |
|
1993 |
// (other items were commented in a header). |
|
1994 |
// ----------------------------------------------------------------------------- |
|
1995 |
// |
|
1996 |
void CPEEngineInfoImpl::SetBarringInfo( const TPEBarringInfo& aBarringInfo ) |
|
1997 |
{ |
|
1998 |
iBasicInfo.iBarringInfo = aBarringInfo; |
|
1999 |
} |
|
2000 |
||
2001 |
// ----------------------------------------------------------------------------- |
|
2002 |
// CPEEngineInfoImpl::SetDeflectInfo |
|
2003 |
// Sets deflect information to the TPEBasicInfo structure |
|
2004 |
// (other items were commented in a header). |
|
2005 |
// ----------------------------------------------------------------------------- |
|
2006 |
// |
|
2007 |
void CPEEngineInfoImpl::SetDeflectInfo( const TPEActiveForwardInfo& aActiveForward ) |
|
2008 |
{ |
|
2009 |
iBasicInfo.iActiveForward = aActiveForward; |
|
2010 |
} |
|
2011 |
||
2012 |
// ----------------------------------------------------------------------------- |
|
2013 |
// CPEEngineInfoImpl::SetResumeHeldCall |
|
2014 |
// Set iHeldByUser value to TPECallInfo structure |
|
2015 |
// ----------------------------------------------------------------------------- |
|
2016 |
// |
|
2017 |
void CPEEngineInfoImpl::SetResumeHeldCall( const TBool aResumeHeldCall, |
|
2018 |
const TInt aCallId ) |
|
2019 |
{ |
|
2020 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2021 |
iCurrentCalls[ aCallId ]->SetResumeHeldCall( aResumeHeldCall ); |
|
2022 |
} |
|
2023 |
||
2024 |
// ----------------------------------------------------------------------------- |
|
2025 |
// CPEEngineInfoImpl::SetSimState |
|
2026 |
// Sets Sim state to TPEBasicInfo-structure |
|
2027 |
// (other items were commented in a header). |
|
2028 |
// ----------------------------------------------------------------------------- |
|
2029 |
// |
|
2030 |
void CPEEngineInfoImpl::SetSimState( const TPESimState& aSimState ) |
|
2031 |
{ |
|
2032 |
iBasicInfo.iSimState = aSimState; |
|
2033 |
} |
|
2034 |
||
2035 |
// ----------------------------------------------------------------------------- |
|
2036 |
// CPEEngineInfoImpl::SetSSCommandInfo |
|
2037 |
// Sets Suplementary Services command information to TPESSCommandInfo-structure |
|
2038 |
// (other items were commented in a header). |
|
2039 |
// ----------------------------------------------------------------------------- |
|
2040 |
// |
|
2041 |
void CPEEngineInfoImpl::SetSSCommandInfo( const TPESSCommandInfo& aSSCommandInfo ) |
|
2042 |
{ |
|
2043 |
iBasicInfo.iSSCommandInfo = aSSCommandInfo; |
|
2044 |
} |
|
2045 |
||
2046 |
// ----------------------------------------------------------------------------- |
|
2047 |
// CPEEngineInfoImpl::SetUserToUserInfo |
|
2048 |
// Set the user to user info. |
|
2049 |
// ----------------------------------------------------------------------------- |
|
2050 |
// |
|
2051 |
void CPEEngineInfoImpl::SetUserToUserInformation( const TPEUserToUserInfo& aUUI ) |
|
2052 |
{ |
|
2053 |
iCallCommandInfo.iUserToUserInfo = aUUI; |
|
2054 |
} |
|
2055 |
||
2056 |
// ----------------------------------------------------------------------------- |
|
2057 |
// CPEEngineInfoImpl::SetUserToUserInfo |
|
2058 |
// Set the user to user info. |
|
2059 |
// ----------------------------------------------------------------------------- |
|
2060 |
// |
|
2061 |
void CPEEngineInfoImpl::SetRemotePartyName( |
|
2062 |
const TPEContactName& aName, |
|
2063 |
const TInt aCallId ) |
|
2064 |
{ |
|
2065 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2066 |
iCurrentCalls[ aCallId ]->SetRemotePartyName( aName ); |
|
2067 |
} |
|
2068 |
||
2069 |
// ----------------------------------------------------------------------------- |
|
2070 |
// CPEEngineInfoImpl::CallParameters |
|
2071 |
// Get the call parameters. |
|
2072 |
// ----------------------------------------------------------------------------- |
|
2073 |
// |
|
2074 |
CCCECallParameters& CPEEngineInfoImpl::CallParameters() |
|
2075 |
{ |
|
2076 |
return *iCallParams; |
|
2077 |
} |
|
2078 |
||
2079 |
||
2080 |
// ----------------------------------------------------------------------------- |
|
2081 |
// From base class MPEDataStore |
|
2082 |
// Sets call index |
|
2083 |
// ----------------------------------------------------------------------------- |
|
2084 |
// |
|
2085 |
void CPEEngineInfoImpl::SetCallIndex( TInt aCallIndex, TInt aCallId ) |
|
2086 |
{ |
|
2087 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2088 |
iCurrentCalls[ aCallId ]->SetCallIndex( aCallIndex ); |
|
2089 |
} |
|
2090 |
||
2091 |
// ----------------------------------------------------------------------------- |
|
2092 |
// From base class MPEDataStore |
|
2093 |
// Sets call origin |
|
2094 |
// ----------------------------------------------------------------------------- |
|
2095 |
// |
|
2096 |
void CPEEngineInfoImpl::SetCallOrigin( TPECallOrigin aOrigin, TInt aCallId ) |
|
2097 |
{ |
|
2098 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2099 |
return iCurrentCalls[ aCallId ]->SetCallOrigin( aOrigin ); |
|
2100 |
} |
|
2101 |
||
2102 |
||
2103 |
// ----------------------------------------------------------------------------- |
|
2104 |
// CPEEngineInfoImpl::UnattendedTransferTarget |
|
2105 |
// ----------------------------------------------------------------------------- |
|
2106 |
// |
|
2107 |
const TPEPhoneNumber& CPEEngineInfoImpl::UnattendedTransferTarget( |
|
2108 |
TInt aCallId ) const |
|
2109 |
{ |
|
2110 |
__ASSERT_DEBUG( aCallId < iCurrentCalls.Count(), |
|
2111 |
Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2112 |
return iCurrentCalls[ aCallId ]->UnattendedTransferTarget(); |
|
2113 |
} |
|
2114 |
||
2115 |
||
2116 |
// ----------------------------------------------------------------------------- |
|
2117 |
// CPEEngineInfoImpl::SetUnattendedTransferTarget |
|
2118 |
// ----------------------------------------------------------------------------- |
|
2119 |
// |
|
2120 |
void CPEEngineInfoImpl::SetUnattendedTransferTarget( const TPEPhoneNumber& aTarget, |
|
2121 |
TInt aCallId ) |
|
2122 |
{ |
|
2123 |
__ASSERT_DEBUG( aCallId < iCurrentCalls.Count(), |
|
2124 |
Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2125 |
iCurrentCalls[ aCallId ]->SetUnattendedTransferTarget( aTarget ); |
|
2126 |
} |
|
2127 |
||
2128 |
// ----------------------------------------------------------------------------- |
|
2129 |
// CPEEngineInfoImpl::ForwardAddressChoices |
|
2130 |
// ----------------------------------------------------------------------------- |
|
2131 |
// |
|
2132 |
const CDesC8Array* CPEEngineInfoImpl::ForwardAddressChoices( |
|
2133 |
TInt aCallId ) const |
|
2134 |
{ |
|
2135 |
__ASSERT_DEBUG( aCallId < iCurrentCalls.Count(), |
|
2136 |
Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2137 |
return iCurrentCalls[ aCallId ]->ForwardAddressChoices(); |
|
2138 |
} |
|
2139 |
||
2140 |
||
2141 |
// ----------------------------------------------------------------------------- |
|
2142 |
// CPEEngineInfoImpl::SetForwardAddressChoices |
|
2143 |
// ----------------------------------------------------------------------------- |
|
2144 |
// |
|
2145 |
void CPEEngineInfoImpl::SetForwardAddressChoices( const CDesC8Array* aArray, |
|
2146 |
TInt aCallId ) |
|
2147 |
{ |
|
2148 |
__ASSERT_DEBUG( aCallId < iCurrentCalls.Count(), |
|
2149 |
Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2150 |
iCurrentCalls[ aCallId ]->SetForwardAddressChoices( aArray ); |
|
2151 |
} |
|
2152 |
||
2153 |
// ----------------------------------------------------------------------------- |
|
2154 |
// CPEEngineInfoImpl::SetForwardAddressIndex |
|
2155 |
// ----------------------------------------------------------------------------- |
|
2156 |
// |
|
2157 |
void CPEEngineInfoImpl::SetForwardAddressIndex( TInt aIndex ) |
|
2158 |
{ |
|
2159 |
iCallCommandInfo.iForwardToAddressIndex = aIndex; |
|
2160 |
} |
|
2161 |
||
2162 |
// ----------------------------------------------------------------------------- |
|
2163 |
// CPEEngineInfoImpl::ForwardAddressIndex |
|
2164 |
// ----------------------------------------------------------------------------- |
|
2165 |
// |
|
2166 |
TInt CPEEngineInfoImpl::ForwardAddressIndex() |
|
2167 |
{ |
|
2168 |
return iCallCommandInfo.iForwardToAddressIndex; |
|
2169 |
} |
|
2170 |
||
2171 |
// ----------------------------------------------------------------------------- |
|
2172 |
// CPEEngineInfoImpl::SetTransferTargetCommand |
|
2173 |
// (other items were commented in a header). |
|
2174 |
// ----------------------------------------------------------------------------- |
|
2175 |
// |
|
2176 |
void CPEEngineInfoImpl::SetTransferTargetCommand( const TPEPhoneNumber& aTransferTarget ) |
|
2177 |
{ |
|
2178 |
iCallCommandInfo.iTransferToAddress = aTransferTarget; |
|
2179 |
} |
|
2180 |
||
2181 |
// ----------------------------------------------------------------------------- |
|
2182 |
// CPEEngineInfoImpl::TransferTarget |
|
2183 |
// (other items were commented in a header). |
|
2184 |
// ----------------------------------------------------------------------------- |
|
2185 |
// |
|
2186 |
const TPEPhoneNumber& CPEEngineInfoImpl::TransferTargetCommand() const |
|
2187 |
{ |
|
2188 |
return iCallCommandInfo.iTransferToAddress; |
|
2189 |
} |
|
2190 |
||
2191 |
||
2192 |
// ----------------------------------------------------------------------------- |
|
2193 |
// CPEEngineInfo::CallOrigin |
|
2194 |
// (other items were commented in a header). |
|
2195 |
// ----------------------------------------------------------------------------- |
|
2196 |
// |
|
2197 |
TPECallOrigin CPEEngineInfoImpl::CallOrigin( const TInt aCallId ) const |
|
2198 |
{ |
|
2199 |
__ASSERT_DEBUG( iCurrentCalls.Count() > aCallId, Panic( EPEPanicCallIndexOutOfRange ) ); |
|
2200 |
return iCurrentCalls[ aCallId ]->CallOrigin(); |
|
2201 |
} |
|
2202 |
||
2203 |
// ----------------------------------------------------------------------------- |
|
2204 |
// CPEEngineInfoImpl::CallerImage |
|
2205 |
// ----------------------------------------------------------------------------- |
|
2206 |
// |
|
2207 |
const TPtrC CPEEngineInfoImpl::CallerImage( const TInt aCallId ) const |
|
2208 |
{ |
|
2209 |
return ( *iRemoteInfo )[ aCallId ]->CallerImage(); |
|
2210 |
} |
|
2211 |
||
2212 |
// ----------------------------------------------------------------------------- |
|
2213 |
// CPEEngineInfoImpl::CallerText |
|
2214 |
// ----------------------------------------------------------------------------- |
|
2215 |
// |
|
2216 |
const TPtrC CPEEngineInfoImpl::CallerText( const TInt aCallId ) const |
|
2217 |
{ |
|
2218 |
return ( *iRemoteInfo )[ aCallId ]->CallerText(); |
|
2219 |
} |
|
2220 |
||
2221 |
// ----------------------------------------------------------------------------- |
|
2222 |
// CPEEngineInfoImpl::CallerThumbnail |
|
2223 |
// ----------------------------------------------------------------------------- |
|
2224 |
// |
|
2225 |
CFbsBitmap* CPEEngineInfoImpl::CallerThumbnail( const TInt aCallId ) const |
|
2226 |
{ |
|
2227 |
return ( *iRemoteInfo )[ aCallId ]->CallerThumbnail(); |
|
2228 |
} |
|
2229 |
||
2230 |
// ----------------------------------------------------------------------------- |
|
2231 |
// CPEEngineInfoImpl::HasCallerThumbnail |
|
2232 |
// ----------------------------------------------------------------------------- |
|
2233 |
// |
|
2234 |
TBool CPEEngineInfoImpl::HasCallerThumbnail( const TInt aCallId ) const |
|
2235 |
{ |
|
2236 |
return ( *iRemoteInfo )[ aCallId ]->HasCallerThumbnail(); |
|
2237 |
} |
|
2238 |
||
2239 |
// ----------------------------------------------------------------------------- |
|
2240 |
// CPEEngineInfoImpl::ContactId |
|
2241 |
// ----------------------------------------------------------------------------- |
|
2242 |
// |
|
2243 |
const CPhCntContactId& CPEEngineInfoImpl::ContactId( const TInt aCallId ) const |
|
2244 |
{ |
|
2245 |
return ( *iRemoteInfo )[ aCallId ]->ContactId(); |
|
2246 |
} |
|
2247 |
||
2248 |
// ----------------------------------------------------------------------------- |
|
2249 |
// CPEEngineInfoImpl::ContactGroups |
|
2250 |
// ----------------------------------------------------------------------------- |
|
2251 |
// |
|
2252 |
const TArray< TContactItemId > CPEEngineInfoImpl::ContactGroups( |
|
2253 |
const TInt aCallId ) const |
|
2254 |
{ |
|
2255 |
return ( *iRemoteInfo )[ aCallId ]->ContactGroups(); |
|
2256 |
} |
|
2257 |
||
2258 |
// ----------------------------------------------------------------------------- |
|
2259 |
// CPEEngineInfoImpl::ContactLink |
|
2260 |
// ----------------------------------------------------------------------------- |
|
2261 |
// |
|
2262 |
const TDesC8& CPEEngineInfoImpl::ContactLink( const TInt aCallId ) const |
|
2263 |
{ |
|
2264 |
return ( *iRemoteInfo )[ aCallId ]->ContactLink(); |
|
2265 |
} |
|
2266 |
||
2267 |
// ----------------------------------------------------------------------------- |
|
2268 |
// CPEEngineInfoImpl::PersonalRingingTone |
|
2269 |
// ----------------------------------------------------------------------------- |
|
2270 |
// |
|
2271 |
const TPEContactFileName& CPEEngineInfoImpl::PersonalRingingTone( |
|
2272 |
const TInt aCallId ) const |
|
2273 |
{ |
|
2274 |
return ( *iRemoteInfo )[ aCallId ]->PersonalRingingTone(); |
|
2275 |
} |
|
2276 |
||
2277 |
// ----------------------------------------------------------------------------- |
|
2278 |
// CPEEngineInfoImpl::RemoteCompanyName |
|
2279 |
// ----------------------------------------------------------------------------- |
|
2280 |
// |
|
2281 |
const TPEContactCompany& CPEEngineInfoImpl::RemoteCompanyName( |
|
2282 |
const TInt aCallId ) const |
|
2283 |
{ |
|
2284 |
return ( *iRemoteInfo )[ aCallId ]->CompanyName(); |
|
2285 |
} |
|
2286 |
||
2287 |
// ----------------------------------------------------------------------------- |
|
2288 |
// CPEEngineInfoImpl::RemoteName |
|
2289 |
// ----------------------------------------------------------------------------- |
|
2290 |
// |
|
2291 |
const TPEContactName& CPEEngineInfoImpl::RemoteName( const TInt aCallId ) const |
|
2292 |
{ |
|
2293 |
return ( *iRemoteInfo )[ aCallId ]->Name(); |
|
2294 |
} |
|
2295 |
||
2296 |
// ----------------------------------------------------------------------------- |
|
2297 |
// CPEEngineInfoImpl::RemotePhoneNumber |
|
2298 |
// ----------------------------------------------------------------------------- |
|
2299 |
// |
|
2300 |
const TPEPhoneNumber& CPEEngineInfoImpl::RemotePhoneNumber( |
|
2301 |
const TInt aCallId ) const |
|
2302 |
{ |
|
2303 |
return ( *iRemoteInfo )[ aCallId ]->PhoneNumber(); |
|
2304 |
} |
|
2305 |
||
2306 |
// ----------------------------------------------------------------------------- |
|
2307 |
// CPEEngineInfoImpl::RemotePhoneNumberType |
|
2308 |
// ----------------------------------------------------------------------------- |
|
2309 |
// |
|
2310 |
const TPEPhoneNumberIdType& CPEEngineInfoImpl::RemotePhoneNumberType( |
|
2311 |
const TInt aCallId ) const |
|
2312 |
{ |
|
2313 |
return ( *iRemoteInfo )[ aCallId ]->PhoneNumberType(); |
|
2314 |
} |
|
2315 |
||
2316 |
// ----------------------------------------------------------------------------- |
|
2317 |
// CPEEngineInfoImpl::RemoteTextToSpeechText |
|
2318 |
// ----------------------------------------------------------------------------- |
|
2319 |
// |
|
2320 |
const TPtrC CPEEngineInfoImpl::RemoteTextToSpeechText( |
|
2321 |
const TInt aCallId ) const |
|
2322 |
{ |
|
2323 |
return ( *iRemoteInfo )[ aCallId ]->TextToSpeechText(); |
|
2324 |
} |
|
2325 |
||
2326 |
// ----------------------------------------------------------------------------- |
|
2327 |
// CPEEngineInfoImpl::RemotePredefinedDtmfStrings |
|
2328 |
// ----------------------------------------------------------------------------- |
|
2329 |
// |
|
2330 |
const CDesCArray& CPEEngineInfoImpl::RemotePredefinedDtmfStrings( |
|
2331 |
const TInt aCallId ) const |
|
2332 |
{ |
|
2333 |
return ( *iRemoteInfo )[ aCallId ]->PredefinedDtmfStrings(); |
|
2334 |
} |
|
2335 |
||
2336 |
// ----------------------------------------------------------------------------- |
|
2337 |
// CPEEngineInfoImpl::RemoteColpNumber |
|
2338 |
// ----------------------------------------------------------------------------- |
|
2339 |
// |
|
2340 |
const TPEPhoneNumber& CPEEngineInfoImpl::RemoteColpNumber( |
|
2341 |
const TInt aCallId ) const |
|
2342 |
{ |
|
2343 |
return ( *iRemoteInfo )[ aCallId ]->ColpNumber(); |
|
2344 |
} |
|
2345 |
||
2346 |
// ----------------------------------------------------------------------------- |
|
2347 |
// CPEEngineInfoImpl::ResetRemoteInfo |
|
2348 |
// ----------------------------------------------------------------------------- |
|
2349 |
// |
|
2350 |
void CPEEngineInfoImpl::ResetRemoteInfo( const TInt aCallId ) |
|
2351 |
{ |
|
2352 |
return ( *iRemoteInfo )[ aCallId ]->ResetRemoteInfo(); |
|
2353 |
} |
|
2354 |
||
2355 |
// ----------------------------------------------------------------------------- |
|
2356 |
// CPEEngineInfoImpl::SetCallerImage |
|
2357 |
// ----------------------------------------------------------------------------- |
|
2358 |
// |
|
2359 |
void CPEEngineInfoImpl::SetCallerImage( |
|
2360 |
const TPtrC aCallerImage, |
|
2361 |
const TInt aCallId ) |
|
2362 |
{ |
|
2363 |
return ( *iRemoteInfo )[ aCallId ]->SetCallerImage( aCallerImage ); |
|
2364 |
} |
|
2365 |
||
2366 |
// ----------------------------------------------------------------------------- |
|
2367 |
// CPEEngineInfoImpl::SetCallerText |
|
2368 |
// ----------------------------------------------------------------------------- |
|
2369 |
// |
|
2370 |
void CPEEngineInfoImpl::SetCallerText( |
|
2371 |
const TPtrC aCallerText, |
|
2372 |
const TInt aCallId ) |
|
2373 |
{ |
|
2374 |
return ( *iRemoteInfo )[ aCallId ]->SetCallerText( aCallerText ); |
|
2375 |
} |
|
2376 |
||
2377 |
// ----------------------------------------------------------------------------- |
|
2378 |
// CPEEngineInfoImpl::SetCallerThumbnail |
|
2379 |
// ----------------------------------------------------------------------------- |
|
2380 |
// |
|
2381 |
void CPEEngineInfoImpl::SetCallerThumbnail( |
|
2382 |
CFbsBitmap* aCallerThumbnail, |
|
2383 |
const TInt aCallId ) |
|
2384 |
{ |
|
2385 |
return ( *iRemoteInfo )[ aCallId ]->SetCallerThumbnail( aCallerThumbnail ); |
|
2386 |
} |
|
2387 |
||
2388 |
// ----------------------------------------------------------------------------- |
|
2389 |
// CPEEngineInfoImpl::SetHasCallerThumbnail |
|
2390 |
// ----------------------------------------------------------------------------- |
|
2391 |
// |
|
2392 |
void CPEEngineInfoImpl::SetHasCallerThumbnail( |
|
2393 |
TBool aStatus, |
|
2394 |
const TInt aCallId ) |
|
2395 |
{ |
|
2396 |
return ( *iRemoteInfo )[ aCallId ]->SetHasCallerThumbnail( aStatus ); |
|
2397 |
} |
|
2398 |
||
2399 |
// ----------------------------------------------------------------------------- |
|
2400 |
// CPEEngineInfoImpl::SetPredefinedDtmfStrings |
|
2401 |
// ----------------------------------------------------------------------------- |
|
2402 |
// |
|
2403 |
void CPEEngineInfoImpl::SetPredefinedDtmfStrings( |
|
2404 |
const CDesCArray& aArray, |
|
2405 |
const TInt aCallId ) |
|
2406 |
{ |
|
2407 |
return ( *iRemoteInfo )[ aCallId ]->SetPredefinedDtmfStrings( aArray ); |
|
2408 |
} |
|
2409 |
||
2410 |
// ----------------------------------------------------------------------------- |
|
2411 |
// CPEEngineInfoImpl::SetContactGroups |
|
2412 |
// ----------------------------------------------------------------------------- |
|
2413 |
// |
|
2414 |
void CPEEngineInfoImpl::SetContactGroups( |
|
2415 |
TArray< TContactItemId >& aGroupIdArray, |
|
2416 |
const TInt aCallId ) |
|
2417 |
{ |
|
2418 |
return ( *iRemoteInfo )[ aCallId ]->SetContactGroups( aGroupIdArray ); |
|
2419 |
} |
|
2420 |
||
2421 |
// ----------------------------------------------------------------------------- |
|
2422 |
// CPEEngineInfoImpl::SetContactId |
|
2423 |
// ----------------------------------------------------------------------------- |
|
2424 |
// |
|
2425 |
void CPEEngineInfoImpl::SetContactId( |
|
2426 |
CPhCntContactId* aContactId, |
|
2427 |
const TInt aCallId ) |
|
2428 |
{ |
|
2429 |
return ( *iRemoteInfo )[ aCallId ]->SetContactId( aContactId ); |
|
2430 |
} |
|
2431 |
||
2432 |
// ----------------------------------------------------------------------------- |
|
2433 |
// CPEEngineInfoImpl::SetPersonalRingingTone |
|
2434 |
// ----------------------------------------------------------------------------- |
|
2435 |
// |
|
2436 |
void CPEEngineInfoImpl::SetPersonalRingingTone( |
|
2437 |
const TPEContactFileName& aRingingTonepath, |
|
2438 |
const TInt aCallId ) |
|
2439 |
{ |
|
2440 |
return ( *iRemoteInfo )[ aCallId ]->SetPersonalRingingTone( aRingingTonepath ); |
|
2441 |
} |
|
2442 |
||
2443 |
// ----------------------------------------------------------------------------- |
|
2444 |
// CPEEngineInfoImpl::SetRemoteCompanyName |
|
2445 |
// ----------------------------------------------------------------------------- |
|
2446 |
// |
|
2447 |
void CPEEngineInfoImpl::SetRemoteCompanyName( |
|
2448 |
const TPEContactName& aCompanyName, |
|
2449 |
const TInt aCallId ) |
|
2450 |
{ |
|
2451 |
return ( *iRemoteInfo )[ aCallId ]->SetCompanyName( aCompanyName ); |
|
2452 |
} |
|
2453 |
||
2454 |
// ----------------------------------------------------------------------------- |
|
2455 |
// CPEEngineInfoImpl::SetRemoteColpNumber |
|
2456 |
// ----------------------------------------------------------------------------- |
|
2457 |
// |
|
2458 |
void CPEEngineInfoImpl::SetRemoteColpNumber( |
|
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2459 |
const TPEPhoneNumber& aColpNumber, |
37 | 2460 |
const TInt aCallId ) |
2461 |
{ |
|
2462 |
return ( *iRemoteInfo )[ aCallId ]->SetColpNumber( aColpNumber ); |
|
2463 |
} |
|
2464 |
||
2465 |
// ----------------------------------------------------------------------------- |
|
2466 |
// CPEEngineInfoImpl::SetRemoteName |
|
2467 |
// ----------------------------------------------------------------------------- |
|
2468 |
// |
|
2469 |
void CPEEngineInfoImpl::SetRemoteName( |
|
2470 |
const TPEContactName& aContactName, |
|
2471 |
const TInt aCallId ) |
|
2472 |
{ |
|
2473 |
return ( *iRemoteInfo )[ aCallId ]->SetName( aContactName ); |
|
2474 |
} |
|
2475 |
||
2476 |
// ----------------------------------------------------------------------------- |
|
2477 |
// CPEEngineInfoImpl::SetRemotePhoneNumber |
|
2478 |
// ----------------------------------------------------------------------------- |
|
2479 |
// |
|
2480 |
void CPEEngineInfoImpl::SetRemotePhoneNumber( |
|
2481 |
const TPEPhoneNumber& aPhoneNumber, |
|
2482 |
const TInt aCallId ) |
|
2483 |
{ |
|
2484 |
return ( *iRemoteInfo )[ aCallId ]->SetPhoneNumber( aPhoneNumber ); |
|
2485 |
} |
|
2486 |
||
2487 |
// ----------------------------------------------------------------------------- |
|
2488 |
// CPEEngineInfoImpl::SetRemotePhoneNumberType |
|
2489 |
// ----------------------------------------------------------------------------- |
|
2490 |
// |
|
2491 |
void CPEEngineInfoImpl::SetRemotePhoneNumberType( |
|
2492 |
TPEPhoneNumberIdType aPhoneNumberType, |
|
2493 |
const TInt aCallId ) |
|
2494 |
{ |
|
2495 |
return ( *iRemoteInfo )[ aCallId ]->SetPhoneNumberType( aPhoneNumberType ); |
|
2496 |
} |
|
2497 |
||
2498 |
// ----------------------------------------------------------------------------- |
|
2499 |
// CPEEngineInfoImpl::SetRemoteTextToSpeechText |
|
2500 |
// ----------------------------------------------------------------------------- |
|
2501 |
// |
|
2502 |
void CPEEngineInfoImpl::SetRemoteTextToSpeechText( |
|
2503 |
HBufC* aText, |
|
2504 |
TInt aCallId ) |
|
2505 |
{ |
|
2506 |
return ( *iRemoteInfo )[ aCallId ]->SetTextToSpeechText( aText ); |
|
2507 |
} |
|
2508 |
||
2509 |
// ----------------------------------------------------------------------------- |
|
2510 |
// CPEEngineInfoImpl::CheckIfCallStateExists |
|
2511 |
// Checks if given state can be found. |
|
2512 |
// ----------------------------------------------------------------------------- |
|
2513 |
// |
|
2514 |
TBool CPEEngineInfoImpl::CheckIfCallStateExists( const TPEState& aCallState ) |
|
2515 |
{ |
|
2516 |
TInt count = iCurrentCalls.Count(); |
|
2517 |
TBool stateExists(EFalse); |
|
2518 |
for ( TInt i = 0; i < count; i++ ) |
|
2519 |
{ |
|
2520 |
if( aCallState == iCurrentCalls[ i ]->CallState() ) |
|
2521 |
{ |
|
2522 |
stateExists = ETrue; |
|
2523 |
break; |
|
2524 |
} |
|
2525 |
} |
|
2526 |
return stateExists; |
|
2527 |
} |
|
2528 |
||
2529 |
// ----------------------------------------------------------------------------- |
|
2530 |
// CPEEngineInfoImpl::SetContactId |
|
2531 |
// ----------------------------------------------------------------------------- |
|
2532 |
// |
|
2533 |
void CPEEngineInfoImpl::SetContactId2( const TInt aContactId ) |
|
2534 |
{ |
|
2535 |
TEFLOGSTRING2( KTAINT, |
|
2536 |
"PE CPEEngineInfo::SetContactId: aContactId: %d", aContactId ); |
|
2537 |
iContactId = aContactId; |
|
2538 |
} |
|
2539 |
||
2540 |
// ----------------------------------------------------------------------------- |
|
2541 |
// CPEEngineInfoImpl::ContactId |
|
2542 |
// ----------------------------------------------------------------------------- |
|
2543 |
// |
|
2544 |
TInt CPEEngineInfoImpl::ContactId2 () const |
|
2545 |
{ |
|
2546 |
TEFLOGSTRING2( KTAINT, "ContactId: %d", iContactId ); |
|
2547 |
return iContactId; |
|
2548 |
} |
|
2549 |
||
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2550 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2551 |
// CPEEngineInfoImpl::SetProtocolError |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2552 |
// Sets the protocol spesific error code |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2553 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2554 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2555 |
void CPEEngineInfoImpl::SetProtocolError( TInt aError, TInt aCallId ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2556 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2557 |
if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2558 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2559 |
iCurrentCalls[ aCallId ]->SetProtocolError( aError ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2560 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2561 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2562 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2563 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2564 |
// CPEEngineInfoImpl::ProtocolError |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2565 |
// Returns the protocol spesific error code |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2566 |
// ----------------------------------------------------------------------------- |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2567 |
// |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2568 |
TInt CPEEngineInfoImpl::ProtocolError( TInt aCallId ) |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2569 |
{ |
46
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2570 |
TInt ret( KErrNotFound ); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2571 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2572 |
if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2573 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2574 |
ret = iCurrentCalls[ aCallId ]->ProtocolError(); |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2575 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2576 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2577 |
return ret; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2578 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2579 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2580 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2581 |
// CPEEngineInfoImpl::IsOutgoingCallBarringActivated |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2582 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2583 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2584 |
TBool CPEEngineInfoImpl::IsOutgoingCallBarringActivated() |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2585 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2586 |
return iBasicInfo.iOutgoingBarringActivated; |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2587 |
} |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2588 |
|
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2589 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2590 |
// CPEEngineInfoImpl::SetOutgoingCallBarringActivated |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2591 |
// ----------------------------------------------------------------------------- |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2592 |
// |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2593 |
void CPEEngineInfoImpl::SetOutgoingCallBarringActivated( |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2594 |
TBool aActivated ) |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2595 |
{ |
bc5a64e5bc3c
Revision: 201025
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
45
diff
changeset
|
2596 |
iBasicInfo.iOutgoingBarringActivated = aActivated; |
45
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2597 |
} |
6b911d05207e
Revision: 201023
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
37
diff
changeset
|
2598 |
|
77
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2599 |
// ----------------------------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2600 |
// CPEEngineInfoImpl::SetProtocolError |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2601 |
// Sets the protocol spesific error code |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2602 |
// ----------------------------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2603 |
// |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2604 |
void CPEEngineInfoImpl::SetIncomingCallForwarded( TBool aForwarded, TInt aCallId ) |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2605 |
{ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2606 |
if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2607 |
{ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2608 |
iCurrentCalls[ aCallId ]->SetIncomingCallForwarded( aForwarded ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2609 |
} |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2610 |
} |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2611 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2612 |
// ----------------------------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2613 |
// CPEEngineInfoImpl::IncomingCallForwarded |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2614 |
// ----------------------------------------------------------------------------- |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2615 |
// |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2616 |
TBool CPEEngineInfoImpl::IncomingCallForwarded( TInt aCallId ) const |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2617 |
{ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2618 |
TBool ret( EFalse ); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2619 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2620 |
if ( 0<=aCallId && aCallId<iCurrentCalls.Count() ) |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2621 |
{ |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2622 |
ret = iCurrentCalls[ aCallId ]->IncomingCallForwarded(); |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2623 |
} |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2624 |
|
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2625 |
return ret; |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2626 |
} |
2be0b271d017
Revision: 201037
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
46
diff
changeset
|
2627 |
|
37 | 2628 |
// End of File |