author | Leon Anavi <leon.anavi@opencode.com> |
Sat, 06 Nov 2010 18:38:12 +0200 | |
branch | opencode |
changeset 87 | 434681fe53c8 |
parent 78 | d4cfc65049ba |
child 88 | 5e27cc612ac7 |
permissions | -rw-r--r-- |
24 | 1 |
// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 |
// All rights reserved. |
|
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
12 |
// |
|
13 |
// Description: |
|
14 |
// |
|
15 |
||
16 |
||
17 |
||
18 |
// INCLUDE FILES |
|
19 |
#include "cmmmessagerouterproxy.h" |
|
20 |
#include "cmmvoicecalltsy.h" |
|
21 |
#include "cmmdatacalltsy.h" |
|
22 |
#include "cmmcallextinterface.h" |
|
23 |
#include "cmmconferencecalltsy.h" |
|
24 |
#include "cmmconferencecallextinterface.h" |
|
25 |
#include "cmmphonetsy.h" |
|
26 |
#include "cmmlinetsy.h" |
|
27 |
#include "cmmnettsy.h" |
|
28 |
#include <ctsy/serviceapi/mmtsy_ipcdefs.h> |
|
29 |
#include "cmmonstoretsy.h" |
|
30 |
#include "cmmenstoretsy.h" |
|
31 |
#include "cmmphonebookstoretsy.h" |
|
32 |
#include "cmmphoneextinterface.h" |
|
33 |
#include "cmmdtmftsy.h" |
|
34 |
#include "cmmlinelist.h" |
|
35 |
#include "cmmcalllist.h" |
|
36 |
#include "cmmpblist.h" |
|
37 |
#include "cmmsupplservtsy.h" |
|
38 |
#include "Cmmpacketservicetsy.h" |
|
39 |
#include "cmmpacketservicegsmwcdmaext.h" |
|
40 |
#include "cmmpacketqosgsmwcdmaext.h" |
|
41 |
#include "Cmmpacketcontextlist.h" |
|
42 |
#include "cmmmbmscontextlist.h" |
|
43 |
#include "cmmmbmscontexttsy.h" |
|
44 |
#include "CMmCustomTsy.h" |
|
45 |
#include "CMmCustomGsmExt.h" |
|
46 |
#include "cmmussdtsy.h" |
|
47 |
#include "cmmbroadcasttsy.h" |
|
48 |
#include "CMmSimLockTsy.h" |
|
49 |
#include "CMmWimTsy.h" |
|
50 |
#include "CMmSIMTsy.h" |
|
51 |
#include "cmmsecuritytsy.h" |
|
52 |
#include "cmmsmstsy.h" |
|
53 |
#include "cmmsmsstoragetsy.h" |
|
54 |
#include "CMmCustomSecurityTsy.h" |
|
55 |
#include "ctsydelegates.h" |
|
56 |
#include <satcs.h> |
|
57 |
||
58 |
||
59 |
CMmMessageRouterProxy::CMmMessageRouterProxy() |
|
60 |
{ |
|
61 |
} |
|
62 |
||
63 |
CMmMessageRouterProxy* CMmMessageRouterProxy::NewL( |
|
64 |
CTsyDelegates& aTsyDelegates ) |
|
65 |
{ |
|
66 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::NewL." ); |
|
67 |
CMmMessageRouterProxy* const routerproxy = |
|
68 |
new ( ELeave ) CMmMessageRouterProxy(); |
|
69 |
CleanupStack::PushL( routerproxy ); |
|
70 |
routerproxy->iTsyDelegates = &aTsyDelegates; |
|
71 |
routerproxy->ConstructL(); |
|
72 |
CleanupStack::Pop(); |
|
73 |
return routerproxy; |
|
74 |
} |
|
75 |
||
76 |
CMmMessageRouterProxy::~CMmMessageRouterProxy() |
|
77 |
{ |
|
78 |
} |
|
79 |
||
80 |
void CMmMessageRouterProxy::ConstructL() |
|
81 |
{ |
|
82 |
} |
|
83 |
||
84 |
// --------------------------------------------------------------------------- |
|
85 |
// CMmMessageRouterProxy::Complete |
|
86 |
// Complete with a data package |
|
87 |
// (other items were commented in a header). |
|
88 |
// --------------------------------------------------------------------------- |
|
89 |
// |
|
90 |
void CMmMessageRouterProxy::Complete( |
|
91 |
TInt aIpc, |
|
92 |
CMmDataPackage* aData, |
|
93 |
TInt aResult ) |
|
94 |
{ |
|
95 |
TFLOGSTRING3("TSY: CMmMessageRouterProxy::Complete. IPC = %d, result: %d", aIpc, aResult); |
|
96 |
RouteCompletion( aIpc, aData, aResult ); |
|
97 |
} |
|
98 |
||
99 |
// --------------------------------------------------------------------------- |
|
100 |
// CMmMessageRouterProxy::Complete |
|
101 |
// Complete without a data package |
|
102 |
// (other items were commented in a header). |
|
103 |
// --------------------------------------------------------------------------- |
|
104 |
// |
|
105 |
void CMmMessageRouterProxy::Complete( TInt aIpc, TInt aResult ) |
|
106 |
{ |
|
107 |
CMmDataPackage emptyDataPackage; |
|
108 |
Complete( aIpc, &emptyDataPackage, aResult ); |
|
109 |
} |
|
110 |
||
111 |
// --------------------------------------------------------------------------- |
|
112 |
// CMmMessageRouterProxy::RouteCompletion |
|
113 |
// Completes a request or notification via the specific Tsy object, based on |
|
114 |
// IPC number and data package |
|
115 |
// (other items were commented in a header). |
|
116 |
// --------------------------------------------------------------------------- |
|
117 |
// |
|
118 |
EXPORT_C void CMmMessageRouterProxy::RouteCompletion( |
|
119 |
TInt aIpc, |
|
120 |
CMmDataPackage* aDataPackage, |
|
121 |
TInt aResult ) |
|
122 |
{ |
|
123 |
TRAP_IGNORE( RouteCompletionL( aIpc, aDataPackage, aResult ) ); |
|
124 |
} |
|
125 |
||
126 |
// --------------------------------------------------------------------------- |
|
127 |
// CMmMessageRouterProxy::RouteCompletionL |
|
128 |
// Completes a request or notification via the specific Tsy object, based on |
|
129 |
// IPC number and data package |
|
130 |
// (other items were commented in a header). |
|
131 |
// --------------------------------------------------------------------------- |
|
132 |
// |
|
133 |
void CMmMessageRouterProxy::RouteCompletionL( |
|
134 |
TInt aIpc, |
|
135 |
CMmDataPackage* aDataPackage, |
|
136 |
TInt aResult ) |
|
137 |
{ |
|
138 |
//Literals used in routing |
|
139 |
_LIT( KStringExternal, "External" ); |
|
140 |
_LIT( KStringExternal2, "External2" ); |
|
141 |
||
142 |
//Object to complete |
|
143 |
CBase* mmObject = NULL; |
|
144 |
||
145 |
//Get mmObject to complete to |
|
146 |
switch ( aIpc ) |
|
147 |
{ |
|
148 |
// Call Functionality |
|
149 |
case EMobileCallHold: |
|
150 |
case EEtelCallDial: |
|
151 |
case EEtelCallAnswer: |
|
152 |
case EEtelCallHangUp: |
|
153 |
case EMobileCallResume: |
|
154 |
case EMobileCallSwap: |
|
155 |
case EMobileCallTransfer: |
|
156 |
case EMobileCallGoOneToOne: |
|
157 |
case EMobileCallNotifyMobileCallStatusChange: |
|
158 |
case EMobileCallGetMobileCallInfo: |
|
159 |
case EMobileCallNotifyCallEvent: |
|
160 |
case EMobileConferenceCallGetMobileCallInfo: |
|
161 |
case EMobileCallDialISV: |
|
162 |
case EMobileCallAnswerISV: |
|
163 |
case EMobileCallDialEmergencyCall: |
|
164 |
case EMobileCallReceiveUUI: |
|
165 |
case EMobileCallDialNoFdnCheck: |
|
166 |
// CSD functionality |
|
167 |
case EMobileCallSetDynamicHscsdParams: |
|
168 |
case EMobileCallNotifyMobileDataCallCapsChange: |
|
169 |
case EMobileCallNotifyHscsdInfoChange: |
|
170 |
case EEtelCallGetCallParams: |
|
171 |
case EEtelCallGetBearerServiceInfo: |
|
172 |
{ |
|
173 |
TInt callId( -1 ); |
|
174 |
RMobilePhone::TMobileService callMode( |
|
175 |
RMobilePhone::EVoiceService ); |
|
176 |
||
177 |
const CCallDataPackage* callData = REINTERPRET_CAST( |
|
178 |
const CCallDataPackage*, aDataPackage ); |
|
179 |
||
180 |
callData->GetCallIdAndMode( callId, callMode ); |
|
181 |
||
182 |
//call object can be usually reasoned by Call ID |
|
183 |
mmObject = REINTERPRET_CAST( CBase*, |
|
184 |
iMmPhone->CallList()->GetMmCallById( callId ) ); |
|
185 |
} |
|
186 |
break; |
|
187 |
||
188 |
// Line Functionality |
|
189 |
case EEtelLineNotifyCallAdded: |
|
190 |
case EEtelLineNotifyIncomingCall: |
|
191 |
{ |
|
192 |
TInt callId( -1 ); |
|
193 |
RMobilePhone::TMobileService callMode( |
|
194 |
RMobilePhone::EVoiceService ); |
|
195 |
||
196 |
const CCallDataPackage* callData = REINTERPRET_CAST( |
|
197 |
const CCallDataPackage*, aDataPackage ); |
|
198 |
||
199 |
callData->GetCallIdAndMode( callId, callMode ); |
|
200 |
||
201 |
//correct line object is determined using the call mode |
|
202 |
mmObject = REINTERPRET_CAST( CBase*, |
|
203 |
iMmPhone->LineList()->GetMmLineByMode( callMode ) ); |
|
204 |
} |
|
205 |
break; |
|
206 |
||
207 |
// Conference call functionality |
|
208 |
case EMobileConferenceCallCreateConference: |
|
209 |
case EMobileConferenceCallAddCall: |
|
210 |
case EMobileConferenceCallSwap: |
|
211 |
case EMobileConferenceCallHangUp: |
|
212 |
case EMobileConferenceCallNotifyConferenceStatusChange: |
|
213 |
case EMobileConferenceCallNotifyConferenceEvent: |
|
214 |
||
215 |
// case EMobileConferenceCallGetCaps: |
|
216 |
// case EMobileConferenceCallNotifyCapsChange: |
|
217 |
// case EMobileConferenceCallEnumerateCalls: |
|
218 |
// case EMobileConferenceCallGetConferenceStatus: |
|
219 |
||
220 |
// case EMobileConferenceCallNotifyCapsChangeCancel: |
|
221 |
// case EMobileConferenceCallCreateConferenceCancel: |
|
222 |
// case EMobileConferenceCallAddCallCancel: |
|
223 |
// case EMobileConferenceCallSwapCancel: |
|
224 |
// case EMobileConferenceCallHangUpCancel: |
|
225 |
// case EMobileConferenceCallNotifyConferenceStatusChangeCancel: |
|
226 |
// case EMobileConferenceCallNotifyConferenceEventCancel: |
|
227 |
mmObject = iTsyDelegates-> |
|
228 |
GetTsyObject( CMmMessageManagerBase::EConferenceCallTsy ); |
|
229 |
break; |
|
230 |
||
231 |
// Phonebook functionality |
|
232 |
// case EMobilePhoneReadDTMFTones: not supported |
|
233 |
// case EMobilePhoneReadDTMFTonesCancel: not supported |
|
234 |
// case EMobilePhoneStartDTMFTone: no completion |
|
235 |
// case EMobilePhoneContinueDTMFStringSending: no completion |
|
236 |
// case EMobilePhoneGetDTMFCaps: no DOS call required |
|
237 |
// case EMobilePhoneNotifyDTMFCapsChange: no DOS call required |
|
238 |
// case EMobilePhoneNotifyDTMFCapsChangeCancel: no DOS call required |
|
239 |
// case EMobilePhoneNotifyStopInDTMFStringCancel: no DOS call required |
|
240 |
// case EMobilePhoneNotifyDTMFEventCancel: no DOS call required |
|
241 |
case EMobilePhoneNotifyDTMFEvent: |
|
242 |
mmObject = iTsyDelegates->GetTsyObject( CMmMessageManagerBase::EDtmfTsy ); |
|
243 |
break; |
|
244 |
||
245 |
case EMmTsyPhoneBookStoreInitIPC: |
|
246 |
case EMmTsyPhoneBookStoreCacheIPC: |
|
247 |
case EMmTsyPhoneBookStoreReadIPC: |
|
248 |
case EMmTsyPhoneBookStoreWriteIPC: |
|
249 |
case EMmTsyPhoneBookStoreGetInfoIPC: |
|
250 |
case EMmTsyPhoneBookStoreDeleteIPC: |
|
251 |
case EMmTsyPhoneBookStoreDeleteAllIPC: |
|
252 |
case EMmTsyPhoneBookStoreResetCacheIPC: |
|
253 |
{ |
|
254 |
const CPhoneBookDataPackage* phonebookData = REINTERPRET_CAST( |
|
255 |
const CPhoneBookDataPackage*, aDataPackage ); |
|
256 |
||
257 |
TName phoneBookName; |
|
258 |
phonebookData->GetPhoneBookName( phoneBookName ); |
|
259 |
TFLOGSTRING2("TSY: CMmMessageRouterProxy::RouteCompletion: PB Name: %S", &phoneBookName); |
|
260 |
||
261 |
for( TInt i = 0; i < iMmPhone->PBList()->GetNumberOfObjects(); i++ ) |
|
262 |
{ |
|
263 |
CMmPhoneBookStoreTsy* pbStore = iMmPhone->PBList()-> |
|
264 |
GetMmPBByIndex( i ); |
|
265 |
||
266 |
if ( 0 == pbStore->PhoneBookName()->CompareF( phoneBookName ) ) |
|
267 |
{ |
|
268 |
mmObject = static_cast<CBase*>( pbStore ); |
|
269 |
} |
|
270 |
} |
|
271 |
if ( NULL == mmObject ) |
|
272 |
{ |
|
273 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: PB object not found!"); |
|
274 |
iMmPhone->SetPBInitActiveStatus( EFalse ); |
|
275 |
} |
|
276 |
} |
|
277 |
break; |
|
278 |
// ENStore functionality |
|
279 |
case EMmTsyENStoreGetInfoIPC: |
|
280 |
case EMmTsyENStoreReadIPC: |
|
281 |
case EMmTsyENStoreReadAllPhase1IPC: |
|
282 |
mmObject = iTsyDelegates-> |
|
283 |
GetTsyObject( CMmMessageManagerBase::EENStoreTsy ); |
|
284 |
break; |
|
285 |
||
286 |
// ONStore functionality |
|
287 |
case EMmTsyONStoreGetInfoIPC: |
|
288 |
case EMmTsyONStoreReadIPC: |
|
289 |
case EMmTsyONStoreWriteIPC: |
|
290 |
case EMmTsyONStoreDeleteIPC: |
|
291 |
case EMmTsyONStoreDeleteAllIPC: |
|
292 |
case EMmTsyONStoreReadAllPhase1IPC: |
|
293 |
case EMmTsyONStoreStoreAllIPC: |
|
294 |
case EMmTsyONStoreReadEntryIPC: |
|
295 |
case EMmTsyONStoreReadSizeIPC: |
|
296 |
case EMmTsyONStoreWriteSizeIPC: |
|
297 |
case EMmTsyONStoreWriteEntryIPC: |
|
298 |
mmObject = iTsyDelegates->GetTsyObject( |
|
299 |
CMmMessageManagerBase::EONStoreTsy ); |
|
300 |
break; |
|
301 |
||
302 |
//Packet data functionality |
|
303 |
case EPacketAttach: |
|
304 |
case EPacketDetach: |
|
305 |
case EPacketGetNtwkRegStatus: |
|
306 |
case EPacketSetAttachMode: |
|
307 |
case EPacketRejectActivationRequest: |
|
308 |
case EPacketGetAttachMode: |
|
309 |
case EPacketSetDefaultContextParams: |
|
310 |
case EPacketNotifyContextAdded: |
|
311 |
case EPacketNotifyStatusChange: |
|
312 |
case EPacketNotifyDynamicCapsChange: |
|
313 |
case EPacketNotifyMSClassChange: |
|
314 |
case EPacketSetPrefBearer: |
|
315 |
case EPacketNotifyChangeOfNtwkRegStatus: |
|
316 |
case EMmTsyNotifyEGprsInfoChangeIPC: // dummy internal IPC |
|
317 |
case EPacketNotifyAttachModeChange: |
|
318 |
case EPacketNotifyContextActivationRequested: |
|
319 |
case EPacketContextInitialiseContext: |
|
320 |
case EPacketQoSSetProfileParams: |
|
321 |
case EPacketQoSNotifyProfileChanged: |
|
322 |
case EPacketNotifyReleaseModeChange: |
|
323 |
case EPacketContextSetConfig: |
|
324 |
case EPacketContextDelete: |
|
325 |
case EPacketContextNotifyDataTransferred: |
|
326 |
case EPacketContextActivate: |
|
327 |
case EPacketContextNotifyConfigChanged: |
|
328 |
case EPacketContextNotifyConnectionSpeedChange: |
|
329 |
case EPacketContextNotifyStatusChange: |
|
330 |
case EPacketContextDeactivate: |
|
331 |
case EPacketContextGetDataVolumeTransferred: |
|
332 |
case EPacketContextModifyActiveContext: |
|
333 |
case ECustomSetAlwaysOnMode: |
|
334 |
case EPacketNotifyTransferCapsIPC: |
|
335 |
case EPacketEnumerateMbmsActiveServiceList: |
|
336 |
case EPacketNotifyMbmsServiceAvailabilityChange: |
|
337 |
case EPacketUpdateMbmsMonitorServiceList: |
|
338 |
case EPacketGetMbmsNetworkServiceStatus: |
|
339 |
case EPacketNotifyMbmsNetworkServiceStatusChange: |
|
340 |
case EPacketContextUpdateMbmsSessionList: |
|
341 |
case EPacketGetStaticCaps: |
|
342 |
case EPacketEnumerateMbmsMonitorServiceList: |
|
343 |
case ECtsyPacketMbmsInitialiseContextComp: |
|
344 |
case ECtsyPacketMbmsContextNotifyConfigChanged: |
|
345 |
#ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
346 |
case EPacketContextNotifyConnectionInfoChange: |
|
347 |
#endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
348 |
mmObject = REINTERPRET_CAST( |
|
349 |
CBase*, iMmPhone->PacketDataSession() ); |
|
350 |
break; |
|
351 |
||
352 |
// USSD functionality |
|
353 |
case EMobileUssdMessagingSendRelease: |
|
354 |
case EMobileUssdMessagingSendMessage: |
|
77 | 355 |
case EMobileUssdMessagingSendMessageDefaultHandler: |
24 | 356 |
case EMobileUssdMessagingSendMessageNoFdnCheck: |
357 |
case EMobileUssdMessagingReceiveMessage: |
|
358 |
case EMobileUssdMessagingNotifyNetworkRelease: |
|
359 |
mmObject = iTsyDelegates->GetTsyObject( |
|
360 |
CMmMessageManagerBase::EUssdMessagingTsy ); |
|
361 |
break; |
|
362 |
||
363 |
// Broadcast functionality |
|
364 |
case EMmTsyGsmBroadcastNotifyMessageReceived: |
|
365 |
case EMmTsyWcdmaBroadcastNotifyMessageReceived: |
|
366 |
case EMobileBroadcastMessagingReceiveMessage: |
|
367 |
case EMobileBroadcastMessagingReceiveMessageCancel: |
|
368 |
case EMobileBroadcastMessagingSetFilterSetting: |
|
369 |
case EMobileBroadcastMessagingSetLanguageFilter: |
|
370 |
case EMobileBroadcastMessagingStoreIdList: |
|
371 |
mmObject = iTsyDelegates->GetTsyObject( |
|
372 |
CMmMessageManagerBase::EBroadcastMessagingTsy ); |
|
373 |
break; |
|
374 |
||
375 |
// SMS functionality |
|
376 |
case EMobileSmsMessagingGetMessageStoreInfo: |
|
377 |
case EMmTsyActivateSmsRouting: |
|
378 |
case EMmTsyDeactivateSmsRouting: |
|
379 |
case EMobileSmsMessagingReceiveMessage: |
|
77 | 380 |
case EMobileSmsMessagingSendMessage: |
24 | 381 |
case EMobileSmsMessagingSendMessageNoFdnCheck: |
382 |
case EMmTsySmsSendSatMessage: |
|
383 |
case EMobileSmsMessagingResumeSmsReception: |
|
384 |
case EMobileSmsMessagingGetSmspListPhase1: |
|
385 |
case EMobileSmsMessagingStoreSmspList: |
|
386 |
case EMobileSmsMessagingAckSmsStored: |
|
387 |
case EMobileSmsMessagingNackSmsStored: |
|
388 |
case EMobileSmsMessagingSetMoSmsBearer: |
|
389 |
mmObject = iTsyDelegates->GetTsyObject( |
|
390 |
CMmMessageManagerBase::ESmsMessagingTsy ); |
|
391 |
break; |
|
392 |
||
393 |
// Storage functionality |
|
394 |
case EMobilePhoneStoreGetInfo: |
|
395 |
case EMobilePhoneStoreDelete: |
|
396 |
case EMobilePhoneStoreDeleteAll: |
|
397 |
case EMobilePhoneStoreRead: |
|
398 |
case EMobilePhoneStoreWrite: |
|
399 |
case EMobilePhoneStoreReadAllPhase1: |
|
400 |
mmObject = iTsyDelegates->GetTsyObject( |
|
401 |
CMmMessageManagerBase::EPhoneStoreTsy ); |
|
402 |
break; |
|
403 |
||
404 |
// Custom Tsy functionality |
|
405 |
case ECustomCancelUssdSessionIPC: |
|
406 |
case ECustomSsAdditionalInfoNotificationIPC: |
|
407 |
case ECustomNotifySsNetworkEventIPC: |
|
408 |
case ECustomNotifySsRequestCompleteIPC: |
|
409 |
case ECustomNotifyDtmfEventIPC: |
|
410 |
case ECustomGetDiagnosticOctetsIPC: |
|
411 |
case ECustomGetRemoteAlertingToneStatusIPC: |
|
412 |
case ECustomClearCallBlackListIPC: |
|
413 |
case ECustomCheckEmergencyNumberIPC: |
|
414 |
case ECustomGetLifeTimeIPC: |
|
415 |
case ECustomTerminateCallIPC: |
|
416 |
case ECustomGetAlsBlockedIPC: |
|
417 |
case ECustomSetAlsBlockedIPC: |
|
418 |
case ECustomCheckAlsPpSupportIPC: |
|
419 |
case ECustomCheckTwoDigitDialSupportIPC: |
|
420 |
case ECustomGetCipheringInfoIPC: |
|
421 |
case ECustomNotifyCipheringInfoChangeIPC: |
|
422 |
case ECustomNotifyNSPSStatusIPC: |
|
423 |
case ECustomNetWakeupIPC: |
|
424 |
case ECustomGetOperatorNameIPC: |
|
425 |
case ECustomResetNetServerIPC: |
|
426 |
case ECustomNotifyNetworkConnectionFailureIPC: |
|
427 |
case ECustomGetSystemNetworkModesIPC: |
|
428 |
case ECustomSetSystemNetworkModeIPC: |
|
429 |
case ECustomGetNetworkProviderNameIPC: |
|
430 |
case ECustomGetCurrentSystemNetworkModesIPC: |
|
431 |
case ECustomSatRefreshCompleteNotificationIPC: |
|
432 |
case ECustomReadSimFileIPC: |
|
433 |
case ECustomSimLockActivateIPC: |
|
434 |
case ECustomSimLockDeActivateIPC: |
|
435 |
case ECustomSendAPDUReqIPC: |
|
436 |
case ECustomSimWarmResetIPC: |
|
437 |
case ECustomGetATRIPC: |
|
438 |
case ECustomSendAPDUReqV2IPC: |
|
439 |
case ECustomGetSimCardReaderStatusIPC: |
|
440 |
case ECustomNotifySimCardStatusIPC: |
|
441 |
case ECustomPowerSimOnIPC: |
|
442 |
case ECustomPowerSimOffIPC: |
|
443 |
case ECustomStartSimCbTopicBrowsingIPC: |
|
444 |
case ECustomDeleteSimCbTopicIPC: |
|
445 |
case EReadViagHomeZoneParamsIPC: |
|
446 |
case EReadViagHomeZoneCacheIPC: |
|
447 |
case EWriteViagHomeZoneUHZIUESettingsIPC: |
|
448 |
case EWriteViagHomeZoneCacheIPC: |
|
449 |
case ECustomGetSimAuthenticationDataIPC: |
|
450 |
case ECustomSetDriveModeIPC: |
|
451 |
case ECustomNotifyRauEventIPC: |
|
452 |
case ECustomReadHSxPAStatusIPC: |
|
453 |
case ECustomWriteHSxPAStatusIPC: |
|
454 |
case ECustomNotifyHSxPAStatusIPC: |
|
455 |
case ECustomGetIccCallForwardingStatusIPC: |
|
456 |
case ECustomNotifyIccCallForwardingStatusChangeIPC: |
|
457 |
case ECustomGetCellInfoIPC: |
|
458 |
case ECustomNotifyCellInfoChangeIPC: |
|
459 |
case ECustomGetBandSelectionIPC: |
|
460 |
case ECustomSetBandSelectionIPC: |
|
461 |
case ECustomNotifyRemoteAlertingToneStatusChangeIPC: |
|
462 |
case ECustomGetServiceTableSupportbyApplicationIPC: |
|
463 |
case ECustomGetProgrammableOperatorLogoIPC: |
|
464 |
mmObject = iTsyDelegates->GetTsyObject( |
|
465 |
CMmMessageManagerBase::ECustomTsy ); |
|
466 |
break; |
|
467 |
||
468 |
// Security (Custom) functionality |
|
469 |
case ECustomIsBlockedIPC: |
|
470 |
case ECustomCheckSecurityCodeIPC: |
|
471 |
//case ECustomCheckEmergencyNumberIPC: |
|
472 |
//case ECustomSatRefreshCompleteNotificationIPC: |
|
473 |
case ECustomDisablePhoneLockIPC: |
|
474 |
case ECustomCheckSecurityCodeCancelIPC: |
|
475 |
case EMmTsySecurityGetSimActivePinStateIPC: |
|
476 |
mmObject = iTsyDelegates->GetTsyObject( |
|
477 |
CMmMessageManagerBase::ESecurityTsy ); |
|
478 |
break; |
|
479 |
// This is a special case |
|
480 |
case EMobileCallNotifyPrivacyConfirmation: |
|
481 |
break; |
|
482 |
default: |
|
483 |
mmObject = iTsyDelegates->GetTsyObject( |
|
484 |
CMmMessageManagerBase::EPhoneTsy ); |
|
485 |
break; |
|
486 |
} |
|
487 |
||
488 |
// Route completion to right TSY |
|
489 |
if ( NULL != mmObject ) |
|
490 |
{ |
|
491 |
switch ( aIpc ) |
|
492 |
{ |
|
493 |
case EMobileCallHold: |
|
494 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
495 |
CompleteHold( aResult ); |
|
496 |
break; |
|
497 |
case EMobileCallDialNoFdnCheck: |
|
498 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
499 |
CompleteDialNoFdn( aResult ); |
|
500 |
break; |
|
501 |
case EEtelCallDial: |
|
502 |
case EMobileCallDialISV: |
|
503 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
504 |
CompleteDial( aResult ); |
|
505 |
break; |
|
506 |
case EEtelCallAnswer: |
|
507 |
case EMobileCallAnswerISV: |
|
508 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
509 |
CompleteAnswerIncomingCall( aResult ); |
|
510 |
break; |
|
511 |
case EEtelCallHangUp: |
|
512 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
513 |
CompleteHangUp( aResult ); |
|
514 |
break; |
|
515 |
case EMobileCallResume: |
|
516 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
517 |
CompleteResume( aResult ); |
|
518 |
break; |
|
519 |
case EMobileCallSwap: |
|
520 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
521 |
CompleteSwap( aResult ); |
|
522 |
break; |
|
523 |
case EMobileCallTransfer: |
|
524 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
525 |
CompleteTransfer( aResult ); |
|
526 |
break; |
|
527 |
case EMobileCallGoOneToOne: |
|
528 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
529 |
CompleteGoOneToOne( aResult ); |
|
530 |
break; |
|
531 |
case EMobileCallNotifyMobileCallStatusChange: |
|
532 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
533 |
CompleteNotifyStatusChange( aResult, aDataPackage ); |
|
534 |
// phone idicator status may change |
|
535 |
iMmPhone->CompleteNotifyIndicatorChange(); |
|
536 |
break; |
|
537 |
case EMobileCallGetMobileCallInfo: |
|
538 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
539 |
CompleteNotifyMobileCallInfoChange( aDataPackage ); |
|
540 |
break; |
|
541 |
case EMobileCallNotifyCallEvent: |
|
542 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
543 |
CompleteNotifyRemoteCallEvent( aDataPackage ); |
|
544 |
break; |
|
545 |
case EMobileCallReceiveUUI: |
|
546 |
static_cast<CMmVoiceCallTsy*>( mmObject )-> |
|
547 |
CompleteReceiveUUI( aDataPackage, aResult ); |
|
548 |
break; |
|
549 |
case EMobileConferenceCallGetMobileCallInfo: |
|
550 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
551 |
CompleteNotifyMobileCallInfoChange( aDataPackage ); |
|
552 |
break; |
|
553 |
case EEtelLineNotifyCallAdded: |
|
554 |
static_cast<CMmLineTsy*>( mmObject )-> |
|
555 |
CompleteNotifyAddBypassingCall( aDataPackage ); |
|
556 |
break; |
|
557 |
case EEtelLineNotifyIncomingCall: |
|
558 |
static_cast<CMmLineTsy*>( mmObject )-> |
|
559 |
CompleteNotifyIncomingCall( aDataPackage ); |
|
560 |
break; |
|
561 |
case EMobilePhoneSetNetworkSelectionSetting: |
|
562 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
563 |
CompleteSetNetworkSelectionSetting( aResult ); |
|
564 |
break; |
|
565 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange: |
|
566 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
567 |
CompleteNotifyNetworkRegistrationStatusChange( |
|
568 |
aDataPackage, aResult ); |
|
569 |
// phone indicator status may change |
|
570 |
iMmPhone->CompleteNotifyIndicatorChange(); |
|
571 |
break; |
|
572 |
case EMobilePhoneNotifyModeChange: |
|
573 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
574 |
CompleteNotifyModeChange( aDataPackage, aResult ); |
|
575 |
break; |
|
576 |
case EMobilePhoneNotifyCurrentNetworkChange: |
|
577 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
578 |
CompleteNotifyCurrentNetworkChange( |
|
579 |
aDataPackage, aResult ); |
|
580 |
break; |
|
581 |
case EMobilePhoneNotifyNetworkSelectionSettingChange: |
|
582 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
583 |
CompleteNotifyNetworkSelectionSettingChange( |
|
584 |
aDataPackage ); |
|
585 |
break; |
|
586 |
case EMobilePhoneSelectNetwork: |
|
587 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
588 |
CompleteSelectNetwork( aResult ); |
|
589 |
break; |
|
590 |
case EMobilePhoneGetDetectedNetworksV2Phase1: |
|
591 |
{ |
|
592 |
CMmNetTsy* netTsy = |
|
593 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy(); |
|
594 |
||
595 |
netTsy->ProcessGetDetectedNetworksPhase1L( |
|
596 |
aDataPackage, aResult ); |
|
597 |
break; |
|
598 |
} |
|
599 |
case EMobilePhoneAuthorizationInfoPhase1: |
|
600 |
{ |
|
601 |
CMmNetTsy* netTsy = |
|
602 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy(); |
|
603 |
netTsy->ProcessGetAuthorizationInfoPhase1L( |
|
604 |
aDataPackage, aResult ); |
|
605 |
break; |
|
606 |
} |
|
607 |
case EMobilePhoneGetHomeNetwork: |
|
608 |
{ |
|
609 |
CMmPhoneTsy* phoneTsy = |
|
610 |
static_cast<CMmPhoneTsy*>( mmObject ); |
|
611 |
static_cast<CMmPhoneExtInterface*>( phoneTsy-> |
|
612 |
PhoneExtInterface() )->CompleteGetHomeNetwork( |
|
613 |
aDataPackage ); |
|
614 |
break; |
|
615 |
} |
|
616 |
case EMmTsySimRefreshRegisterIPC: |
|
617 |
{ |
|
618 |
CMmPhoneTsy* phoneTsy = |
|
619 |
static_cast<CMmPhoneTsy*>( mmObject ); |
|
620 |
phoneTsy->CompleteSimRefreshRegister( aResult ); |
|
621 |
break; |
|
622 |
} |
|
623 |
case EMobilePhoneGetDetectedNetworksCancel: |
|
624 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
625 |
CompleteGetDetectedNetworksCancel( aResult ); |
|
626 |
break; |
|
627 |
case EMobilePhoneSelectNetworkCancel: |
|
628 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
629 |
CompleteSelectNetworkCancel( aResult ); |
|
630 |
break; |
|
631 |
case EMobilePhoneNotifySignalStrengthChange: |
|
632 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
633 |
CompleteNotifySignalStrengthChange( aDataPackage ); |
|
634 |
break; |
|
635 |
case EMobilePhoneNotifyNITZInfoChange: |
|
636 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
637 |
CompleteNotifyNITZInfoChange( aDataPackage ); |
|
638 |
break; |
|
639 |
case ECtsyPhoneCellInfoComp: |
|
640 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
641 |
CompleteCellInfoReq( aDataPackage, aResult ); |
|
642 |
break; |
|
643 |
case ECtsyPhoneCellInfoIndComp: |
|
644 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
645 |
CompleteCellInfoIndReq( aDataPackage, aResult ); |
|
646 |
break; |
|
647 |
case EMobilePhoneGetNetworkRegistrationStatus: |
|
648 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
649 |
CompleteGetNetworkRegistrationStatus( aResult ); |
|
650 |
break; |
|
651 |
case EMobilePhoneGetCipheringIndicatorStatus: |
|
652 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
653 |
CompleteGetCipheringIndicatorStatus( |
|
654 |
aDataPackage, aResult ); |
|
655 |
break; |
|
656 |
case EMobilePhoneNotifyNetworkSecurityLevelChange: |
|
657 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
658 |
CompleteNotifyNetworkSecurityLevelChange( |
|
659 |
aDataPackage ); |
|
660 |
break; |
|
661 |
||
662 |
case EMobilePhoneGetCurrentActiveUSimApplication: |
|
663 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
664 |
CompleteGetCurrentActiveUSimApplication( |
|
665 |
aDataPackage, aResult ); |
|
666 |
break; |
|
667 |
#ifdef USING_CTSY_DISPATCHER |
|
668 |
case ECtsyUpdateLifeTimeComp: |
|
669 |
{ |
|
670 |
CMmPhoneTsy* phoneTsy = |
|
671 |
static_cast<CMmPhoneTsy*>( mmObject ); |
|
672 |
phoneTsy->CompleteUpdateLifeTimer( aResult ); |
|
673 |
break; |
|
674 |
} |
|
675 |
#else |
|
676 |
case EMmTsyUpdateLifeTimeIPC: |
|
677 |
{ |
|
678 |
CMmPhoneTsy* phoneTsy = |
|
679 |
static_cast<CMmPhoneTsy*>( mmObject ); |
|
680 |
phoneTsy->CompleteUpdateLifeTimer( aResult ); |
|
681 |
break; |
|
682 |
} |
|
683 |
#endif //USING_CTSY_DISPATCHER |
|
684 |
case ECtsyPhoneTerminateAllCallsComp: |
|
685 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
686 |
CompleteTerminateAllCallsReq( aResult ); |
|
687 |
break; |
|
688 |
case ECtsyPhoneTerminateActiveCallsComp: |
|
689 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
690 |
CompleteTerminateActiveCallsReq( aResult ); |
|
691 |
break; |
|
692 |
||
693 |
// Conference call functionality |
|
694 |
case EMobileConferenceCallCreateConference: |
|
695 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
696 |
CompleteCreateConference( aResult ); |
|
697 |
break; |
|
698 |
case EMobileConferenceCallAddCall: |
|
699 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
700 |
CompleteAddCall( aResult ); |
|
701 |
break; |
|
702 |
case EMobileConferenceCallSwap: |
|
703 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
704 |
CompleteSwap( aResult ); |
|
705 |
break; |
|
706 |
case EMobileConferenceCallHangUp: |
|
707 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
708 |
CompleteHangUp( aResult ); |
|
709 |
break; |
|
710 |
case EMobileConferenceCallNotifyConferenceStatusChange: |
|
711 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
712 |
CompleteNotifyConferenceStatusChange(); |
|
713 |
break; |
|
714 |
case EMobileConferenceCallNotifyConferenceEvent: |
|
715 |
static_cast<CMmConferenceCallTsy*>( mmObject )-> |
|
716 |
GetActiveConferenceCallExtension()-> |
|
717 |
CompleteNotifyConferenceEvent( aDataPackage ); |
|
718 |
break; |
|
719 |
// case EMobileConferenceCallGetCaps: |
|
720 |
// case EMobileConferenceCallNotifyCapsChange: |
|
721 |
// case EMobileConferenceCallEnumerateCalls: |
|
722 |
// case EMobileConferenceCallGetConferenceStatus: |
|
723 |
||
724 |
// case EMobileConferenceCallNotifyCapsChangeCancel: |
|
725 |
// case EMobileConferenceCallCreateConferenceCancel: |
|
726 |
// case EMobileConferenceCallAddCallCancel: |
|
727 |
// case EMobileConferenceCallSwapCancel: |
|
728 |
// case EMobileConferenceCallHangUpCancel: |
|
729 |
// case EMobileConferenceCallNotifyConferenceStatusChangeCancel: |
|
730 |
// case EMobileConferenceCallNotifyConferenceEventCancel: |
|
731 |
||
732 |
// DTMF functionality |
|
733 |
case EMobilePhoneSendDTMFTones: |
|
734 |
static_cast<CMmPhoneTsy*>( mmObject )->GetDtmfTsy()-> |
|
735 |
CompleteSendDTMFTones( aResult ); |
|
736 |
break; |
|
737 |
#ifdef USING_CTSY_DISPATCHER |
|
738 |
case EMobilePhoneStartDTMFTone: |
|
739 |
static_cast<CMmPhoneTsy*>( mmObject )->GetDtmfTsy()-> |
|
740 |
CompleteStartDTMFTone( aResult ); |
|
741 |
break; |
|
742 |
case EMobilePhoneStopDTMFTone: |
|
743 |
static_cast<CMmPhoneTsy*>( mmObject )->GetDtmfTsy()-> |
|
744 |
CompleteStopDTMFTone( aResult ); |
|
745 |
break; |
|
746 |
#else |
|
747 |
case EMobilePhoneStopDTMFTone: |
|
748 |
#endif //USING_CTSY_DISPATCHER |
|
749 |
case EMobilePhoneSendDTMFTonesCancel: |
|
750 |
static_cast<CMmPhoneTsy*>( mmObject )->GetDtmfTsy()-> |
|
751 |
CompleteSendDTMFTonesCancel( aResult ); |
|
752 |
break; |
|
753 |
case EMobilePhoneNotifyStopInDTMFString: |
|
754 |
static_cast<CMmPhoneTsy*>( mmObject )->GetDtmfTsy()-> |
|
755 |
CompleteNotifyStopInDTMFString( aDataPackage ); |
|
756 |
break; |
|
757 |
||
758 |
// case EMobilePhoneReadDTMFTones: not supported |
|
759 |
// case EMobilePhoneReadDTMFTonesCancel: not supported |
|
760 |
// case EMobilePhoneStartDTMFTone: no completion |
|
761 |
// case EMobilePhoneContinueDTMFStringSending: no completion |
|
762 |
// case EMobilePhoneGetDTMFCaps: no DOS call required |
|
763 |
// case EMobilePhoneNotifyDTMFCapsChange: no DOS call required |
|
764 |
// case EMobilePhoneNotifyDTMFCapsChangeCancel: no DOS call required |
|
765 |
// case EMobilePhoneNotifyDTMFEventCancel: no DOS call required |
|
766 |
// case EMobilePhoneNotifyStopInDTMFStringCancel: no DOS call required |
|
767 |
||
768 |
case EMobilePhoneNotifyDTMFEvent: //no DOS call required |
|
769 |
// unpack result: a RMobilePhone::TMobilePhoneDTMFEvent |
|
770 |
TInt dtmfInfo; |
|
771 |
aDataPackage->UnPackData( dtmfInfo ); |
|
772 |
static_cast<CMmDtmfTsy*>( mmObject )->CompleteNotifyDTMFEvent( dtmfInfo ); |
|
773 |
break; |
|
774 |
case EMmTsyPhoneBookStoreInitIPC: |
|
775 |
{ |
|
776 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
777 |
CompletePBStoreInitializationL( |
|
778 |
aResult, aDataPackage ); |
|
779 |
TBool done = EFalse; |
|
780 |
||
781 |
// NOTE: The statement above is redundant, as the loop below calls CompletePBStoreInitializationL |
|
782 |
// on every phonebook store. However, we need to be certain that changing the order in which |
|
783 |
// phonebook stores are initialised won't introduce side effects. (One future improvement) |
|
784 |
for( TInt i = 0; i < iMmPhone->PBList()->GetNumberOfObjects(); i++ ) |
|
785 |
{ |
|
786 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion:EMmTsyPhoneBookStoreInitIPC for loop, check init statuses "); |
|
787 |
CMmPhoneBookStoreTsy* pbStore = iMmPhone->PBList()-> |
|
788 |
GetMmPBByIndex( i ); |
|
789 |
done = pbStore->IsPBInitDone(); |
|
790 |
TFLOGSTRING3("TSY: CMmMessageRouterProxy::RouteCompletion: active: %i, done: %i",iMmPhone->IsPBInitActive(), done); |
|
791 |
if ( iMmPhone->IsPBInitActive() && !done ) |
|
792 |
{ |
|
793 |
TFLOGSTRING2("TSY: CMmMessageRouterProxy::RouteCompletion: complete also to: %S",pbStore->PhoneBookName()); |
|
794 |
mmObject = static_cast<CBase*>( pbStore ); |
|
795 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
796 |
CompletePBStoreInitializationL( |
|
797 |
aResult, aDataPackage ); |
|
798 |
} |
|
799 |
} |
|
800 |
iMmPhone->SetPBInitActiveStatus( EFalse ); |
|
801 |
} |
|
802 |
break; |
|
803 |
case EMmTsyPhoneBookStoreCacheIPC: |
|
804 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
805 |
CompleteCachingL( aResult, aDataPackage ); |
|
806 |
break; |
|
807 |
case EMmTsyPhoneBookStoreReadIPC: |
|
808 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
809 |
CompleteReadL( aResult, aDataPackage ); |
|
810 |
break; |
|
811 |
case EMmTsyPhoneBookStoreWriteIPC: |
|
812 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
813 |
CompleteWriteL( aResult, aDataPackage ); |
|
814 |
break; |
|
815 |
case EMmTsyPhoneBookStoreGetInfoIPC: |
|
816 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
817 |
CompleteCountEntries( aResult, aDataPackage ); |
|
818 |
break; |
|
819 |
case EMmTsyPhoneBookStoreDeleteIPC: |
|
820 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
821 |
CompleteDeleteL( aResult, aDataPackage ); |
|
822 |
break; |
|
823 |
case EMmTsyPhoneBookStoreDeleteAllIPC: |
|
824 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
825 |
CompleteDeleteAll( aResult, aDataPackage ); |
|
826 |
break; |
|
827 |
case EMmTsyPhoneBookStoreResetCacheIPC: |
|
828 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
829 |
ResetCacheReady(); |
|
830 |
static_cast<CMmPhoneBookStoreTsy*>( mmObject )-> |
|
831 |
ResetCache(); |
|
832 |
break; |
|
833 |
||
834 |
// CSD functionality |
|
835 |
case EEtelPhoneNotifyModemDetected: |
|
836 |
{ |
|
837 |
RPhone::TStatus* modemStatus = NULL; |
|
838 |
//unpack the data |
|
839 |
aDataPackage->UnPackData( &modemStatus ); |
|
840 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
841 |
CompleteNotifyModemDetected( *modemStatus ); |
|
842 |
break; |
|
843 |
} |
|
844 |
case EMobileCallSetDynamicHscsdParams: |
|
845 |
static_cast<CMmDataCallTsy*>( mmObject )-> |
|
846 |
CompleteSetDynamicHscsdParams( aResult ); |
|
847 |
break; |
|
848 |
case EMobileCallNotifyMobileDataCallCapsChange: |
|
849 |
static_cast<CMmDataCallTsy*>( mmObject )-> |
|
850 |
ActiveCallExtension()-> |
|
851 |
ReceivedMobileDataCallCaps( aDataPackage ); |
|
852 |
break; |
|
853 |
case EMobileCallNotifyHscsdInfoChange: |
|
854 |
static_cast<CMmDataCallTsy*>( mmObject )-> |
|
855 |
ActiveCallExtension()->ReceivedHscsdInfo( |
|
856 |
aDataPackage ); |
|
857 |
break; |
|
858 |
case EEtelCallGetCallParams: |
|
859 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
860 |
ActiveCallExtension()->ReceivedCallParams( aDataPackage ); |
|
861 |
break; |
|
862 |
case EEtelCallGetBearerServiceInfo: |
|
863 |
{ |
|
864 |
RCall::TBearerService* bearerService = NULL; |
|
865 |
aDataPackage->UnPackData( &bearerService ); |
|
866 |
static_cast<CMmCallTsy*>( mmObject )-> |
|
867 |
ActiveCallExtension()->ReceivedBearerServiceInfo( |
|
868 |
*bearerService ); |
|
869 |
break; |
|
870 |
} |
|
871 |
case EMmTsyENStoreGetInfoIPC: |
|
872 |
static_cast<CMmENStoreTsy*>( mmObject )->CompleteGetInfo( |
|
873 |
aResult, aDataPackage ); |
|
874 |
break; |
|
875 |
case EMmTsyENStoreReadIPC: |
|
876 |
static_cast<CMmENStoreTsy*>( mmObject )->CompleteRead( |
|
877 |
aResult, aDataPackage ); |
|
878 |
break; |
|
879 |
case EMmTsyENStoreReadAllPhase1IPC: |
|
880 |
static_cast<CMmENStoreTsy*>( mmObject )-> |
|
881 |
CompleteReadAllPhase1L( aResult, aDataPackage ); |
|
882 |
break; |
|
883 |
case EMmTsyONStoreGetInfoIPC: |
|
884 |
static_cast<CMmONStoreTsy*>( mmObject )->CompleteGetInfo( |
|
885 |
aResult, aDataPackage ); |
|
886 |
break; |
|
887 |
case EMmTsyONStoreReadIPC: |
|
888 |
static_cast<CMmONStoreTsy*>( mmObject )->CompleteRead( |
|
889 |
aResult, aDataPackage ); |
|
890 |
break; |
|
891 |
case EMmTsyONStoreWriteIPC: |
|
892 |
static_cast<CMmONStoreTsy*>( mmObject )->CompleteWrite( |
|
893 |
aResult, aDataPackage ); |
|
894 |
break; |
|
895 |
case EMmTsyONStoreDeleteIPC: |
|
896 |
static_cast<CMmONStoreTsy*>( mmObject )->CompleteDelete( |
|
897 |
aResult ); |
|
898 |
break; |
|
899 |
case EMmTsyONStoreDeleteAllIPC: |
|
900 |
static_cast<CMmONStoreTsy*>( mmObject )-> |
|
901 |
CompleteDeleteAll( aResult ); |
|
902 |
break; |
|
903 |
case EMmTsyONStoreReadAllPhase1IPC: |
|
904 |
static_cast<CMmONStoreTsy*>( mmObject )-> |
|
905 |
CompleteReadAllPhase1L(); |
|
906 |
break; |
|
907 |
case EMmTsyONStoreReadEntryIPC: |
|
908 |
STATIC_CAST( CMmONStoreTsy*, mmObject )-> |
|
909 |
InternalRetrieveONListReadEntryL( |
|
910 |
aResult, aDataPackage ); |
|
911 |
break; |
|
912 |
case EMmTsyONStoreReadSizeIPC: |
|
913 |
STATIC_CAST( CMmONStoreTsy*, mmObject )-> |
|
914 |
InternalRetrieveONListReadSizeL( |
|
915 |
aResult, aDataPackage ); |
|
916 |
break; |
|
917 |
case EMmTsyONStoreWriteSizeIPC: |
|
918 |
STATIC_CAST( CMmONStoreTsy*, mmObject )-> |
|
919 |
InternalStoreAllGetSizeL( aResult, aDataPackage ); |
|
920 |
break; |
|
921 |
case EMmTsyONStoreWriteEntryIPC: |
|
922 |
STATIC_CAST( CMmONStoreTsy*, mmObject )-> |
|
923 |
InternalStoreAllWriteEntryL( aResult ); |
|
924 |
break; |
|
925 |
case EPacketAttach: |
|
926 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
927 |
ActivePacketServiceExtension()->CompleteAttach( |
|
928 |
aResult ); |
|
929 |
break; |
|
930 |
case EPacketDetach: |
|
931 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
932 |
ActivePacketServiceExtension()->CompleteDetachL( |
|
933 |
aResult ); |
|
934 |
break; |
|
935 |
case EPacketGetNtwkRegStatus: |
|
936 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
937 |
ActivePacketServiceExtension()-> |
|
938 |
CompleteGetNtwkRegStatus( aDataPackage, aResult ); |
|
939 |
break; |
|
940 |
||
941 |
case ECustomSetAlwaysOnMode: |
|
942 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
943 |
CompleteSetAlwaysOn( aResult ); |
|
944 |
break; |
|
945 |
case EPacketSetAttachMode: |
|
946 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
947 |
ActivePacketServiceExtension()->CompleteSetAttachMode( |
|
948 |
aResult ); |
|
949 |
break; |
|
950 |
case EPacketRejectActivationRequest: |
|
951 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
952 |
CompleteRejectActivationRequest(); |
|
953 |
break; |
|
954 |
case EPacketGetAttachMode: |
|
955 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
956 |
ActivePacketServiceExtension()->CompleteGetAttachMode( |
|
957 |
aDataPackage, aResult ); |
|
958 |
break; |
|
959 |
case EPacketSetDefaultContextParams: |
|
960 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
961 |
ActivePacketServiceExtension()-> |
|
962 |
CompleteSetDefaultContextParams( aResult ); |
|
963 |
break; |
|
964 |
case EPacketNotifyContextAdded: |
|
965 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
966 |
CompleteNotifyContextAdded( aDataPackage); |
|
967 |
break; |
|
968 |
case EPacketNotifyStatusChange: |
|
969 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
970 |
CompletePacketStatusChanged( aDataPackage, aResult ); |
|
971 |
break; |
|
972 |
case EPacketNotifyDynamicCapsChange: |
|
973 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
974 |
ActivePacketServiceExtension()-> |
|
975 |
CompleteDynamicCapsChange( aDataPackage ); |
|
976 |
break; |
|
977 |
case EPacketNotifyTransferCapsIPC: |
|
978 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
979 |
ActivePacketServiceExtension()-> |
|
980 |
CompleteTransferCapsChange( aDataPackage ); |
|
981 |
break; |
|
982 |
case EPacketNotifyMSClassChange: |
|
983 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
984 |
CompleteNotifyMSClassChange( aDataPackage ); |
|
985 |
break; |
|
986 |
case EPacketSetPrefBearer: |
|
987 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
988 |
ActivePacketServiceExtension()-> |
|
989 |
CompleteSetPreferredBearer( aResult ); |
|
990 |
break; |
|
991 |
case EPacketNotifyChangeOfNtwkRegStatus: |
|
992 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
993 |
CompleteNotifyChangeOfNtwkRegStatus( aDataPackage, aResult ); |
|
994 |
break; |
|
995 |
case EMmTsyNotifyEGprsInfoChangeIPC: |
|
996 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
997 |
CompleteNotifyEGprsInfoChange( aDataPackage ); |
|
998 |
break; |
|
999 |
case EPacketNotifyAttachModeChange: |
|
1000 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
1001 |
PreferredBearerChanged( aDataPackage ); |
|
1002 |
break; |
|
1003 |
case EPacketNotifyContextActivationRequested: |
|
1004 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
1005 |
CompleteNotifyContextActivationRequested( |
|
1006 |
aDataPackage ); |
|
1007 |
break; |
|
1008 |
case EPacketNotifyMbmsNetworkServiceStatusChange: |
|
1009 |
static_cast<CMmPacketServiceTsy*>(mmObject)-> |
|
1010 |
CompleteNotifyMbmsNetworkServiceStatusChange(aDataPackage, aResult); |
|
1011 |
break; |
|
1012 |
case EPacketNotifyMbmsServiceAvailabilityChange: |
|
1013 |
static_cast<CMmPacketServiceTsy*>(mmObject)-> |
|
1014 |
CompleteNotifyMbmsServiceAvailabilityChangeL(aDataPackage, aResult); |
|
1015 |
break; |
|
1016 |
case EPacketGetMbmsNetworkServiceStatus: |
|
1017 |
static_cast<CMmPacketServiceTsy*>(mmObject)-> |
|
1018 |
CompleteGetMbmsNetworkServiceStatus(aDataPackage, aResult); |
|
1019 |
break; |
|
1020 |
case EPacketGetStaticCaps: |
|
1021 |
static_cast<CMmPacketServiceTsy*>(mmObject)-> |
|
1022 |
ActivePacketServiceExtension()->CompleteGetStaticCaps(aDataPackage, aResult); |
|
1023 |
break; |
|
1024 |
case EPacketEnumerateMbmsMonitorServiceList: |
|
1025 |
{ |
|
1026 |
if (KErrNone == aResult) |
|
1027 |
{ |
|
1028 |
TInt maxMonitorValue; |
|
1029 |
aDataPackage->UnPackData( maxMonitorValue ); |
|
1030 |
static_cast<CMmPacketServiceTsy*>(mmObject)->CompleteMaxMonitoredServicesChange( maxMonitorValue ); |
|
1031 |
} |
|
1032 |
} |
|
1033 |
break; |
|
1034 |
case EPacketUpdateMbmsMonitorServiceList: |
|
1035 |
static_cast<CMmPacketServiceTsy*> ( mmObject ) |
|
1036 |
->CompleteUpdateMbmsMonitorServiceList( aDataPackage, |
|
1037 |
aResult ); |
|
1038 |
break; |
|
1039 |
case EPacketContextInitialiseContext: |
|
1040 |
{ |
|
1041 |
TInfoName* contextName = NULL; |
|
1042 |
#ifdef USING_CTSY_DISPATCHER |
|
1043 |
TDesC* channelId = NULL; |
|
1044 |
aDataPackage->UnPackData(&contextName, &channelId); |
|
1045 |
__ASSERT_DEBUG(contextName,User::Invariant()); |
|
1046 |
__ASSERT_DEBUG(channelId,User::Invariant()); |
|
1047 |
#else |
|
1048 |
aDataPackage->UnPackData( &contextName); |
|
1049 |
#endif //USING_CTSY_DISPATCHER |
|
1050 |
||
1051 |
CMmPacketServiceTsy* serviceTsy = static_cast<CMmPacketServiceTsy*> (mmObject); |
|
1052 |
||
1053 |
CMmPacketContextTsy* mmPacketContextTsy = |
|
1054 |
serviceTsy->ContextTsy( *contextName ); |
|
1055 |
||
1056 |
if( NULL != mmPacketContextTsy && |
|
1057 |
mmPacketContextTsy->ContextType( ) == |
|
1058 |
CMmPacketContextTsy::EContextTypePacketContext ) |
|
1059 |
{ |
|
1060 |
CMmPacketContextGsmWcdmaExt* mmPacketContextExt = |
|
1061 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1062 |
if( NULL != mmPacketContextExt ) |
|
1063 |
{ |
|
1064 |
#ifdef USING_CTSY_DISPATCHER |
|
1065 |
mmPacketContextExt->CompleteInitialiseContext(*channelId, aResult); |
|
1066 |
#else |
|
1067 |
// The initialise context API will return the context name as the channelId. |
|
1068 |
mmPacketContextExt->CompleteInitialiseContext(aResult); |
|
1069 |
#endif //USING_CTSY_DISPATCHER |
|
1070 |
} |
|
1071 |
} |
|
1072 |
break; |
|
1073 |
} |
|
1074 |
||
1075 |
case ECtsyPacketMbmsInitialiseContextComp: |
|
1076 |
{ |
|
1077 |
TInfoName* contextName = NULL; |
|
1078 |
RPacketContext::TDataChannelV2* dataChannelV2 = NULL; |
|
1079 |
aDataPackage->UnPackData( &contextName, &dataChannelV2 ); |
|
1080 |
CMmPacketServiceTsy* serviceTsy = static_cast<CMmPacketServiceTsy*> (mmObject); |
|
1081 |
||
1082 |
CMmPacketContextTsy* mmPacketContextTsy = serviceTsy->ContextTsy( *contextName ); |
|
1083 |
||
1084 |
CMmMBMSContextTsy* context = static_cast<CMmMBMSContextTsy*> ( mmPacketContextTsy ); |
|
1085 |
||
1086 |
if( NULL != context ) |
|
1087 |
{ |
|
1088 |
context->CompleteInitialiseContext( aResult, dataChannelV2 ); |
|
1089 |
} |
|
1090 |
break; |
|
1091 |
} |
|
1092 |
||
1093 |
case EPacketQoSSetProfileParams: |
|
1094 |
{ |
|
1095 |
TInfoName mmPacketContextName; |
|
1096 |
aDataPackage->UnPackData( mmPacketContextName ); |
|
1097 |
||
1098 |
CMmPacketQoSTsy* mmPacketQosTsy = STATIC_CAST( |
|
1099 |
CMmPacketServiceTsy*, mmObject )->QosTsy( |
|
1100 |
mmPacketContextName ); |
|
1101 |
||
1102 |
if ( NULL != mmPacketQosTsy ) |
|
1103 |
{ |
|
1104 |
mmPacketQosTsy-> |
|
1105 |
CompleteSetProfileParameters( aResult ); |
|
1106 |
} |
|
1107 |
break; |
|
1108 |
} |
|
1109 |
case EPacketQoSNotifyProfileChanged: |
|
1110 |
{ |
|
1111 |
TInfoName mmPacketContextName; |
|
1112 |
||
1113 |
aDataPackage->UnPackData( mmPacketContextName ); |
|
1114 |
||
1115 |
CMmPacketQoSTsy* mmPacketQosTsy = STATIC_CAST( |
|
1116 |
CMmPacketServiceTsy*, mmObject )->QosTsy( |
|
1117 |
mmPacketContextName ); |
|
1118 |
||
1119 |
if ( NULL != mmPacketQosTsy ) |
|
1120 |
{ |
|
1121 |
mmPacketQosTsy->PacketQoSGsmWcdmaExt()-> |
|
1122 |
CompleteNotifyProfileChanged( aDataPackage ); |
|
1123 |
} |
|
1124 |
break; |
|
1125 |
} |
|
1126 |
case EPacketNotifyReleaseModeChange: |
|
1127 |
STATIC_CAST( CMmPacketServiceTsy*, mmObject )-> |
|
1128 |
CompleteNetworkModeChange( aDataPackage ); |
|
1129 |
break; |
|
1130 |
case EPacketContextSetConfig: |
|
1131 |
{ |
|
1132 |
TInfoName* contextName = NULL; |
|
1133 |
aDataPackage->UnPackData( &contextName ); |
|
1134 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1135 |
CMmPacketServiceTsy*, mmObject )-> |
|
1136 |
ContextTsy( *contextName ); |
|
1137 |
||
1138 |
if( NULL != mmPacketContextTsy && |
|
1139 |
mmPacketContextTsy->ContextType( ) == |
|
1140 |
CMmPacketContextTsy::EContextTypePacketContext ) |
|
1141 |
{ |
|
1142 |
if( NULL != mmPacketContextTsy ) |
|
1143 |
{ |
|
1144 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1145 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1146 |
||
1147 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1148 |
{ |
|
1149 |
mmPacketContextGsmWcdma-> |
|
1150 |
CompleteSetConfig( aResult); |
|
1151 |
} |
|
1152 |
} |
|
1153 |
} |
|
1154 |
else |
|
1155 |
{ |
|
1156 |
CMmMBMSContextTsy* context = static_cast<CMmMBMSContextTsy*> ( mmPacketContextTsy ); |
|
1157 |
if( NULL != context ) |
|
1158 |
{ |
|
1159 |
context->CompleteSetConfig( |
|
1160 |
aResult ); |
|
1161 |
} |
|
1162 |
} |
|
1163 |
break; |
|
1164 |
} |
|
1165 |
case EPacketEnumerateMbmsActiveServiceList: |
|
1166 |
{ |
|
1167 |
static_cast<CMmPacketServiceTsy*> ( mmObject )-> |
|
1168 |
CompleteEnumerateMbmsActiveServiceList( |
|
1169 |
aDataPackage, aResult ); |
|
1170 |
break; |
|
1171 |
} |
|
1172 |
||
1173 |
case EPacketContextUpdateMbmsSessionList: |
|
1174 |
{ |
|
1175 |
TInfoName* contextName = NULL; |
|
1176 |
aDataPackage->UnPackData( &contextName ); |
|
1177 |
||
1178 |
CMmPacketContextTsy* mmPacketContextTsy = static_cast<CMmPacketServiceTsy*> ( mmObject )-> |
|
1179 |
ContextTsy( *contextName ); |
|
1180 |
||
1181 |
if( NULL != mmPacketContextTsy && |
|
1182 |
mmPacketContextTsy->ContextType( ) == |
|
1183 |
CMmPacketContextTsy::EContextTypeMBMS ) |
|
1184 |
{ |
|
1185 |
static_cast<CMmMBMSContextTsy*> |
|
1186 |
( mmPacketContextTsy )->CompleteUpdateMbmsSessionList( aResult ); |
|
1187 |
} |
|
1188 |
break; |
|
1189 |
} |
|
1190 |
case EPacketContextDelete: |
|
1191 |
{ |
|
1192 |
TInfoName* contextName = NULL; |
|
1193 |
aDataPackage->UnPackData( &contextName ); |
|
1194 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1195 |
CMmPacketServiceTsy*, mmObject )-> |
|
1196 |
ContextTsy( *contextName ); |
|
1197 |
||
1198 |
if( NULL != mmPacketContextTsy && |
|
1199 |
mmPacketContextTsy->ContextType( ) == |
|
1200 |
CMmPacketContextTsy::EContextTypePacketContext ) |
|
1201 |
{ |
|
1202 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1203 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1204 |
||
1205 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1206 |
{ |
|
1207 |
mmPacketContextGsmWcdma->CompleteDelete( aResult ); |
|
1208 |
} |
|
1209 |
} |
|
1210 |
else |
|
1211 |
{ |
|
1212 |
CMmMBMSContextTsy* context = static_cast< |
|
1213 |
CMmMBMSContextTsy*>( mmPacketContextTsy ); |
|
1214 |
if( NULL != context ) |
|
1215 |
{ |
|
1216 |
context->CompleteDelete( |
|
1217 |
aResult ); |
|
1218 |
} |
|
1219 |
} |
|
1220 |
break; |
|
1221 |
} |
|
1222 |
case EPacketContextNotifyDataTransferred: |
|
1223 |
{ |
|
1224 |
TInfoName* contextName = NULL; |
|
1225 |
RPacketContext::TDataVolume* dataVolume; |
|
1226 |
aDataPackage->UnPackData( &contextName, &dataVolume ); |
|
1227 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1228 |
CMmPacketServiceTsy*, mmObject )-> |
|
1229 |
ContextTsy( *contextName ); |
|
1230 |
if( NULL == mmPacketContextTsy && |
|
1231 |
( 0 == ( *contextName ).Compare( KStringExternal ) || |
|
1232 |
0 == ( *contextName ).Compare( KStringExternal2 ) ) ) |
|
1233 |
{ |
|
1234 |
mmPacketContextTsy = STATIC_CAST( |
|
1235 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1236 |
*contextName ); |
|
1237 |
} |
|
1238 |
if( NULL != mmPacketContextTsy ) |
|
1239 |
{ |
|
1240 |
mmPacketContextTsy-> |
|
1241 |
SetDataVolume( aResult, *dataVolume ); |
|
1242 |
} |
|
1243 |
break; |
|
1244 |
} |
|
1245 |
case EPacketContextActivate: |
|
1246 |
{ |
|
1247 |
TInfoName* contextName = NULL; |
|
1248 |
aDataPackage->UnPackData( &contextName); |
|
1249 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1250 |
CMmPacketServiceTsy*, mmObject )-> |
|
1251 |
ContextTsy( *contextName ); |
|
1252 |
||
1253 |
if( NULL == mmPacketContextTsy && |
|
1254 |
( 0 == (*contextName).Compare(KStringExternal) || |
|
1255 |
0 == (*contextName).Compare(KStringExternal2) ) ) |
|
1256 |
{ |
|
1257 |
mmPacketContextTsy = STATIC_CAST( |
|
1258 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1259 |
*contextName ); |
|
1260 |
} |
|
1261 |
if( (mmPacketContextTsy != NULL) && (mmPacketContextTsy->ContextType( ) == |
|
1262 |
CMmPacketContextTsy::EContextTypePacketContext )) |
|
1263 |
{ |
|
1264 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1265 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1266 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1267 |
{ |
|
1268 |
mmPacketContextGsmWcdma->CompleteActivate(aDataPackage, aResult ); |
|
1269 |
} |
|
1270 |
} |
|
1271 |
else if( (mmPacketContextTsy != NULL) && ( mmPacketContextTsy->ContextType( ) == |
|
1272 |
CMmPacketContextTsy::EContextTypeMBMS )) |
|
1273 |
{ |
|
1274 |
CMmMBMSContextTsy* mbmsContext = static_cast< |
|
1275 |
CMmMBMSContextTsy*>( mmPacketContextTsy ); |
|
1276 |
mbmsContext->CompleteActivate( aResult ); |
|
1277 |
} |
|
1278 |
break; |
|
1279 |
} |
|
1280 |
case ECtsyPacketMbmsContextNotifyConfigChanged: |
|
1281 |
{ |
|
1282 |
TInfoName* contextName = NULL; |
|
1283 |
aDataPackage->UnPackData( &contextName ); |
|
1284 |
||
1285 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1286 |
CMmPacketServiceTsy*, mmObject )-> |
|
1287 |
ContextTsy( *contextName ); |
|
1288 |
if( (mmPacketContextTsy != NULL) && ( mmPacketContextTsy->ContextType( ) == |
|
1289 |
CMmPacketContextTsy::EContextTypeMBMS ) ) |
|
1290 |
{ |
|
1291 |
CMmMBMSContextTsy* mbmsContext = static_cast<CMmMBMSContextTsy*>( mmPacketContextTsy ); |
|
1292 |
mbmsContext->CompleteNotifyConfigChanged(aDataPackage,aResult); |
|
1293 |
} |
|
1294 |
||
1295 |
break; |
|
1296 |
} |
|
1297 |
||
1298 |
case EPacketContextNotifyConfigChanged: |
|
1299 |
{ |
|
1300 |
TInfoName* contextName = NULL; |
|
1301 |
aDataPackage->UnPackData( &contextName ); |
|
1302 |
||
1303 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1304 |
CMmPacketServiceTsy*, mmObject )-> |
|
1305 |
ContextTsy( *contextName ); |
|
1306 |
if( NULL == mmPacketContextTsy ) |
|
1307 |
{ |
|
1308 |
mmPacketContextTsy = STATIC_CAST( |
|
1309 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1310 |
*contextName ); |
|
1311 |
} |
|
1312 |
if( ( NULL != mmPacketContextTsy ) &&(mmPacketContextTsy->ContextType() == |
|
1313 |
CMmPacketContextTsy::EContextTypePacketContext )) |
|
1314 |
{ |
|
1315 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1316 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1317 |
{ |
|
1318 |
mmPacketContextGsmWcdma->CompleteActivatePhase2( |
|
1319 |
aDataPackage, aResult ); |
|
1320 |
} |
|
1321 |
} |
|
1322 |
break; |
|
1323 |
} |
|
1324 |
case EPacketContextNotifyConnectionSpeedChange: |
|
1325 |
{ |
|
1326 |
TInfoName* contextName = NULL; |
|
1327 |
TInt* connectionSpeed = NULL; |
|
1328 |
aDataPackage->UnPackData( &contextName, &connectionSpeed ); |
|
1329 |
||
1330 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1331 |
CMmPacketServiceTsy*, mmObject )-> |
|
1332 |
ContextTsy( *contextName ); |
|
1333 |
||
1334 |
if( NULL == mmPacketContextTsy ) |
|
1335 |
{ |
|
1336 |
mmPacketContextTsy = STATIC_CAST( |
|
1337 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1338 |
*contextName ); |
|
1339 |
} |
|
1340 |
if( NULL != mmPacketContextTsy ) |
|
1341 |
{ |
|
1342 |
mmPacketContextTsy-> |
|
1343 |
CompleteNotifyConnectionSpeedChange( |
|
1344 |
*connectionSpeed ); |
|
1345 |
} |
|
1346 |
break; |
|
1347 |
} |
|
1348 |
case EPacketContextNotifyStatusChange: |
|
1349 |
{ |
|
1350 |
TInfoName* contextName = NULL; |
|
1351 |
aDataPackage->UnPackData( &contextName ); |
|
1352 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1353 |
CMmPacketServiceTsy*, mmObject )-> |
|
1354 |
ContextTsy( *contextName ); |
|
1355 |
||
1356 |
if( NULL == mmPacketContextTsy && |
|
1357 |
( 0 == ( *contextName ).Compare( KStringExternal ) || |
|
1358 |
0 == ( *contextName ).Compare( KStringExternal2 ) ) ) |
|
1359 |
{ |
|
1360 |
mmPacketContextTsy = STATIC_CAST( |
|
1361 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1362 |
*contextName ); |
|
1363 |
} |
|
1364 |
||
1365 |
if( NULL != mmPacketContextTsy ) |
|
1366 |
{ |
|
1367 |
// pdp context |
|
1368 |
if( mmPacketContextTsy->ContextType( ) == |
|
1369 |
CMmPacketContextTsy::EContextTypePacketContext ) |
|
1370 |
{ |
|
1371 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1372 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1373 |
||
1374 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1375 |
{ |
|
1376 |
mmPacketContextGsmWcdma->CompleteNotifyStatusChange( |
|
1377 |
aDataPackage, aResult ); |
|
1378 |
} |
|
1379 |
} |
|
1380 |
// mbms context |
|
1381 |
else if( (mmPacketContextTsy != NULL) && (mmPacketContextTsy->ContextType( ) == |
|
1382 |
CMmPacketContextTsy::EContextTypeMBMS )) |
|
1383 |
{ |
|
1384 |
CMmMBMSContextTsy* mbmsContext = static_cast< |
|
1385 |
CMmMBMSContextTsy*>( mmPacketContextTsy ); |
|
1386 |
mbmsContext->CompleteNotifyStatusChange( |
|
1387 |
aDataPackage, aResult ); |
|
1388 |
} |
|
1389 |
} |
|
1390 |
break; |
|
1391 |
} |
|
1392 |
case EPacketContextDeactivate: |
|
1393 |
{ |
|
1394 |
TInfoName* contextName = NULL; |
|
1395 |
||
1396 |
// only packed for MBMS in a particular fail scenario |
|
1397 |
RPacketMbmsContext::CMbmsSession* session = NULL; |
|
1398 |
||
1399 |
if(aResult == KErrMbmsImpreciseServiceEntries) |
|
1400 |
{ |
|
1401 |
// definitely an MBMS session |
|
1402 |
aDataPackage->UnPackData( &contextName, &session ); |
|
1403 |
} |
|
1404 |
else |
|
1405 |
{ |
|
1406 |
aDataPackage->UnPackData( &contextName ); |
|
1407 |
} |
|
1408 |
||
1409 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1410 |
CMmPacketServiceTsy*, mmObject )-> |
|
1411 |
ContextTsy( *contextName ); |
|
1412 |
||
1413 |
if( NULL == mmPacketContextTsy ) |
|
1414 |
{ |
|
1415 |
mmPacketContextTsy = STATIC_CAST( |
|
1416 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1417 |
*contextName ); |
|
1418 |
} |
|
1419 |
if( (mmPacketContextTsy != NULL) &&(mmPacketContextTsy->ContextType() == |
|
1420 |
CMmPacketContextTsy::EContextTypePacketContext )) |
|
1421 |
{ |
|
1422 |
||
1423 |
if( NULL != mmPacketContextTsy ) |
|
1424 |
{ |
|
1425 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1426 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1427 |
||
1428 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1429 |
{ |
|
1430 |
mmPacketContextGsmWcdma-> |
|
1431 |
CompleteDeactivate(aResult); |
|
1432 |
} |
|
1433 |
} |
|
1434 |
} |
|
1435 |
else if((mmPacketContextTsy != NULL) && (mmPacketContextTsy->ContextType( ) == |
|
1436 |
CMmPacketContextTsy::EContextTypeMBMS )) |
|
1437 |
{ |
|
1438 |
CMmMBMSContextTsy* mbmsContext = static_cast< |
|
1439 |
CMmMBMSContextTsy*>( mmPacketContextTsy ); |
|
1440 |
mbmsContext->CompleteDeactivate(aDataPackage, aResult); |
|
1441 |
} |
|
1442 |
break; |
|
1443 |
} |
|
1444 |
case EPacketContextGetDataVolumeTransferred: |
|
1445 |
{ |
|
1446 |
TInfoName* contextName = NULL; |
|
1447 |
aDataPackage->UnPackData( &contextName ); |
|
1448 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1449 |
CMmPacketServiceTsy*, mmObject )-> |
|
1450 |
ContextTsy( *contextName ); |
|
1451 |
||
1452 |
if( NULL == mmPacketContextTsy ) |
|
1453 |
{ |
|
1454 |
mmPacketContextTsy = STATIC_CAST( |
|
1455 |
CMmPacketServiceTsy*, mmObject )->DialUpContext( |
|
1456 |
*contextName ); |
|
1457 |
} |
|
1458 |
||
1459 |
if( NULL != mmPacketContextTsy ) |
|
1460 |
{ |
|
1461 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1462 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1463 |
||
1464 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1465 |
{ |
|
1466 |
mmPacketContextGsmWcdma-> |
|
1467 |
CompleteGetDataVolumeTransferred( aDataPackage, |
|
1468 |
aResult ); |
|
1469 |
} |
|
1470 |
} |
|
1471 |
break; |
|
1472 |
} |
|
1473 |
case EPacketContextModifyActiveContext: |
|
1474 |
{ |
|
1475 |
TInfoName* contextName = NULL; |
|
1476 |
aDataPackage->UnPackData( &contextName ); |
|
1477 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1478 |
CMmPacketServiceTsy*, mmObject )-> |
|
1479 |
ContextTsy( *contextName ); |
|
1480 |
||
1481 |
if( NULL != mmPacketContextTsy ) |
|
1482 |
{ |
|
1483 |
CMmPacketContextGsmWcdmaExt* mmPacketContextGsmWcdma = |
|
1484 |
mmPacketContextTsy->PacketContextGsmWcdmaExt(); |
|
1485 |
||
1486 |
if( NULL != mmPacketContextGsmWcdma ) |
|
1487 |
{ |
|
1488 |
mmPacketContextGsmWcdma-> |
|
1489 |
CompleteModifyActiveContext( |
|
1490 |
aDataPackage, aResult ); |
|
1491 |
} |
|
1492 |
} |
|
1493 |
break; |
|
1494 |
} |
|
1495 |
#ifdef SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
1496 |
case EPacketContextNotifyConnectionInfoChange: |
|
1497 |
{ |
|
1498 |
TInfoName* contextName = NULL; |
|
1499 |
TConnectionInfoBase* infoBase = NULL; |
|
1500 |
aDataPackage->UnPackData( &contextName, &infoBase ); |
|
1501 |
||
1502 |
CMmPacketContextTsy* mmPacketContextTsy = STATIC_CAST( |
|
1503 |
CMmPacketServiceTsy*, mmObject )-> |
|
1504 |
ContextTsy( *contextName ); |
|
1505 |
||
1506 |
if( NULL != mmPacketContextTsy ) |
|
1507 |
{ |
|
1508 |
mmPacketContextTsy-> |
|
1509 |
CompleteNotifyConnectionInfoChange( infoBase ); |
|
1510 |
} |
|
1511 |
break; |
|
1512 |
} |
|
1513 |
#endif // SYMBIAN_ADAPTIVE_TCP_RECEIVE_WINDOW |
|
1514 |
||
1515 |
//USSD |
|
78
d4cfc65049ba
Fixed Send Message Default Handler routines according to Dejana's request.
ivan.fildichev@opencode.com
parents:
77
diff
changeset
|
1516 |
case EMobileUssdMessagingSendMessageDefaultHandler: |
d4cfc65049ba
Fixed Send Message Default Handler routines according to Dejana's request.
ivan.fildichev@opencode.com
parents:
77
diff
changeset
|
1517 |
case EMobileUssdMessagingSendMessage: |
24 | 1518 |
static_cast<CMmUssdTsy*>( mmObject )-> |
1519 |
CompleteSendMessage( aResult ); |
|
78
d4cfc65049ba
Fixed Send Message Default Handler routines according to Dejana's request.
ivan.fildichev@opencode.com
parents:
77
diff
changeset
|
1520 |
break; |
24 | 1521 |
case EMobileUssdMessagingSendMessageNoFdnCheck: |
1522 |
static_cast<CMmUssdTsy*>( mmObject )-> |
|
1523 |
CompleteSendMessageNoFdnCheck( aResult ); |
|
1524 |
break; |
|
1525 |
case EMobileUssdMessagingReceiveMessage: |
|
1526 |
static_cast<CMmUssdTsy*>( mmObject )-> |
|
1527 |
CompleteReceiveMessage( aResult, aDataPackage ); |
|
1528 |
break; |
|
1529 |
case EMobileUssdMessagingSendRelease: |
|
1530 |
static_cast<CMmUssdTsy*>( mmObject )-> |
|
1531 |
CompleteSendRelease( aResult, aDataPackage ); |
|
1532 |
break; |
|
1533 |
case EMobileUssdMessagingNotifyNetworkRelease: |
|
1534 |
static_cast<CMmUssdTsy*>( mmObject )-> |
|
1535 |
CompleteNotifyNetworkRelease( aResult, aDataPackage ); |
|
1536 |
break; |
|
1537 |
case EMmTsyGsmBroadcastNotifyMessageReceived: |
|
1538 |
static_cast<CMmBroadcastTsy*>( mmObject )-> |
|
1539 |
CompleteReceiveMessageGsmCbs( aResult, aDataPackage ); |
|
1540 |
break; |
|
1541 |
case EMmTsyWcdmaBroadcastNotifyMessageReceived: |
|
1542 |
static_cast<CMmBroadcastTsy*>( mmObject )-> |
|
1543 |
CompleteReceiveMessageWcdmaCbs( aResult, aDataPackage ); |
|
1544 |
break; |
|
1545 |
case EMobileBroadcastMessagingReceiveMessage: |
|
1546 |
static_cast<CMmBroadcastTsy*>( mmObject )-> |
|
1547 |
InternalCompleteCbRoutingRequest( aResult ); |
|
1548 |
break; |
|
1549 |
case EMobileBroadcastMessagingReceiveMessageCancel: |
|
1550 |
static_cast<CMmBroadcastTsy*>( mmObject )-> |
|
1551 |
CompleteReceiveMessageCancel( aResult ); |
|
1552 |
break; |
|
1553 |
case EMobileBroadcastMessagingSetFilterSetting: |
|
1554 |
static_cast<CMmBroadcastTsy*>( mmObject )-> |
|
1555 |
CompleteSetFilterSetting( aResult ); |
|
1556 |
break; |
|
1557 |
case EMobileSmsMessagingGetMessageStoreInfo: |
|
1558 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1559 |
CompleteGetMessageStoreInfo( aResult, aDataPackage ); |
|
1560 |
break; |
|
1561 |
case EMmTsyActivateSmsRouting: |
|
1562 |
case EMmTsyDeactivateSmsRouting: |
|
1563 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1564 |
CompleteActivateSmsRouting( aResult, aDataPackage ); |
|
1565 |
break; |
|
1566 |
case EMobileSmsMessagingReceiveMessage: |
|
1567 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1568 |
CompleteReceiveMessage( aResult, aDataPackage ); |
|
1569 |
break; |
|
1570 |
case EMobileSmsMessagingSendMessage: |
|
1571 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1572 |
CompleteSendMessage( aResult, aDataPackage ); |
|
1573 |
break; |
|
1574 |
case EMobileSmsMessagingSendMessageNoFdnCheck: |
|
1575 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1576 |
CompleteSendMessageNoFdnCheck( aResult, aDataPackage ); |
|
1577 |
break; |
|
1578 |
case EMmTsySmsSendSatMessage: |
|
1579 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1580 |
CompleteSendSatMessage( aResult ); |
|
1581 |
break; |
|
1582 |
case EMobileSmsMessagingResumeSmsReception: |
|
1583 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1584 |
CompleteResumeSmsReception( aResult ); |
|
1585 |
break; |
|
1586 |
case EMobileSmsMessagingGetSmspListPhase1: |
|
1587 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1588 |
CompleteReadAllSmspPhase1( aResult, aDataPackage ); |
|
1589 |
break; |
|
1590 |
case EMobileSmsMessagingStoreSmspList: |
|
1591 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1592 |
InternalStoreSmspList( aResult ); |
|
1593 |
break; |
|
1594 |
case EMobileSmsMessagingAckSmsStored: |
|
1595 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1596 |
CompleteAckSmsStored( aResult ); |
|
1597 |
break; |
|
1598 |
case EMobileSmsMessagingNackSmsStored: |
|
1599 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1600 |
CompleteNackSmsStored( aResult ); |
|
1601 |
break; |
|
1602 |
case EMobileSmsMessagingSetMoSmsBearer: |
|
1603 |
static_cast<CMmSmsTsy*>( mmObject )-> |
|
1604 |
CompleteSetMoSmsBearer( aResult ); |
|
1605 |
break; |
|
1606 |
case EMobilePhoneStoreGetInfo: |
|
1607 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1608 |
CompleteGetInfo( aResult, aDataPackage ); |
|
1609 |
break; |
|
1610 |
case EMobilePhoneStoreDelete: |
|
1611 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1612 |
CompleteDeleteSms( aResult ); |
|
1613 |
break; |
|
1614 |
case EMobilePhoneStoreDeleteAll: |
|
1615 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1616 |
CompleteDeleteAllSms( aResult ); |
|
1617 |
break; |
|
1618 |
case EMobilePhoneStoreRead: |
|
1619 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1620 |
CompleteReadSms( aResult, aDataPackage ); |
|
1621 |
break; |
|
1622 |
case EMobilePhoneStoreWrite: |
|
1623 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1624 |
CompleteWriteSms( aResult, aDataPackage ); |
|
1625 |
break; |
|
1626 |
case EMobilePhoneStoreReadAllPhase1: |
|
1627 |
{ |
|
1628 |
if ( iMmPhone->GetSmsTsy()->GetSmsStorageTsy() ) |
|
1629 |
{ |
|
1630 |
static_cast<CMmSmsStorageTsy*>( mmObject )-> |
|
1631 |
RetrieveSmsListReadSmsL( aResult, aDataPackage ); |
|
1632 |
} |
|
1633 |
break; |
|
1634 |
} |
|
1635 |
||
1636 |
// Supplementary Services functionality |
|
1637 |
// Call Forwarding |
|
1638 |
case EMobilePhoneGetCallForwardingStatusPhase1: |
|
1639 |
{ |
|
1640 |
// unpack result: a CMobilePhoneCFList |
|
1641 |
CMobilePhoneCFList* cfResults; |
|
1642 |
aDataPackage->UnPackData( &cfResults ); |
|
1643 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1644 |
CompleteGetCallForwardingStatusPhase1L( |
|
1645 |
cfResults, aResult ); |
|
1646 |
break; |
|
1647 |
} |
|
1648 |
case EMobilePhoneNotifyCallServiceCapsChange: |
|
1649 |
{ |
|
1650 |
// unpack result: a RMobilePhone::TMobilePhoneCallServiceCaps |
|
1651 |
RMobilePhone::TMobilePhoneCallServiceCaps callServiceCaps; |
|
1652 |
aDataPackage->UnPackData( callServiceCaps ); |
|
1653 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1654 |
CompleteNotifyCallServiceCapsChange( callServiceCaps ); |
|
1655 |
break; |
|
1656 |
} |
|
1657 |
case EMobilePhoneSetCallForwardingStatus: |
|
1658 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1659 |
CompleteSetCallForwardingStatus( aResult ); |
|
1660 |
break; |
|
1661 |
case EMobilePhoneNotifyCallForwardingStatusChange: |
|
1662 |
{ |
|
1663 |
// unpack result: a RMobilePhone::TMobilePhoneCFCondition |
|
1664 |
RMobilePhone::TMobilePhoneCFCondition cfCondition; |
|
1665 |
aDataPackage->UnPackData( cfCondition ); |
|
1666 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1667 |
CompleteNotifyCallForwardingStatusChange( cfCondition ); |
|
1668 |
break; |
|
1669 |
} |
|
1670 |
case EMobilePhoneNotifyCallForwardingActive: |
|
1671 |
{ |
|
1672 |
// unpack results: a RMobilePhone::TMobileService |
|
1673 |
// and a RMobilePhone::TMobilePhoneCFActive |
|
1674 |
RMobilePhone::TMobileService serviceGroup; |
|
1675 |
RMobilePhone::TMobilePhoneCFActive activeType; |
|
1676 |
aDataPackage->UnPackData( serviceGroup, activeType ); |
|
1677 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1678 |
CompleteNotifyCallForwardingActive( |
|
1679 |
serviceGroup, activeType ); |
|
1680 |
break; |
|
1681 |
} |
|
1682 |
// Call Barring |
|
1683 |
case EMobilePhoneGetBarringStatusPhase1: |
|
1684 |
{ |
|
1685 |
// unpack result: a CMobilePhoneCBList |
|
1686 |
CMobilePhoneCBList* cbResults; |
|
1687 |
aDataPackage->UnPackData( &cbResults ); |
|
1688 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1689 |
CompleteGetCallBarringStatusPhase1L( cbResults, aResult ); |
|
1690 |
break; |
|
1691 |
} |
|
1692 |
case EMobilePhoneSetCallBarringStatus: |
|
1693 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1694 |
CompleteSetCallBarringStatus( aResult ); |
|
1695 |
break; |
|
1696 |
case EMobilePhoneNotifyCallBarringStatusChange: |
|
1697 |
{ |
|
1698 |
// unpack result: a RMobilePhone::TMobilePhoneCBCondition |
|
1699 |
RMobilePhone::TMobilePhoneCBCondition cbCondition; |
|
1700 |
aDataPackage->UnPackData( cbCondition ); |
|
1701 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1702 |
CompleteNotifyCallBarringStatusChange( cbCondition ); |
|
1703 |
break; |
|
1704 |
} |
|
1705 |
// Supplementary Services password change |
|
1706 |
case EMobilePhoneSetSSPassword: |
|
1707 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1708 |
CompleteSetSSPassword( aResult ); |
|
1709 |
break; |
|
1710 |
// Call Waiting |
|
1711 |
case EMobilePhoneGetWaitingStatusPhase1: |
|
1712 |
{ |
|
1713 |
// unpack result: a CMobilePhoneCWList |
|
1714 |
CMobilePhoneCWList* cwResults; |
|
1715 |
aDataPackage->UnPackData( &cwResults ); |
|
1716 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1717 |
CompleteGetCallWaitingStatusPhase1L( cwResults, aResult ); |
|
1718 |
break; |
|
1719 |
} |
|
1720 |
case EMobilePhoneSetCallWaitingStatus: |
|
1721 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1722 |
CompleteSetCallWaitingStatus( aResult ); |
|
1723 |
break; |
|
1724 |
case EMobilePhoneNotifyCallWaitingStatusChange: |
|
1725 |
{ |
|
1726 |
// unpack result: RMobilePhone::TMobilePhoneCWInfoEntryV1 |
|
1727 |
RMobilePhone::TMobilePhoneCWInfoEntryV1* cwStatus; |
|
1728 |
aDataPackage->UnPackData( &cwStatus ); |
|
1729 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1730 |
CompleteNotifyCallWaitingStatusChange( cwStatus ); |
|
1731 |
break; |
|
1732 |
} |
|
1733 |
// Identity EMobilePhoneGetIdentityServiceStatus |
|
1734 |
case EMobilePhoneGetIdentityServiceStatus: |
|
1735 |
{ |
|
1736 |
// if no error, then unpack result: a |
|
1737 |
// RMobilePhone::TMobilePhoneIdServiceStatus |
|
1738 |
RMobilePhone::TMobilePhoneIdServiceStatus status = |
|
1739 |
RMobilePhone::EIdServiceUnknown; |
|
1740 |
if ( KErrNone == aResult ) |
|
1741 |
{ |
|
1742 |
aDataPackage->UnPackData( status ); |
|
1743 |
} |
|
1744 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1745 |
CompleteGetIdentityServiceStatus( status, aResult ); |
|
1746 |
break; |
|
1747 |
} |
|
1748 |
// User's Access to Network Services |
|
1749 |
case EMobilePhoneSendNetworkServiceRequest: |
|
1750 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1751 |
CompleteSendNetworkServiceRequest( aResult ); |
|
1752 |
break; |
|
1753 |
case EMobilePhoneSendNetworkServiceRequestNoFdnCheck: |
|
1754 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1755 |
CompleteSendNetworkServiceRequestNoFdnCheck( aResult ); |
|
1756 |
break; |
|
1757 |
// Notify for Send Network Service Request |
|
1758 |
case ECtsyPhoneSendNetworkServiceRequestInd: |
|
1759 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1760 |
CompleteSendNetworkServiceRequestInd( aResult,aDataPackage); |
|
1761 |
break; |
|
1762 |
// Notify for All Send Network Service Request |
|
1763 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
|
1764 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1765 |
CompleteNotifyAllSendNetworkServiceRequest( aResult, |
|
1766 |
aDataPackage ); |
|
1767 |
break; |
|
1768 |
// Get ICC message waiting indicators |
|
1769 |
case EMobilePhoneGetIccMessageWaitingIndicators: |
|
1770 |
{ |
|
1771 |
// packed param: RMobilePhone::TMobilePhoneMessageWaitingV1 |
|
1772 |
RMobilePhone::TMobilePhoneMessageWaitingV1* mmWaiting; |
|
1773 |
aDataPackage->UnPackData( &mmWaiting ); |
|
1774 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1775 |
CompleteGetIccMessageWaitingIndicators( mmWaiting, |
|
1776 |
aResult ); |
|
1777 |
} |
|
1778 |
break; |
|
1779 |
||
1780 |
// Set ICC message waiting indicators |
|
1781 |
case EMobilePhoneSetIccMessageWaitingIndicators: |
|
1782 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1783 |
CompleteSetIccMessageWaitingIndicators( aResult ); |
|
1784 |
break; |
|
1785 |
||
1786 |
// Notify ICC message waiting indicators change |
|
1787 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange: |
|
1788 |
// packed param: RMobilePhone::TMobilePhoneMessageWaitingV1 |
|
1789 |
RMobilePhone::TMobilePhoneMessageWaitingV1* mmWaiting; |
|
1790 |
aDataPackage->UnPackData( &mmWaiting ); |
|
1791 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSupplServTsy()-> |
|
1792 |
CompleteNotifyIccMessageWaitingIndicatorChange( |
|
1793 |
mmWaiting, aResult ); |
|
1794 |
break; |
|
1795 |
||
1796 |
// case EMobilePhoneGetCallForwardingStatusPhase2: no DOS call required |
|
1797 |
// case EMobilePhoneGetCallForwardingStatusCancel: no DOS call required |
|
1798 |
// case EMobilePhoneSetCallForwardingStatusCancel: no DOS call required |
|
1799 |
// case EMobilePhoneNotifyCallForwardingStatusChangeCancel: no DOS call required |
|
1800 |
// case EMobilePhoneNotifyCallForwardingActiveCancel: no DOS call required |
|
1801 |
// case EMobilePhoneGetCallForwardingIndicator: not supported |
|
1802 |
// case EMobilePhoneGetCallForwardingIndicatorCancel: not supported |
|
1803 |
||
1804 |
// Custom Tsy functionality |
|
1805 |
case ECustomSsAdditionalInfoNotificationIPC: |
|
1806 |
{ |
|
1807 |
// unpack pointer to RMmCustomAPI::TSsAdditionalInfo |
|
1808 |
RMmCustomAPI::TSsAdditionalInfo* addInfo; |
|
1809 |
aDataPackage->UnPackData( addInfo ); |
|
1810 |
||
1811 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1812 |
CompleteSsAdditionalInfoNotification( addInfo, aResult ); |
|
1813 |
break; |
|
1814 |
} |
|
1815 |
case ECustomNotifySsNetworkEventIPC: |
|
1816 |
{ |
|
1817 |
// unpack result: a RMmCustomAPI::TSsTypeAndMode and |
|
1818 |
// a RMmCustomAPI::TSsInfo |
|
1819 |
RMmCustomAPI::TSsTypeAndMode ssTypeAndMode; |
|
1820 |
RMmCustomAPI::TSsInfo ssInfo; |
|
1821 |
aDataPackage->UnPackData( ssTypeAndMode, ssInfo ); |
|
1822 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1823 |
CompleteNotifySsNetworkEvent( ssTypeAndMode, ssInfo, |
|
1824 |
aResult ); |
|
1825 |
break; |
|
1826 |
} |
|
1827 |
case ECustomNotifySsRequestCompleteIPC: |
|
1828 |
{ |
|
1829 |
// unpack result: a TInt with SS status |
|
1830 |
TInt ssStatus; |
|
1831 |
aDataPackage->UnPackData( ssStatus ); |
|
1832 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1833 |
CompleteSsRequestCompleteNotification( |
|
1834 |
ssStatus, aResult ); |
|
1835 |
break; |
|
1836 |
} |
|
1837 |
case ECustomNotifyDtmfEventIPC: |
|
1838 |
{ |
|
1839 |
// unpack result: a RMmCustomAPI::TDtmfInfo |
|
1840 |
RMmCustomAPI::TDtmfInfo dtmfInfo; |
|
1841 |
aDataPackage->UnPackData( dtmfInfo ); |
|
1842 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1843 |
CompleteNotifyDtmfEvent( dtmfInfo, aResult ); |
|
1844 |
break; |
|
1845 |
} |
|
1846 |
case ECustomNotifyRauEventIPC: |
|
1847 |
{ |
|
1848 |
// unpack result |
|
1849 |
RMmCustomAPI::TRauEventStatus rauEventStatus; |
|
1850 |
aDataPackage->UnPackData( rauEventStatus ); |
|
1851 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1852 |
CompleteNotifyRauEvent( rauEventStatus, aResult ); |
|
1853 |
break; |
|
1854 |
} |
|
1855 |
case ECustomGetDiagnosticOctetsIPC: |
|
1856 |
{ |
|
1857 |
// unpack result: TInt (call ID) and TUint8 (diagnostics) |
|
1858 |
TInt callId( -1 ); |
|
1859 |
TUint8 diags; |
|
1860 |
aDataPackage->UnPackData( callId, diags ); |
|
1861 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1862 |
CompleteGetDiagnosticOctects( callId, diags ); |
|
1863 |
break; |
|
1864 |
} |
|
1865 |
case ECustomGetRemoteAlertingToneStatusIPC: |
|
1866 |
{ |
|
1867 |
// unpack result: a TBool playRemoteAlertToneLocally |
|
1868 |
TBool playRemoteAlertToneLocally; |
|
1869 |
aDataPackage->UnPackData( playRemoteAlertToneLocally ); |
|
1870 |
// not completed by Custom Tsy, but by the GSM extension |
|
1871 |
CMmCustomGsmExt* customGsmExt = |
|
1872 |
static_cast<CMmCustomGsmExt*>( |
|
1873 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1874 |
GetActiveExtensionPtr() ); |
|
1875 |
||
1876 |
if ( customGsmExt ) |
|
1877 |
{ |
|
1878 |
customGsmExt->SetLocalRemoteAlertToneRequired( |
|
1879 |
playRemoteAlertToneLocally ); |
|
1880 |
} |
|
1881 |
break; |
|
1882 |
} |
|
1883 |
case ECustomClearCallBlackListIPC: |
|
1884 |
// no packed parameters |
|
1885 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1886 |
CompleteClearCallBlackList( aResult ); |
|
1887 |
break; |
|
1888 |
case ECustomCheckEmergencyNumberIPC: |
|
1889 |
{ |
|
1890 |
// packed parameter: a ptr to TMobileTelNumber |
|
1891 |
RMmCustomAPI::TMobileTelNumber* telNumber; |
|
1892 |
aDataPackage->UnPackData( telNumber ); |
|
1893 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1894 |
CompleteCheckEmergencyNumber( telNumber, aResult ); |
|
1895 |
break; |
|
1896 |
} |
|
1897 |
case ECustomGetLifeTimeIPC: |
|
1898 |
{ |
|
1899 |
// packed parameter: a RMmCustomAPI::TLifeTimeData |
|
1900 |
RMmCustomAPI::TLifeTimeData lifeTime; |
|
1901 |
aDataPackage->UnPackData( lifeTime ); |
|
1902 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1903 |
CompleteGetLifeTime( lifeTime, aResult ); |
|
1904 |
break; |
|
1905 |
} |
|
1906 |
case ECustomTerminateCallIPC: |
|
1907 |
// no packed parameters |
|
1908 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1909 |
CompleteTerminateCall( aResult ); |
|
1910 |
break; |
|
1911 |
case ECustomGetAlsBlockedIPC: |
|
1912 |
{ |
|
1913 |
// packed parameter: TGetAlsBlockStatus (block status) |
|
1914 |
RMmCustomAPI::TGetAlsBlockStatus blockStatus; |
|
1915 |
aDataPackage->UnPackData( blockStatus ); |
|
1916 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1917 |
CompleteGetAlsBlocked( blockStatus, aResult ); |
|
1918 |
break; |
|
1919 |
} |
|
1920 |
case ECustomSetAlsBlockedIPC: |
|
1921 |
// no packed parameters |
|
1922 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1923 |
CompleteSetAlsBlocked( aResult ); |
|
1924 |
break; |
|
1925 |
case ECustomCheckAlsPpSupportIPC: |
|
1926 |
{ |
|
1927 |
// packed parameter: RMmCustomAPI::TAlsSupport |
|
1928 |
RMmCustomAPI::TAlsSupport alsSupport; |
|
1929 |
aDataPackage->UnPackData( alsSupport ); |
|
1930 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1931 |
CompleteGetAlsPpSupport( alsSupport, aResult ); |
|
1932 |
break; |
|
1933 |
} |
|
1934 |
case ECustomCheckTwoDigitDialSupportIPC: |
|
1935 |
{ |
|
1936 |
// packed parameter: RMmCustomAPI::TTwoDigitDialSupport |
|
1937 |
RMmCustomAPI::TTwoDigitDialSupport twoDigitDialSupport; |
|
1938 |
aDataPackage->UnPackData( twoDigitDialSupport ); |
|
1939 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1940 |
CompleteCheckTwoDigitDialSupport( twoDigitDialSupport, |
|
1941 |
aResult ); |
|
1942 |
break; |
|
1943 |
} |
|
1944 |
case ECustomGetCipheringInfoIPC: |
|
1945 |
{ |
|
1946 |
// packed parameter: |
|
1947 |
// TBool (ciphering indicator required/not required) |
|
1948 |
TBool indReq; |
|
1949 |
aDataPackage->UnPackData( indReq ); |
|
1950 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1951 |
CompleteGetCipheringInfo( indReq, aResult ); |
|
1952 |
break; |
|
1953 |
} |
|
1954 |
case ECustomNotifyCipheringInfoChangeIPC: |
|
1955 |
{ |
|
1956 |
// packed parameters: |
|
1957 |
// TBool (ciphering indicator required/not required) |
|
1958 |
// TBool (ciphering on/off) |
|
1959 |
TBool indReq; |
|
1960 |
TBool ciStatus; |
|
1961 |
aDataPackage->UnPackData( indReq, ciStatus ); |
|
1962 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1963 |
CompleteNotifyCipheringInfoChange( indReq, ciStatus, |
|
1964 |
aResult ); |
|
1965 |
break; |
|
1966 |
} |
|
1967 |
case ECustomNotifyNSPSStatusIPC: |
|
1968 |
{ |
|
1969 |
// packed parameter: TBool nspsIsOn |
|
1970 |
TBool nspsIsOn; |
|
1971 |
aDataPackage->UnPackData( nspsIsOn ); |
|
1972 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1973 |
CompleteNotifyNSPSStatus( nspsIsOn ); |
|
1974 |
break; |
|
1975 |
} |
|
1976 |
case ECustomNetWakeupIPC: |
|
1977 |
// no packed parameters |
|
1978 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1979 |
CompleteNetWakeup( aResult ); |
|
1980 |
break; |
|
1981 |
case ECustomGetOperatorNameIPC: |
|
1982 |
{ |
|
1983 |
// packed parameter: a RMmCustomAPI::TOperatorNameInfo |
|
1984 |
RMmCustomAPI::TOperatorNameInfo operNameInfo; |
|
1985 |
aDataPackage->UnPackData( operNameInfo ); |
|
1986 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1987 |
CompleteGetOperatorName( operNameInfo, aResult ); |
|
1988 |
break; |
|
1989 |
} |
|
1990 |
case EMobilePhoneIMSAuthenticate: |
|
1991 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
1992 |
CompleteImsAuthentication( aDataPackage, aResult ); |
|
1993 |
break; |
|
1994 |
case ECustomGetSimAuthenticationDataIPC: |
|
1995 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
1996 |
CompleteSimAuthentication( aDataPackage, aResult ); |
|
1997 |
break; |
|
1998 |
case ECustomResetNetServerIPC: |
|
1999 |
// no packed parameters |
|
2000 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2001 |
CompleteResetNetServer( aResult ); |
|
2002 |
break; |
|
2003 |
case ECustomNotifyNetworkConnectionFailureIPC: |
|
2004 |
// no packed parameters |
|
2005 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2006 |
CompleteNotifyNetworkConnectionFailure(); |
|
2007 |
break; |
|
2008 |
case ECustomGetSystemNetworkModesIPC: |
|
2009 |
{ |
|
2010 |
// packed parameters TUint32 (systemNetworkModes) |
|
2011 |
TUint32 systemNetworkModes; |
|
2012 |
aDataPackage->UnPackData( systemNetworkModes ); |
|
2013 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2014 |
CompleteGetSystemOrCurrentNetworkModes( |
|
2015 |
systemNetworkModes, aResult ); |
|
2016 |
break; |
|
2017 |
} |
|
2018 |
case ECustomSetSystemNetworkModeIPC: |
|
2019 |
// no packed parameters) |
|
2020 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2021 |
CompleteSetSystemNetworkMode( aResult ); |
|
2022 |
break; |
|
2023 |
case ECustomGetNetworkProviderNameIPC: |
|
2024 |
{ |
|
2025 |
// packed parameter: TDes* (network provider name) |
|
2026 |
TDes* name; |
|
2027 |
aDataPackage->UnPackData( name ); |
|
2028 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2029 |
CompleteGetNetworkOperatorName( name, aResult ); |
|
2030 |
break; |
|
2031 |
} |
|
2032 |
case ECustomGetCurrentSystemNetworkModesIPC: |
|
2033 |
{ |
|
2034 |
TUint32 currentNetworkModes; |
|
2035 |
aDataPackage->UnPackData( currentNetworkModes ); |
|
2036 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2037 |
CompleteGetCurrentSystemNetworkMode( |
|
2038 |
currentNetworkModes, aResult ); |
|
2039 |
break; |
|
2040 |
} |
|
2041 |
case ECustomGetBandSelectionIPC: |
|
2042 |
{ |
|
2043 |
// Packed parameters TBandSelection (systemNetworkBand). |
|
2044 |
// Initialize parameters. In otherwise compiler gives warning. |
|
2045 |
// CompleteGetSystemNetworkBand does not handle parameters if |
|
2046 |
// aResult is not KErrNone. |
|
2047 |
RMmCustomAPI::TBandSelection systemNetworkBand |
|
2048 |
= RMmCustomAPI::ENetworkBandAny; |
|
2049 |
RMmCustomAPI::TNetworkModeCaps systemNetworkMode |
|
2050 |
= RMmCustomAPI::KCapsNetworkModeDual; |
|
2051 |
if (KErrNone == aResult) |
|
2052 |
{ |
|
2053 |
aDataPackage->UnPackData( systemNetworkBand, |
|
2054 |
systemNetworkMode ); |
|
2055 |
} |
|
2056 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2057 |
CompleteGetSystemNetworkBand( |
|
2058 |
systemNetworkBand, systemNetworkMode, aResult ); |
|
2059 |
break; |
|
2060 |
} |
|
2061 |
case ECustomSetBandSelectionIPC: |
|
2062 |
// no packed parameters) |
|
2063 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2064 |
CompleteSetSystemNetworkBand( aResult ); |
|
2065 |
break; |
|
2066 |
||
2067 |
case ECustomSatRefreshCompleteNotificationIPC: |
|
2068 |
// no packed parameters |
|
2069 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2070 |
CompleteSatRefreshCompleteNotification(); |
|
2071 |
break; |
|
2072 |
case ECustomReadSimFileIPC: |
|
2073 |
{ |
|
2074 |
// packed parameter: pointer to TDesC8 (SIM data) |
|
2075 |
TDesC8* simData; |
|
2076 |
aDataPackage->UnPackData( simData ); |
|
2077 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2078 |
CompleteGetSimFileInfo( simData, aResult ); |
|
2079 |
break; |
|
2080 |
} |
|
2081 |
case ECustomSimLockActivateIPC: |
|
2082 |
{ |
|
2083 |
// no packed parameters |
|
2084 |
CMmSimLockTsy* simLockTsy = static_cast<CMmSimLockTsy*>( |
|
2085 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2086 |
GetSimLockTsyPtr() ); |
|
2087 |
simLockTsy->CompleteActivateSimLock( aResult ); |
|
2088 |
break; |
|
2089 |
} |
|
2090 |
case ECustomSimLockDeActivateIPC: |
|
2091 |
{ |
|
2092 |
// no packed parameters |
|
2093 |
CMmSimLockTsy* simLockTsy = static_cast<CMmSimLockTsy*>( |
|
2094 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2095 |
GetSimLockTsyPtr() ); |
|
2096 |
simLockTsy->CompleteDeActivateSimLock( aResult ); |
|
2097 |
break; |
|
2098 |
} |
|
2099 |
case ECustomSendAPDUReqIPC: |
|
2100 |
{ |
|
2101 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2102 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2103 |
GetWimTsyPtr() ); |
|
2104 |
wimTsy->CompleteSendAPDUReq( aDataPackage, aResult ); |
|
2105 |
break; |
|
2106 |
} |
|
2107 |
case ECustomSimWarmResetIPC: |
|
2108 |
{ |
|
2109 |
// no packed parameters |
|
2110 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2111 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2112 |
GetWimTsyPtr() ); |
|
2113 |
wimTsy->CompleteSimWarmReset( aResult ); |
|
2114 |
break; |
|
2115 |
} |
|
2116 |
case ECustomGetATRIPC: |
|
2117 |
{ |
|
2118 |
// packed parameter: TPtrC8* atr |
|
2119 |
TPtrC8* atr; |
|
2120 |
aDataPackage->UnPackData( &atr ); |
|
2121 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2122 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2123 |
GetWimTsyPtr() ); |
|
2124 |
wimTsy->CompleteGetATR( *atr, aResult ); |
|
2125 |
break; |
|
2126 |
} |
|
2127 |
case ECustomGetSimCardReaderStatusIPC: |
|
2128 |
{ |
|
2129 |
// packed parameter: TPtrC8* status |
|
2130 |
TPtrC8* status; |
|
2131 |
aDataPackage->UnPackData( &status ); |
|
2132 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2133 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2134 |
GetWimTsyPtr() ); |
|
2135 |
wimTsy->CompleteGetSimCardReaderStatus( |
|
2136 |
*status, aResult ); |
|
2137 |
break; |
|
2138 |
} |
|
2139 |
case ECustomNotifySimCardStatusIPC: |
|
2140 |
{ |
|
2141 |
// packed param: RMmCustomAPI::TSIMCardStatus returnStatus |
|
2142 |
RMmCustomAPI::TSIMCardStatus returnStatus; |
|
2143 |
aDataPackage->UnPackData( returnStatus ); |
|
2144 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2145 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2146 |
GetWimTsyPtr() ); |
|
2147 |
wimTsy->CompleteNotifySimCardStatus( returnStatus ); |
|
2148 |
break; |
|
2149 |
} |
|
2150 |
case ECustomSendAPDUReqV2IPC: |
|
2151 |
{ |
|
2152 |
// packed parameter: TPtrC8* data |
|
2153 |
TPtrC8* data; |
|
2154 |
aDataPackage->UnPackData( &data ); |
|
2155 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2156 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2157 |
GetWimTsyPtr() ); |
|
2158 |
wimTsy->CompleteSendAPDUReqV2( *data, aResult ); |
|
2159 |
break; |
|
2160 |
} |
|
2161 |
case ECustomPowerSimOnIPC: |
|
2162 |
{ |
|
2163 |
// no packed parameters |
|
2164 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2165 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2166 |
GetWimTsyPtr() ); |
|
2167 |
wimTsy->CompletePowerSimOn( aResult ); |
|
2168 |
break; |
|
2169 |
} |
|
2170 |
case ECustomPowerSimOffIPC: |
|
2171 |
{ |
|
2172 |
// no packed parameters |
|
2173 |
CMmWimTsy* wimTsy = static_cast<CMmWimTsy*>( |
|
2174 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2175 |
GetWimTsyPtr() ); |
|
2176 |
wimTsy->CompletePowerSimOff( aResult ); |
|
2177 |
break; |
|
2178 |
} |
|
2179 |
case ECustomStartSimCbTopicBrowsingIPC: |
|
2180 |
{ |
|
2181 |
// packed parameter: pointer to array with CB topics |
|
2182 |
CArrayFixFlat<RMmCustomAPI::TSimCbTopic>* |
|
2183 |
cimCbTopics = NULL; |
|
2184 |
if ( KErrNone == aResult ) |
|
2185 |
{ |
|
2186 |
// only unpack data in successful case |
|
2187 |
aDataPackage->UnPackData( cimCbTopics ); |
|
2188 |
} |
|
2189 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2190 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2191 |
GetSIMTsyPtr() ); |
|
2192 |
simTsy->CompleteStartSimCbTopicBrowsing( |
|
2193 |
cimCbTopics, aResult ); |
|
2194 |
break; |
|
2195 |
} |
|
2196 |
case ECustomDeleteSimCbTopicIPC: |
|
2197 |
{ |
|
2198 |
// no packed parameters |
|
2199 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2200 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2201 |
GetSIMTsyPtr() ); |
|
2202 |
simTsy->CompleteDeleteSimCbTopic( aResult ); |
|
2203 |
break; |
|
2204 |
} |
|
2205 |
||
2206 |
case ECustomGetServiceTableSupportbyApplicationIPC: |
|
2207 |
{ |
|
2208 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2209 |
CompleteGetUSIMServiceSupport(aDataPackage, aResult ); |
|
2210 |
break; |
|
2211 |
||
2212 |
} |
|
2213 |
||
2214 |
case EReadViagHomeZoneParamsIPC: |
|
2215 |
{ |
|
2216 |
// packed parameter: RMmCustomAPI::TViagParams, pointer to |
|
2217 |
// RMmCustomAPI::TViagElements |
|
2218 |
RMmCustomAPI::TViagParams viagParams; |
|
2219 |
RMmCustomAPI::TViagElements* viagElems = NULL; |
|
2220 |
if ( KErrNone == aResult ) |
|
2221 |
{ |
|
2222 |
// only unpack data in successful case |
|
2223 |
aDataPackage->UnPackData( viagParams, viagElems ); |
|
2224 |
} |
|
2225 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2226 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2227 |
GetSIMTsyPtr() ); |
|
2228 |
simTsy->CompleteReadViagHomeZoneParamsResp( &viagParams, |
|
2229 |
viagElems, aResult ); |
|
2230 |
break; |
|
2231 |
} |
|
2232 |
case EReadViagHomeZoneCacheIPC: |
|
2233 |
{ |
|
2234 |
// packed parameter: RMmCustomAPI::TViagCacheRecordContent |
|
2235 |
RMmCustomAPI::TViagCacheRecordContent viagRecordContent; |
|
2236 |
aDataPackage->UnPackData( viagRecordContent ); |
|
2237 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2238 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2239 |
GetSIMTsyPtr() ); |
|
2240 |
simTsy->CompleteReadViagHomeZoneCacheRespL( |
|
2241 |
&viagRecordContent, aResult ); |
|
2242 |
break; |
|
2243 |
} |
|
2244 |
case EWriteViagHomeZoneCacheIPC: |
|
2245 |
{ |
|
2246 |
// no packed parameters |
|
2247 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2248 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2249 |
GetSIMTsyPtr() ); |
|
2250 |
simTsy->CompleteWriteViagHomeZoneCacheResp( aResult ); |
|
2251 |
break; |
|
2252 |
} |
|
2253 |
case EWriteViagHomeZoneUHZIUESettingsIPC: |
|
2254 |
{ |
|
2255 |
// no packed parameters |
|
2256 |
CMmSIMTsy* simTsy = static_cast<CMmSIMTsy*>( |
|
2257 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2258 |
GetSIMTsyPtr() ); |
|
2259 |
simTsy->CompleteWriteViagHomeZoneUHZIUESettingsResp( |
|
2260 |
aResult ); |
|
2261 |
break; |
|
2262 |
} |
|
2263 |
case ECustomSetDriveModeIPC: |
|
2264 |
// no packed parameters |
|
2265 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2266 |
CompleteSetDriveMode( aResult ); |
|
2267 |
break; |
|
2268 |
||
2269 |
// Security (Custom) functionality |
|
2270 |
case ECustomIsBlockedIPC: |
|
2271 |
{ |
|
2272 |
TBool isBlocked; |
|
2273 |
aDataPackage->UnPackData ( isBlocked ); |
|
2274 |
static_cast<CMmCustomSecurityTsy*>( mmObject )-> |
|
2275 |
CompleteIsBlocked( aResult, isBlocked ); |
|
2276 |
break; |
|
2277 |
} |
|
2278 |
case ECustomCheckSecurityCodeIPC: |
|
2279 |
static_cast<CMmCustomSecurityTsy*>( mmObject )-> |
|
2280 |
CompleteCheckSecurityCode( aResult ); |
|
2281 |
break; |
|
2282 |
//case ECustomCheckEmergencyNumberIPC: |
|
2283 |
//case ECustomSatRefreshCompleteNotificationIPC: |
|
2284 |
case ECustomDisablePhoneLockIPC: |
|
2285 |
static_cast<CMmCustomSecurityTsy*>( mmObject )-> |
|
2286 |
CompleteDisablePhoneLock( aResult); |
|
2287 |
break; |
|
2288 |
case ECustomCheckSecurityCodeCancelIPC: |
|
2289 |
static_cast<CMmCustomSecurityTsy*>( mmObject )-> |
|
2290 |
CompleteCheckSecurityCodeCancel(); |
|
2291 |
break; |
|
2292 |
case ECustomReadHSxPAStatusIPC: |
|
2293 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2294 |
CompleteReadHSxPAStatus( aDataPackage, aResult ); |
|
2295 |
break; |
|
2296 |
case ECustomWriteHSxPAStatusIPC: |
|
2297 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2298 |
CompleteWriteHSxPAStatus( aResult ); |
|
2299 |
break; |
|
2300 |
case ECustomNotifyHSxPAStatusIPC: |
|
2301 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2302 |
CompleteNotifyHSxPAStatus( aDataPackage, aResult ); |
|
2303 |
break; |
|
2304 |
case ECustomGetIccCallForwardingStatusIPC: |
|
2305 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2306 |
CompleteGetIccCallForwardingStatus( aDataPackage, aResult ); |
|
2307 |
break; |
|
2308 |
case ECustomNotifyIccCallForwardingStatusChangeIPC: |
|
2309 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2310 |
CompleteNotifyIccCallForwardingStatusChange( aDataPackage, aResult ); |
|
2311 |
break; |
|
2312 |
case ECustomGetCellInfoIPC: |
|
2313 |
{ |
|
2314 |
//unpack the data |
|
2315 |
RMmCustomAPI::TMmCellInfo* cellInfo; |
|
2316 |
aDataPackage->UnPackData( &cellInfo ); |
|
2317 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2318 |
CompleteGetCellInfo( cellInfo, aResult ); |
|
2319 |
break; |
|
2320 |
} |
|
2321 |
case ECustomNotifyCellInfoChangeIPC: |
|
2322 |
{ |
|
2323 |
//unpack the data |
|
2324 |
RMmCustomAPI::TMmCellInfo* cellInfoChange; |
|
2325 |
aDataPackage->UnPackData( &cellInfoChange ); |
|
2326 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2327 |
CompleteNotifyCellInfoChange( cellInfoChange, aResult ); |
|
2328 |
break; |
|
2329 |
} |
|
2330 |
case ECustomNotifyRemoteAlertingToneStatusChangeIPC: |
|
2331 |
{ |
|
2332 |
// unpack result |
|
2333 |
RMmCustomAPI::TRemoteAlertingToneStatus remoteAlertingToneStatus; |
|
2334 |
aDataPackage->UnPackData( remoteAlertingToneStatus ); |
|
2335 |
static_cast<CMmCustomTsy*>( mmObject )-> |
|
2336 |
CompleteNotifyRemoteAlertingToneStatusChange( |
|
2337 |
remoteAlertingToneStatus, aResult ); |
|
2338 |
break; |
|
2339 |
} |
|
2340 |
||
2341 |
case ECustomGetProgrammableOperatorLogoIPC: |
|
2342 |
{ |
|
2343 |
RMmCustomAPI::TOperatorId* operatorId; |
|
2344 |
RMmCustomAPI::TOperatorLogo* operatorLogo; |
|
2345 |
aDataPackage->UnPackData(&operatorId, &operatorLogo); |
|
2346 |
static_cast<CMmCustomTsy*>( mmObject )->CompleteGetProgrammableOperatorLogo(operatorId, operatorLogo, aResult); |
|
2347 |
break; |
|
2348 |
} |
|
2349 |
||
2350 |
||
2351 |
// Security cases |
|
2352 |
case EMobilePhoneGetLockInfo: |
|
2353 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2354 |
CompleteGetLockInfo( aDataPackage, aResult ); |
|
2355 |
break; |
|
2356 |
case EMobilePhoneChangeSecurityCode: |
|
2357 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2358 |
CompleteChangeSecurityCode( aResult ); |
|
2359 |
break; |
|
2360 |
case EMobilePhoneAbortSecurityCode: |
|
2361 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2362 |
CompleteAbortSecurityCode( aResult ); |
|
2363 |
break; |
|
2364 |
case EMobilePhoneVerifySecurityCode: |
|
2365 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2366 |
CompleteVerifySecurityCodeL( aResult ); |
|
2367 |
break; |
|
2368 |
case EMobilePhoneSetLockSetting: |
|
2369 |
{ |
|
2370 |
//unpack the data |
|
2371 |
RMobilePhone::TMobilePhoneLockStatus* status = NULL; |
|
2372 |
RMobilePhone::TMobilePhoneLockSetting* setting = NULL; |
|
2373 |
aDataPackage->UnPackData( &status, &setting ); |
|
2374 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2375 |
CompleteSetLockSetting( aResult,*status, *setting ); |
|
2376 |
break; |
|
2377 |
} |
|
2378 |
case EMobilePhoneNotifySecurityEvent: |
|
2379 |
{ |
|
2380 |
RMobilePhone::TMobilePhoneSecurityEvent* event = NULL; |
|
2381 |
//unpack the data |
|
2382 |
aDataPackage->UnPackData( &event ); |
|
2383 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2384 |
CompleteNotifySecurityEventL( *event, aResult ); |
|
2385 |
break; |
|
2386 |
} |
|
2387 |
case EMobilePhoneNotifyLockInfoChange: |
|
2388 |
static_cast<CMmPhoneTsy*>( mmObject )->GetSecurityTsy()-> |
|
2389 |
CompleteNotifyLockInfoChange( aDataPackage, aResult); |
|
2390 |
break; |
|
2391 |
case EMmTsySecurityGetSimActivePinStateIPC: |
|
2392 |
static_cast<CMmCustomSecurityTsy*>( |
|
2393 |
mmObject )->SetActivePin( aDataPackage ); |
|
2394 |
break; |
|
2395 |
case EMmTsySimGetICCType: |
|
2396 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2397 |
PhoneExtInterface()->CompleteGetICCType( aDataPackage ); |
|
2398 |
break; |
|
2399 |
case EMmTsyBootNotifySimStatusReadyIPC: |
|
2400 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2401 |
CompleteNotifySimStatusReadyL(); |
|
2402 |
break; |
|
2403 |
case EMmTsyBootNotifyModemStatusReadyIPC: |
|
2404 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2405 |
CompleteNotifyModemStatusReady(); |
|
2406 |
break; |
|
2407 |
case EMmTsyBootNotifySecurityReadyIPC: |
|
2408 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2409 |
CompleteNotifySecurityReady(); |
|
2410 |
break; |
|
2411 |
case EMobilePhoneNotifyIccAccessCapsChange: |
|
2412 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2413 |
CompleteNotifyIccAccessCapsChange(); |
|
2414 |
break; |
|
2415 |
case EMmTsyBootGetRFStatusIPC: |
|
2416 |
{ |
|
2417 |
TRfStateInfo* rfInfo = NULL; |
|
2418 |
aDataPackage->UnPackData ( &rfInfo ); |
|
2419 |
CMmPhoneTsy* phoneTsy = |
|
2420 |
static_cast<CMmPhoneTsy*>( mmObject ); |
|
2421 |
phoneTsy->SetRfStateInfo( *rfInfo ); |
|
2422 |
// inform also SMS Tsy about RF state |
|
2423 |
CMmSmsTsy* smsTsy = phoneTsy->SmsSession(); |
|
2424 |
if ( smsTsy ) |
|
2425 |
{ |
|
2426 |
if ( ERfsStateInfoInactive == *rfInfo ) |
|
2427 |
{ |
|
2428 |
smsTsy->SetOffline( ETrue ); |
|
2429 |
} |
|
2430 |
else |
|
2431 |
{ |
|
2432 |
smsTsy->SetOffline( EFalse ); |
|
2433 |
} |
|
2434 |
} |
|
2435 |
break; |
|
2436 |
} |
|
2437 |
case EMobilePhoneGetMailboxNumbers: |
|
2438 |
iMmPhone->CompleteGetMailboxNumbers( aDataPackage, aResult ); |
|
2439 |
break; |
|
2440 |
// Miscellaneous Phone functionality |
|
2441 |
||
2442 |
// case EMobilePhoneGetBatteryInfo: // handled in CommonTSY |
|
2443 |
case EMobilePhoneNotifyBatteryInfoChange: |
|
2444 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2445 |
CompleteNotifyBatteryInfoChange(aDataPackage, aResult ); |
|
2446 |
// phone indicator status may change |
|
2447 |
iMmPhone->CompleteNotifyIndicatorChange(); |
|
2448 |
break; |
|
2449 |
||
2450 |
case EMobilePhoneGetPhoneId: |
|
2451 |
{ |
|
2452 |
// packed parameter: TDes8 with serial number |
|
2453 |
TBuf8<KSerialNumberLength> serialNumber; |
|
2454 |
aDataPackage->UnPackData( serialNumber ); |
|
2455 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2456 |
CompleteGetPhoneId( serialNumber, aResult ); |
|
2457 |
break; |
|
2458 |
} |
|
2459 |
||
2460 |
#ifdef USING_CTSY_DISPATCHER |
|
2461 |
case ECtsyGetPhoneIdV2Comp: |
|
2462 |
{ |
|
2463 |
// Ltsy returns packed parameter of RMobilePhone::TMobilePhoneIdentityV1 |
|
2464 |
RMobilePhone::TMobilePhoneIdentityV1* phoneId = NULL; |
|
2465 |
aDataPackage->UnPackData(&phoneId); |
|
2466 |
__ASSERT_DEBUG(phoneId, User::Invariant()); |
|
2467 |
||
2468 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2469 |
CompleteGetPhoneId(*phoneId, aResult); |
|
2470 |
break; |
|
2471 |
} |
|
2472 |
#endif //USING_CTSY_DISPATCHER |
|
2473 |
||
2474 |
case EMobilePhoneGetSubscriberId: |
|
2475 |
{ |
|
2476 |
// packed param: TBuf8<RMobilePhone::KIMSISize> with IMSI |
|
2477 |
TBuf8<RMobilePhone::KIMSISize> imsi; |
|
2478 |
aDataPackage->UnPackData( imsi ); |
|
2479 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2480 |
CompleteGetSubscriberIdL( imsi, aResult ); |
|
2481 |
break; |
|
2482 |
} |
|
2483 |
case EMobilePhoneGetALSLine: |
|
2484 |
{ |
|
2485 |
// packed parameter: RMobilePhone::TMobilePhoneALSLine |
|
2486 |
RMobilePhone::TMobilePhoneALSLine alsStatus; |
|
2487 |
aDataPackage->UnPackData ( alsStatus ); |
|
2488 |
||
2489 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2490 |
CompleteGetAlsLine ( alsStatus, aResult ); |
|
2491 |
break; |
|
2492 |
} |
|
2493 |
case EMobilePhoneSetALSLine: |
|
2494 |
// no packed parameters |
|
2495 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2496 |
CompleteSetAlsLine ( aResult ); |
|
2497 |
break; |
|
2498 |
case EMobilePhoneGetCustomerServiceProfile: |
|
2499 |
{ |
|
2500 |
// packed parameter: RMobilePhone::TMobilePhoneCspFileV1 |
|
2501 |
RMobilePhone::TMobilePhoneCspFileV1 cspFile; |
|
2502 |
aDataPackage->UnPackData( cspFile ); |
|
2503 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2504 |
CompleteGetCustomerServiceProfile( cspFile, aResult ); |
|
2505 |
break; |
|
2506 |
} |
|
2507 |
case EMobilePhoneGetPhoneStoreInfo: |
|
2508 |
{ |
|
2509 |
//packed param: RMobilePhoneStore::TMobilePhoneStoreInfoV1 |
|
2510 |
RMobilePhoneStore::TMobilePhoneStoreInfoV1 phoneStoreInfo; |
|
2511 |
aDataPackage->UnPackData( phoneStoreInfo ); |
|
2512 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2513 |
CompleteGetPhoneStoreInfo( phoneStoreInfo, aResult ); |
|
2514 |
break; |
|
2515 |
} |
|
2516 |
case EMobilePhoneGetServiceTable: |
|
2517 |
{ |
|
2518 |
//packed param: RMobilePhone::TMobilePhoneServiceTableV1 |
|
2519 |
RMobilePhone::TMobilePhoneServiceTableV1 table; |
|
2520 |
aDataPackage->UnPackData( table ); |
|
2521 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2522 |
CompleteGetServiceTableL ( table, aResult ); |
|
2523 |
break; |
|
2524 |
} |
|
2525 |
case EMmTsyPhoneGetPin1DisableSupportedIPC: |
|
2526 |
{ |
|
2527 |
// packed parameter: TBool (supported or not) |
|
2528 |
TBool supported = EFalse; |
|
2529 |
aDataPackage->UnPackData( supported ); |
|
2530 |
if ( !supported ) |
|
2531 |
{ |
|
2532 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2533 |
GetSecurityTsy()->SetPin1DisableNotSupported(); |
|
2534 |
} |
|
2535 |
break; |
|
2536 |
} |
|
2537 |
case EMobilePhoneSetFdnSetting : |
|
2538 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2539 |
CompleteSetFdnSettingL( aResult ); |
|
2540 |
break; |
|
2541 |
case EMobilePhoneGetFdnStatus: |
|
2542 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2543 |
CompleteGetFdnStatus( aDataPackage, aResult ); |
|
2544 |
break; |
|
2545 |
case EMobilePhoneGetServiceProviderName: |
|
2546 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2547 |
CompleteGetServiceProviderName( aDataPackage, aResult ); |
|
2548 |
break; |
|
2549 |
case EMmTsySimRefreshNowIPC: |
|
2550 |
{ |
|
2551 |
//packed param: TUint16(list of SIM files to be refreshed) |
|
2552 |
TUint16 filesToRefresh = 0; |
|
2553 |
aDataPackage->UnPackData( filesToRefresh ); |
|
2554 |
// Refresh notification received, start refresh |
|
2555 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2556 |
CompleteSimRefreshNowL( filesToRefresh ); |
|
2557 |
break; |
|
2558 |
} |
|
2559 |
case EMmTsyGetCallForwardingNumberIPC: |
|
2560 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2561 |
CompleteGetCallForwardingNumber( |
|
2562 |
aResult, aDataPackage ); |
|
2563 |
break; |
|
2564 |
||
2565 |
// Access point control list (ACL) |
|
2566 |
case EMobilePhoneEnumerateAPNEntries: |
|
2567 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2568 |
CompleteEnumerateAPNEntries( aDataPackage, aResult ); |
|
2569 |
break; |
|
2570 |
case EMobilePhoneGetAPNname: |
|
2571 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2572 |
CompleteGetAPNname( aDataPackage, aResult ); |
|
2573 |
break; |
|
2574 |
case EMobilePhoneAppendAPNName: |
|
2575 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2576 |
CompleteAppendAPNName( aResult ); |
|
2577 |
break; |
|
2578 |
case EMobilePhoneDeleteAPNName: |
|
2579 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2580 |
CompleteDeleteAPNName( aResult ); |
|
2581 |
break; |
|
2582 |
case EMobilePhoneSetAPNControlListServiceStatus: |
|
2583 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2584 |
CompleteSetAPNControlListServiceStatus( aResult ); |
|
2585 |
break; |
|
2586 |
case EMobilePhoneGetAPNControlListServiceStatus: |
|
2587 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2588 |
CompleteGetAPNControlListServiceStatus( aDataPackage, |
|
2589 |
aResult ); |
|
2590 |
break; |
|
2591 |
case EMobilePhoneNotifyAPNListChanged: |
|
2592 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2593 |
CompleteNotifyAPNListChanged( aResult ); |
|
2594 |
break; |
|
2595 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
|
2596 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2597 |
CompleteNotifyAPNControlListServiceStatusChange( |
|
2598 |
aDataPackage, aResult ); |
|
2599 |
break; |
|
2600 |
case EMobilePhoneGetSecurityCodeInfo: |
|
2601 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2602 |
GetSecurityTsy()->CompleteGetSecurityCodeInfo( |
|
2603 |
aDataPackage, aResult ); |
|
2604 |
break; |
|
2605 |
case EMobilePhoneNotifySecurityCodeInfoChange: |
|
2606 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2607 |
GetSecurityTsy()->CompleteNotifySecurityCodeInfoChange( |
|
2608 |
aDataPackage, aResult ); |
|
2609 |
break; |
|
2610 |
case EMmTsyPhoneBookStoreFdnInfoIPC: |
|
2611 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: route to phonetsy EMmTsyPhoneBookStoreFdnInfoIPC"); |
|
2612 |
static_cast<CMmPhoneTsy*>( mmObject )-> |
|
2613 |
SaveFdnInfoDetails( aResult, aDataPackage ); |
|
2614 |
break; |
|
2615 |
default: |
|
2616 |
break; |
|
2617 |
} |
|
2618 |
||
2619 |
} |
|
2620 |
else //special cases goes here |
|
2621 |
{ |
|
2622 |
switch ( aIpc ) |
|
2623 |
{ |
|
2624 |
//this IPC has to be routed to |
|
2625 |
//the NetTsy object as is an special case. |
|
2626 |
//We Force the routing. |
|
2627 |
case EMobileCallNotifyPrivacyConfirmation: |
|
2628 |
{ |
|
2629 |
mmObject =iTsyDelegates-> |
|
2630 |
GetTsyObject( CMmMessageManagerBase::EPhoneTsy ); |
|
2631 |
static_cast<CMmPhoneTsy*>( mmObject )->GetNetTsy()-> |
|
2632 |
ReceivedCallPrivacyInformation( aDataPackage ); |
|
2633 |
break; |
|
2634 |
} |
|
2635 |
case EMobileCallGetMobileCallInfo: |
|
2636 |
{ |
|
2637 |
// If call object is not found, this call object has just |
|
2638 |
// been initiated. Inform Line object instead. |
|
2639 |
// (Get mobile call information is always completed before |
|
2640 |
// call status change) |
|
2641 |
TInt callId( -1 ); |
|
2642 |
RMobilePhone::TMobileService callMode( |
|
2643 |
RMobilePhone::EVoiceService ); |
|
2644 |
||
2645 |
const CCallDataPackage* callData = |
|
2646 |
reinterpret_cast<const CCallDataPackage*>(aDataPackage); |
|
2647 |
callData->GetCallIdAndMode( callId, callMode ); |
|
2648 |
||
2649 |
mmObject = REINTERPRET_CAST( CBase*, |
|
2650 |
iMmPhone->LineList()->GetMmLineByMode( callMode ) ); |
|
2651 |
||
2652 |
if ( NULL == mmObject ) |
|
2653 |
{ |
|
2654 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: Call object not found for mobile Call Info!"); |
|
2655 |
} |
|
2656 |
else |
|
2657 |
{ |
|
2658 |
// complete call added notification directly from here |
|
2659 |
static_cast<CMmLineTsy*>( mmObject )-> |
|
2660 |
CompleteNotifyDiallingStatus( aDataPackage ); |
|
2661 |
} |
|
2662 |
break; |
|
2663 |
} |
|
2664 |
case EEtelCallDial: |
|
2665 |
case EMobileCallDialISV: |
|
2666 |
case EMobileCallDialNoFdnCheck: |
|
2667 |
{ |
|
2668 |
//If data/video call creation fails (e.g when dialled |
|
2669 |
//number has not been in the FDN list), dial is completed |
|
2670 |
//when this call object has just been initiated |
|
2671 |
//(and therefore not found). |
|
2672 |
TInt callId( -1 ); |
|
2673 |
RMobilePhone::TMobileService callMode( |
|
2674 |
RMobilePhone::EServiceUnspecified ); |
|
2675 |
||
2676 |
const CCallDataPackage* callData = |
|
2677 |
reinterpret_cast<const CCallDataPackage*>( aDataPackage ); |
|
2678 |
callData->GetCallIdAndMode( callId, callMode ); |
|
2679 |
||
2680 |
if ( callId == 0 && ( |
|
2681 |
callMode == RMobilePhone::ECircuitDataService || |
|
2682 |
callMode == RMobilePhone::EVoiceService || |
|
2683 |
callMode == RMobilePhone::EAuxVoiceService ) ) |
|
2684 |
{ |
|
2685 |
//check if data call exists |
|
2686 |
CMmDataCallTsy* mmCall = |
|
2687 |
reinterpret_cast<CMmDataCallTsy*>( |
|
2688 |
iMmPhone->CallList()-> |
|
2689 |
GetMmCallByMode( callMode ) ); |
|
2690 |
||
2691 |
if ( NULL == mmCall ) |
|
2692 |
{ |
|
2693 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: Call object not found for Dial!"); |
|
2694 |
} |
|
2695 |
else |
|
2696 |
{ |
|
2697 |
//find object that requested dial |
|
2698 |
if ( ( mmCall->IsServiceLocallyRequested( |
|
2699 |
CMmCallTsy::EMultimodeCallDial ) ) |
|
2700 |
|| ( mmCall->IsServiceLocallyRequested( |
|
2701 |
CMmCallTsy::EMultimodeCallDialISV ) ) |
|
2702 |
|| (mmCall->IsServiceLocallyRequested( |
|
2703 |
CMmCallTsy::EMultimodeMobileCallDialEmergencyCall ) ) |
|
2704 |
|| ( mmCall->IsServiceLocallyRequested( |
|
2705 |
CMmCallTsy:: |
|
2706 |
EMultimodeCallDialNoFdnCheck ) ) ) |
|
2707 |
{ |
|
2708 |
for( TInt i = 0; i < iMmPhone->CallList()-> |
|
2709 |
GetNumberOfObjects(); i++ ) |
|
2710 |
{ |
|
2711 |
mmCall = reinterpret_cast<CMmDataCallTsy*>( |
|
2712 |
iMmPhone->CallList()-> |
|
2713 |
GetMmCallByIndex(i) ); |
|
2714 |
||
2715 |
if ( ( mmCall->ServiceRequested( |
|
2716 |
CMmCallTsy::EMultimodeCallDial ) |
|
2717 |
&& mmCall->CallMode() == callMode ) |
|
2718 |
|| ( mmCall->ServiceRequested( |
|
2719 |
CMmCallTsy::EMultimodeCallDialISV ) |
|
2720 |
&& mmCall->CallMode() == callMode ) ) |
|
2721 |
{ |
|
2722 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: Special case before CompleteDial"); |
|
2723 |
mmCall->CompleteDial( aResult ); |
|
2724 |
break; |
|
2725 |
} |
|
2726 |
||
2727 |
if ( mmCall->ServiceRequested( |
|
2728 |
CMmCallTsy::EMultimodeCallDialNoFdnCheck ) |
|
2729 |
&& mmCall->CallMode() == callMode ) |
|
2730 |
{ |
|
2731 |
TFLOGSTRING("TSY: CMmMessageRouterProxy::RouteCompletion: Special case before CompleteDialNoFdn"); |
|
2732 |
mmCall->CompleteDialNoFdn( aResult ); |
|
2733 |
break; |
|
2734 |
} |
|
2735 |
} |
|
2736 |
} |
|
2737 |
} |
|
2738 |
} |
|
2739 |
break; |
|
2740 |
} |
|
2741 |
default: |
|
2742 |
break; |
|
2743 |
} |
|
2744 |
} |
|
2745 |
} |
|
2746 |
||
2747 |
// --------------------------------------------------------------------------- |
|
2748 |
// CMmMessageRouterProxy::RegisterTsyObject |
|
2749 |
// Registers a Tsy object for request and notification completions |
|
2750 |
// (other items were commented in a header). |
|
2751 |
// --------------------------------------------------------------------------- |
|
2752 |
// |
|
2753 |
void CMmMessageRouterProxy::SetPhoneTsy( |
|
2754 |
CMmPhoneTsy* aMmPhone ) |
|
2755 |
{ |
|
2756 |
iMmPhone = aMmPhone; |
|
2757 |
} |
|
2758 |
||
2759 |
// End of File |