24
|
1 |
// Copyright (c) 1997-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 |
@file
|
|
18 |
*/
|
|
19 |
|
|
20 |
|
|
21 |
#include "mmtsy.h"
|
|
22 |
#include "testdef.h"
|
|
23 |
#include "ETELMM.H"
|
|
24 |
#include <et_clsvr.h>
|
|
25 |
#include "Dmmlog.h"
|
|
26 |
#include <etelmmerr.h>
|
|
27 |
|
|
28 |
//
|
|
29 |
// CPhoneDMmTsy
|
|
30 |
//
|
|
31 |
CPhoneDMmTsy* CPhoneDMmTsy::NewL(CPhoneFactoryDummyBase* aFac)
|
|
32 |
{
|
|
33 |
CPhoneDMmTsy* phone=new(ELeave) CPhoneDMmTsy(aFac);
|
|
34 |
CleanupStack::PushL(phone);
|
|
35 |
phone->ConstructL();
|
|
36 |
CleanupStack::Pop();
|
|
37 |
return phone;
|
|
38 |
}
|
|
39 |
|
|
40 |
CPhoneDMmTsy::CPhoneDMmTsy(CPhoneFactoryDummyBase* aFac)
|
|
41 |
: CPhoneDummyBase(aFac),
|
|
42 |
iActiveRequestObjects(_FOFF(CPhoneDMmTsy::CActiveListNode,iNext))
|
|
43 |
{}
|
|
44 |
|
|
45 |
void CPhoneDMmTsy::ConstructL()
|
|
46 |
{
|
|
47 |
iPhoneTestCount=1;
|
|
48 |
CPhoneDummyBase::ConstructL();
|
|
49 |
iGetDetectedNetworks = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
50 |
iGetCFStatus = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
51 |
iGetCB = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
52 |
iGetCWStatus = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
53 |
iGetCcbsRequests = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
54 |
iGetPreferredNetworks = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
55 |
iGetAuthorizationData = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
56 |
iGetWlanSIDsData = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
57 |
iAuthReadAll = new CArrayPtrFlat<CListReadAllAttempt>(1);
|
|
58 |
|
|
59 |
iAuthInfo=RMobilePhone::CImsAuthorizationInfoV5::NewL();
|
|
60 |
LOGTEXT(_L8("CPhoneDMmTsy created"));
|
|
61 |
}
|
|
62 |
|
|
63 |
CPhoneDMmTsy::~CPhoneDMmTsy()
|
|
64 |
{
|
|
65 |
if (iGetDetectedNetworks)
|
|
66 |
iGetDetectedNetworks->ResetAndDestroy();
|
|
67 |
if (iGetCFStatus)
|
|
68 |
iGetCFStatus->ResetAndDestroy();
|
|
69 |
if (iGetCB)
|
|
70 |
iGetCB->ResetAndDestroy();
|
|
71 |
if (iGetCWStatus)
|
|
72 |
iGetCWStatus->ResetAndDestroy();
|
|
73 |
if (iGetCcbsRequests)
|
|
74 |
iGetCcbsRequests->ResetAndDestroy();
|
|
75 |
if(iGetPreferredNetworks)
|
|
76 |
iGetPreferredNetworks->ResetAndDestroy();
|
|
77 |
|
|
78 |
if(iGetAuthorizationData)
|
|
79 |
iGetAuthorizationData->ResetAndDestroy();
|
|
80 |
|
|
81 |
if(iGetWlanSIDsData)
|
|
82 |
iGetWlanSIDsData->ResetAndDestroy();
|
|
83 |
|
|
84 |
if(iAuthReadAll)
|
|
85 |
iAuthReadAll->ResetAndDestroy();
|
|
86 |
|
|
87 |
delete iGetDetectedNetworks;
|
|
88 |
delete iGetCFStatus;
|
|
89 |
delete iGetCB;
|
|
90 |
delete iGetCWStatus;
|
|
91 |
delete iGetCcbsRequests;
|
|
92 |
delete iGetPreferredNetworks;
|
|
93 |
delete iGetAuthorizationData;
|
|
94 |
delete iAuthInfo;
|
|
95 |
delete iGetWlanSIDsData;
|
|
96 |
delete iAuthReadAll;
|
|
97 |
|
|
98 |
LOGTEXT(_L8("CPhoneDMmTsy destroyed"));
|
|
99 |
}
|
|
100 |
|
|
101 |
void CPhoneDMmTsy::Init()
|
|
102 |
{
|
|
103 |
// server calls this function once it has created the sub-session
|
|
104 |
// it gives the TSY chance to do any initialisation it may need to do for
|
|
105 |
// this sub-session
|
|
106 |
}
|
|
107 |
|
|
108 |
CTelObject* CPhoneDMmTsy::OpenNewObjectByNameL(const TDesC& aName)
|
|
109 |
{
|
|
110 |
// Server calls this function when a client is opening an object from the phone
|
|
111 |
// for the first time.
|
|
112 |
// Multiple clients opening handles to the same sub-session object will be dealt with
|
|
113 |
// by the server - i.e. by reference counting
|
|
114 |
|
|
115 |
if((aName.Compare(DMMTSY_LINE_VOICE_NAME)==KErrNone) ||
|
|
116 |
(aName.Compare(DMMTSY_LINE_VOICE2_NAME)==KErrNone) ||
|
|
117 |
(aName.Compare(DMMTSY_LINE_DATA_NAME)==KErrNone) ||
|
|
118 |
(aName.Compare(DMMTSY_LINE_FAX_NAME)==KErrNone))
|
|
119 |
|
|
120 |
return REINTERPRET_CAST(CTelObject*,CLineDMmTsy::NewL(this,FacPtr()));
|
|
121 |
|
|
122 |
if (aName.Compare(KETelSmsMessaging)==KErrNone)
|
|
123 |
return REINTERPRET_CAST(CTelObject*,CSmsMessagingDMmTsy::NewL(this,FacPtr(),aName));
|
|
124 |
|
|
125 |
if (aName.Compare(KETelBroadcastMessaging)==KErrNone)
|
|
126 |
return REINTERPRET_CAST(CTelObject*,CBroadcastMessagingDMmTsy::NewL(this,FacPtr(),aName));
|
|
127 |
|
|
128 |
if (aName.Compare(KETelUssdMessaging)==KErrNone)
|
|
129 |
return REINTERPRET_CAST(CTelObject*,CUssdMessagingDMmTsy::NewL(this,FacPtr(),aName));
|
|
130 |
|
|
131 |
if (aName.Compare(KETelNamStore)==KErrNone)
|
|
132 |
return REINTERPRET_CAST(CTelObject*, CNamStoreDMmTsy::NewL(this,FacPtr(),aName));
|
|
133 |
|
|
134 |
if (aName.Compare(KETelOwnNumberStore)==KErrNone)
|
|
135 |
return REINTERPRET_CAST(CTelObject*, CONStoreDMmTsy::NewL(this,FacPtr(),aName));
|
|
136 |
|
|
137 |
if (aName.Compare(KETelEmergencyNumberStore)==KErrNone)
|
|
138 |
return REINTERPRET_CAST(CTelObject*, CENStoreDMmTsy::NewL(this,FacPtr(),aName));
|
|
139 |
|
|
140 |
if (aName.Compare(KETelIccVoiceMailBox)==KErrNone)
|
|
141 |
return REINTERPRET_CAST(CTelObject*, CMobilePhoneBookStoreDMmTsy::NewL(this,FacPtr(),aName));
|
|
142 |
|
|
143 |
if (aName.Compare(KETelConferenceCall) == 0)
|
|
144 |
return REINTERPRET_CAST(CTelObject*, CMobileConferenceCallDMmTsy::NewL(this,FacPtr(),aName));
|
|
145 |
|
|
146 |
if (aName.Compare(KETelLocationServices) == 0)
|
|
147 |
return REINTERPRET_CAST(CTelObject*, CMobileLocationServicesDMmTsy::NewL(this,FacPtr(),aName));
|
|
148 |
|
|
149 |
if (aName.Left(SCEAP_SSN_LENGTH).Compare(KETelSmartCardEapSession) == 0)
|
|
150 |
{
|
|
151 |
TInt len;
|
|
152 |
|
|
153 |
// Extracting AID
|
|
154 |
RMobilePhone::TAID tempAID;
|
|
155 |
len = CharToSeptNumL(aName[SCEAP_SSN_LENGTH]) * 2;
|
|
156 |
TPtrC ptrAid = aName.Mid(SCEAP_SSN_LENGTH + 1, len);
|
|
157 |
ConvertTextToBinary(ptrAid, tempAID);
|
|
158 |
|
|
159 |
// Extracting EapType
|
|
160 |
RMobileSmartCardEap::TEapType eapType;
|
|
161 |
TInt posTypeLength = SCEAP_SSN_LENGTH + len + 1;
|
|
162 |
len = CharToSeptNumL(aName[posTypeLength]);
|
|
163 |
TPtrC ptrEapT = aName.Mid(posTypeLength + 1, len);
|
|
164 |
eapType.Copy(ptrEapT);
|
|
165 |
|
|
166 |
CSmartCardEapDMmTsy* eapSubSessObj = NULL;
|
|
167 |
TRAPD(err, eapSubSessObj = CSmartCardEapDMmTsy::NewL(this, tempAID, eapType, FacPtr()));
|
|
168 |
|
|
169 |
if (err != KErrNone || eapSubSessObj == NULL)
|
|
170 |
{
|
|
171 |
User::Leave((err == KErrNone ? KErrGeneral : err));
|
|
172 |
}
|
|
173 |
|
|
174 |
return eapSubSessObj;
|
|
175 |
} // End of opening Smart Card EAP sub-session
|
|
176 |
|
|
177 |
TInt tLength;
|
|
178 |
TPtrC remain(aName);
|
|
179 |
|
|
180 |
if ((tLength=remain.Find(PHBOOK_DELIMITER))!=KErrNotFound)
|
|
181 |
{
|
|
182 |
if(aName.Left(tLength) == KETelIccVoiceMailBox
|
|
183 |
&& aName.Right(aName.Length()-tLength-2) == KEtelUSimPhoneBookType)
|
|
184 |
return REINTERPRET_CAST(CTelObject*,
|
|
185 |
CMobilePhoneBookStoreDMmTsy::NewL(this,FacPtr(),aName.Left(tLength),
|
|
186 |
aName.Right(aName.Length()-tLength-2)));
|
|
187 |
}
|
|
188 |
|
|
189 |
return NULL;
|
|
190 |
}
|
|
191 |
|
|
192 |
/**
|
|
193 |
Returns the numerical value that corresponds to the numeric character
|
|
194 |
of its parameter (in base 17).
|
|
195 |
|
|
196 |
@param aDigit A char between '0' to '9' or between 'A' to 'G'
|
|
197 |
*/
|
|
198 |
TInt CPhoneDMmTsy::CharToSeptNumL(const TChar& aChar) const
|
|
199 |
{
|
|
200 |
TInt ret = 0;
|
|
201 |
|
|
202 |
if((aChar >= '0') && (aChar <= '9'))
|
|
203 |
{
|
|
204 |
ret = TUint(aChar) - '0';
|
|
205 |
}
|
|
206 |
else if((aChar >= 'A') && (aChar <= 'G'))
|
|
207 |
{
|
|
208 |
ret = TUint(aChar) - 'A' + 10;
|
|
209 |
}
|
|
210 |
else
|
|
211 |
{
|
|
212 |
User::Leave(KErrArgument);
|
|
213 |
}
|
|
214 |
|
|
215 |
return ret;
|
|
216 |
}
|
|
217 |
|
|
218 |
/**
|
|
219 |
Converts a buffer containing string of the hexadecimal characters,
|
|
220 |
representing the binary data, into this binary data!
|
|
221 |
|
|
222 |
@param aSrc The buffer containing text representation.
|
|
223 |
@param aDst Binary data will be written to this buffer.
|
|
224 |
*/
|
|
225 |
void CPhoneDMmTsy::ConvertTextToBinary(const TDesC& aSrc, TDes8& aDst)
|
|
226 |
{
|
|
227 |
aDst.SetLength(aSrc.Length() / 2);
|
|
228 |
|
|
229 |
for (TInt i = 0; i < aSrc.Length(); i += 2)
|
|
230 |
{
|
|
231 |
TInt val = 0;
|
|
232 |
if ((aSrc[i] >= '0') && (aSrc[i] <= '9'))
|
|
233 |
{
|
|
234 |
val = ((aSrc[i] - '0') << 4);
|
|
235 |
}
|
|
236 |
else if ((aSrc[i] >= 'A') && (aSrc[i] <= 'F'))
|
|
237 |
{
|
|
238 |
val = ((aSrc[i] - 'A' + 10) << 4);
|
|
239 |
}
|
|
240 |
|
|
241 |
if ((aSrc[i+1] >= '0') && (aSrc[i+1] <= '9'))
|
|
242 |
{
|
|
243 |
val += (aSrc[i+1] - '0');
|
|
244 |
}
|
|
245 |
else if ((aSrc[i+1] >= 'A') && (aSrc[i+1] <= 'F'))
|
|
246 |
{
|
|
247 |
val += (aSrc[i+1] - 'A' + 10);
|
|
248 |
}
|
|
249 |
|
|
250 |
aDst[i/2] = (TUint8) val;
|
|
251 |
}
|
|
252 |
}
|
|
253 |
|
|
254 |
CTelObject* CPhoneDMmTsy::OpenNewObjectL(TDes& /*aNewName*/)
|
|
255 |
{
|
|
256 |
// all objects opened from the phone are opened by name, hence this method
|
|
257 |
// is not supported
|
|
258 |
User::Leave(KErrNotSupported);
|
|
259 |
return NULL;
|
|
260 |
}
|
|
261 |
|
|
262 |
|
|
263 |
CTelObject::TReqMode CPhoneDMmTsy::ReqModeL(const TInt aIpc)
|
|
264 |
{
|
|
265 |
// ReqModeL is called from the server's CTelObject::ReqAnalyserL
|
|
266 |
// in order to check the type of request it has.
|
|
267 |
|
|
268 |
// The following are example request types for this dummy TSY
|
|
269 |
// All TSYs do not have to have these request types but they have been given
|
|
270 |
// "sensible" values in this test code
|
|
271 |
|
|
272 |
CTelObject::TReqMode ret=0;
|
|
273 |
switch (aIpc)
|
|
274 |
{
|
|
275 |
// Asynchronous Notification Requests
|
|
276 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
277 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
278 |
case EMobilePhoneNotifyModeChange:
|
|
279 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
280 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
281 |
case EMobilePhoneNotifyCellInfoChange:
|
|
282 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
283 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
284 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
285 |
case EMobilePhoneNotifyIndicatorChange:
|
|
286 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
287 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
288 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
289 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
290 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
291 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
292 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
293 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
294 |
case EMobilePhoneNotifyCCBSRecall:
|
|
295 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
296 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
297 |
case EMobilePhoneNotifyALSLineChange:
|
|
298 |
case EMobilePhoneNotifyCostCapsChange:
|
|
299 |
case EMobilePhoneNotifyCostInfoChange:
|
|
300 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
301 |
case EMobilePhoneNotifyLockInfoChange:
|
|
302 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
303 |
case EMobilePhoneNotifySecurityEvent:
|
|
304 |
case EMobilePhoneNotifyMessageWaiting:
|
|
305 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
306 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
307 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
308 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
309 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
310 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
311 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
312 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
313 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
314 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
315 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
316 |
case EMobilePhoneNotifyMmsUpdate:
|
|
317 |
case EMobilePhoneNotifyMmsConfig:
|
|
318 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
319 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
320 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
321 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
322 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
323 |
case EMobilePhoneNotifyDTMFEvent:
|
|
324 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
325 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
326 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
327 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
328 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
329 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
330 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
331 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
332 |
case EMobilePhoneNotifyAPNListChanged:
|
|
333 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
334 |
case EMobilePhoneNotifyWlanDataChange:
|
|
335 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
336 |
|
|
337 |
|
|
338 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
339 |
ret=KReqModeMultipleCompletionEnabled | KReqModeRePostImmediately;
|
|
340 |
break;
|
|
341 |
|
|
342 |
// Non flow-controlled requests
|
|
343 |
case EMobilePhoneGetDTMFCaps:
|
|
344 |
case EMobilePhoneStopDTMFTone:
|
|
345 |
case EMobilePhoneGetNetworkCaps:
|
|
346 |
case EMobilePhoneGetCurrentMode:
|
|
347 |
case EMobilePhoneGetNetworkRegistrationStatus:
|
|
348 |
case EMobilePhoneGetHomeNetwork:
|
|
349 |
case EMobilePhoneGetCurrentNetwork:
|
|
350 |
case EMobilePhoneGetCellInfo:
|
|
351 |
case EMobilePhoneGetDetectedNetworksPhase1:
|
|
352 |
case EMobilePhoneGetDetectedNetworksPhase2:
|
|
353 |
case EMobilePhoneGetDetectedNetworksV2Phase1:
|
|
354 |
case EMobilePhoneGetDetectedNetworksV2Phase2:
|
|
355 |
case EMobilePhoneGetDetectedNetworksV5Phase1:
|
|
356 |
case EMobilePhoneGetDetectedNetworksV5Phase2:
|
|
357 |
case EMobilePhoneGetDetectedNetworksV8Phase1:
|
|
358 |
case EMobilePhoneGetDetectedNetworksV8Phase2:
|
|
359 |
case EMobilePhoneGetMultimodeCaps:
|
|
360 |
case EMobilePhoneGetPhoneStoreInfo:
|
|
361 |
case EMobilePhoneGetIccAccessCaps:
|
|
362 |
case EMobilePhoneGetIccIdentity:
|
|
363 |
case EMobilePhoneGetCustomerServiceProfile:
|
|
364 |
case EMobilePhoneGetServiceTable:
|
|
365 |
case EMobilePhoneGetBatteryCaps:
|
|
366 |
case EMobilePhoneGetBatteryInfo:
|
|
367 |
case EMobilePhoneGetSignalCaps:
|
|
368 |
case EMobilePhoneGetSignalStrength:
|
|
369 |
case EMobilePhoneGetIndicatorCaps:
|
|
370 |
case EMobilePhoneGetIndicator:
|
|
371 |
case EMobilePhoneGetIdentityCaps:
|
|
372 |
case EMobilePhoneGetPhoneId:
|
|
373 |
case EMobilePhoneGetSubscriberId:
|
|
374 |
case EMobilePhoneGetCallServiceCaps:
|
|
375 |
case EMobilePhoneGetCallForwardingStatusPhase1:
|
|
376 |
case EMobilePhoneGetCallForwardingStatusPhase2:
|
|
377 |
case EMobilePhoneGetFeatureCode:
|
|
378 |
case EMobilePhoneGetNetworkSelectionSetting:
|
|
379 |
case EMobilePhoneSetNetworkSelectionSetting:
|
|
380 |
case EMobilePhoneSelectNetwork:
|
|
381 |
case EMobilePhoneGetNITZInfo:
|
|
382 |
case EMobilePhoneGetServiceProviderName:
|
|
383 |
case EMobilePhoneGetIdentityServiceStatus:
|
|
384 |
case EMobilePhoneGetBarringStatusPhase1:
|
|
385 |
case EMobilePhoneGetBarringStatusPhase2:
|
|
386 |
case EMobilePhoneSetCallBarringStatus:
|
|
387 |
case EMobilePhoneSetCallBarringPassword:
|
|
388 |
case EMobilePhoneGetWaitingStatusPhase1:
|
|
389 |
case EMobilePhoneGetWaitingStatusPhase2:
|
|
390 |
case EMobilePhoneSetCallWaitingStatus:
|
|
391 |
case EMobilePhoneGetCCBSStatus:
|
|
392 |
case EMobilePhoneDeactivateCCBS:
|
|
393 |
case EMobilePhoneAcceptCCBSRecall:
|
|
394 |
case EMobilePhoneRefuseCCBSRecall:
|
|
395 |
case EMobilePhoneGetCompletionRequestsPhase1:
|
|
396 |
case EMobilePhoneGetCompletionRequestsPhase2:
|
|
397 |
case EMobilePhoneGetAlternatingCallCaps:
|
|
398 |
case EMobilePhoneGetAlternatingCallMode:
|
|
399 |
case EMobilePhoneSetAlternatingCallMode:
|
|
400 |
case EMobilePhoneGetALSLine:
|
|
401 |
case EMobilePhoneSetALSLine:
|
|
402 |
case EMobilePhoneGetCostCaps:
|
|
403 |
case EMobilePhoneClearCostMeter:
|
|
404 |
case EMobilePhoneSetMaxCostMeter:
|
|
405 |
case EMobilePhoneSetPuct:
|
|
406 |
case EMobilePhoneGetCostInfo:
|
|
407 |
case EMobilePhoneGetSecurityCaps:
|
|
408 |
case EMobilePhoneGetLockInfo:
|
|
409 |
case EMobilePhoneSetLockSetting:
|
|
410 |
case EMobilePhoneGetSecurityCodeInfo:
|
|
411 |
case EMobilePhoneChangeSecurityCode:
|
|
412 |
case EMobilePhoneVerifySecurityCode:
|
|
413 |
case EMobilePhoneAbortSecurityCode:
|
|
414 |
case EMobilePhoneGetFdnStatus:
|
|
415 |
case EMobilePhoneSetFdnSetting:
|
|
416 |
case EMobilePhoneGetMulticallParams:
|
|
417 |
case EMobilePhoneSetMulticallParams:
|
|
418 |
case EMobilePhoneGetIncomingCallType:
|
|
419 |
case EMobilePhoneSetIncomingCallType:
|
|
420 |
case EMobilePhoneGetUUSSetting:
|
|
421 |
case EMobilePhoneSetUUSSetting:
|
|
422 |
case EMobilePhoneGetDefaultPrivacy:
|
|
423 |
case EMobilePhoneSetDefaultPrivacy:
|
|
424 |
case EMobilePhoneGetIccMessageWaitingIndicators:
|
|
425 |
case EMobilePhoneSetIccMessageWaitingIndicators:
|
|
426 |
case EMobilePhoneGetMultimediaCallPreference:
|
|
427 |
case EMobilePhoneSetMultimediaCallPreference:
|
|
428 |
case EMobilePhoneGetNetworkSecurityLevel:
|
|
429 |
case EMobilePhoneEnumerateUSimApplications:
|
|
430 |
case EMobilePhoneGetUSimAppsSelectionMode:
|
|
431 |
case EMobilePhoneSetUSimAppsSelectionMode:
|
|
432 |
case EMobilePhoneSetUSimApplicationStatus:
|
|
433 |
case EMobilePhoneGetUSimApplicationsInfo:
|
|
434 |
case EMobilePhoneSetSSPassword:
|
|
435 |
case EMobilePhoneGetMailboxNumbers:
|
|
436 |
case EMobilePhoneSetMmsUserConnParams:
|
|
437 |
case EMobilePhoneSetMmsUserPreferences:
|
|
438 |
case EMobilePhoneGetMmsConfig:
|
|
439 |
case EMobilePhoneGetHomeNetworkSearchPeriod:
|
|
440 |
case EMobilePhoneGetLastUsedAccessTechnology:
|
|
441 |
case EMobilePhoneGetNetworkInvScanSetting:
|
|
442 |
case EMobilePhoneGetCallForwardingIndicator:
|
|
443 |
case EMobilePhoneGetCompMethodName:
|
|
444 |
case EMobilePhoneEnumerateAPNEntries:
|
|
445 |
case EMobilePhoneGetAPNname:
|
|
446 |
case EMobilePhoneAppendAPNName:
|
|
447 |
case EMobilePhoneDeleteAPNName:
|
|
448 |
case EMobilePhoneSetAPNControlListServiceStatus:
|
|
449 |
case EMobilePhoneGetAPNControlListServiceStatus:
|
|
450 |
case EMobilePhoneGetAirTimeDuration:
|
|
451 |
case EMobilePhoneClearBlacklist:
|
|
452 |
case EMobilePhoneGetPersonalisationCaps:
|
|
453 |
case EMobilePhoneGetPersonalisationStatus:
|
|
454 |
case EMobilePhoneSetPersonalisationStatus:
|
|
455 |
case EMobilePhoneGetNetworkName:
|
|
456 |
case EMobilePhoneGetPreferredNetworksPhase1:
|
|
457 |
case EMobilePhoneGetPreferredNetworksPhase2:
|
|
458 |
case EMobilePhoneStorePreferredNetworksList:
|
|
459 |
case EMobilePhoneGetCipheringIndicatorStatus:
|
|
460 |
case EMobilePhoneSetIdentityServiceStatus:
|
|
461 |
case EMobilePhoneEnumerateSmartCardApplications:
|
|
462 |
case EMobilePhoneGetSmartCardApplicationInfo:
|
|
463 |
case EMobilePhoneSetSmartCardApplicationStatus:
|
|
464 |
case EMobilePhoneGetScFileInfo:
|
|
465 |
case EMobilePhoneReadScFile:
|
|
466 |
case EMobilePhoneUpdateScFile:
|
|
467 |
case EMobilePhoneGetCurrentActiveUSimApplication:
|
|
468 |
case EMobilePhoneGetCurrentNetworkNoLocation:
|
|
469 |
case EMobilePhoneAuthorizationInfoPhase1:
|
|
470 |
case EMobilePhoneAuthorizationInfoPhase2:
|
|
471 |
case EMobilePhoneIMSAuthenticate:
|
|
472 |
case EMobilePhoneSmartCardAuthenticate:
|
|
473 |
case EETelPhoneSetEmergencyClient:
|
|
474 |
case EMobilePhoneGetAuthenticationParams:
|
|
475 |
case EMobilePhoneSetGbaBootstrapParams:
|
|
476 |
case EMobilePhoneAuthenticationListPhase1:
|
|
477 |
case EMobilePhoneAuthenticationListPhase2:
|
|
478 |
case EMobilePhoneGetWlanData:
|
|
479 |
case EMobilePhoneSetWlanData:
|
|
480 |
case EMobilePhoneGetPreferredWlanSIDsPhase1:
|
|
481 |
case EMobilePhoneGetPreferredWlanSIDsPhase2:
|
|
482 |
case EMobilePhoneStorePreferredWlanSIDList:
|
|
483 |
break;
|
|
484 |
|
|
485 |
// Flow controlled requests
|
|
486 |
case EMobilePhoneSendNetworkServiceRequest:
|
|
487 |
case EMobilePhoneSendDTMFTones:
|
|
488 |
case EMobilePhoneReadDTMFTones:
|
|
489 |
case EMobilePhoneStartDTMFTone:
|
|
490 |
case EMobilePhoneContinueDTMFStringSending:
|
|
491 |
case EMobilePhoneSetCallForwardingStatus:
|
|
492 |
case EMobilePhoneProgramFeatureCode:
|
|
493 |
case EMobilePhoneTerminateAllCalls:
|
|
494 |
case EMobilePhoneTerminateActiveCalls:
|
|
495 |
ret=KReqModeFlowControlObeyed;
|
|
496 |
break;
|
|
497 |
default:
|
|
498 |
ret=CPhoneBase::ReqModeL(aIpc);
|
|
499 |
break;
|
|
500 |
}
|
|
501 |
return ret;
|
|
502 |
}
|
|
503 |
|
|
504 |
TInt CPhoneDMmTsy::RegisterNotification(const TInt aIpc)
|
|
505 |
{
|
|
506 |
// RegisterNotification is called when the server recognises that this notification
|
|
507 |
// is being posted for the first time on this sub-session object.
|
|
508 |
|
|
509 |
// It enables the TSY to "turn on" any regular notification messages that it may
|
|
510 |
// receive from the phone
|
|
511 |
|
|
512 |
switch (aIpc)
|
|
513 |
{
|
|
514 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
515 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - DTMF Caps Change "));
|
|
516 |
return KErrNone;
|
|
517 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
518 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - DTMF Stop In DTMF String "));
|
|
519 |
return KErrNone;
|
|
520 |
case EMobilePhoneNotifyModeChange:
|
|
521 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Mode Change "));
|
|
522 |
return KErrNone;
|
|
523 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
524 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Registration Status Change "));
|
|
525 |
return KErrNone;
|
|
526 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
527 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Current network Change "));
|
|
528 |
return KErrNone;
|
|
529 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
530 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Current network ISV Change No Location"));
|
|
531 |
return KErrNone;
|
|
532 |
case EMobilePhoneNotifyCellInfoChange:
|
|
533 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Cell information Change "));
|
|
534 |
return KErrNone;
|
|
535 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
536 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - SIM Access Caps Change "));
|
|
537 |
return KErrNone;
|
|
538 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
539 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Battery Info Change "));
|
|
540 |
return KErrNone;
|
|
541 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
542 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Signal Strength Change "));
|
|
543 |
return KErrNone;
|
|
544 |
case EMobilePhoneNotifyIndicatorChange:
|
|
545 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Indicator Change "));
|
|
546 |
return KErrNone;
|
|
547 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
548 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Call Service Caps Change "));
|
|
549 |
return KErrNone;
|
|
550 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
551 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Call Forwarding Status Change "));
|
|
552 |
return KErrNone;
|
|
553 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
554 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Call Forwarding Active"));
|
|
555 |
return KErrNone;
|
|
556 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
557 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Network Selection Setting Change "));
|
|
558 |
return KErrNone;
|
|
559 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
560 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Network Time Info Change "));
|
|
561 |
return KErrNone;
|
|
562 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
563 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Call Barring Status Change"));
|
|
564 |
return KErrNone;
|
|
565 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
566 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Call Waiting Status Change"));
|
|
567 |
return KErrNone;
|
|
568 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
569 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify CCBS Status Change"));
|
|
570 |
return KErrNone;
|
|
571 |
case EMobilePhoneNotifyCCBSRecall:
|
|
572 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify CCBS Recall"));
|
|
573 |
return KErrNone;
|
|
574 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
575 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Alternating Call Caps Change"));
|
|
576 |
return KErrNone;
|
|
577 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
578 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Alternating Mode Caps Change"));
|
|
579 |
return KErrNone;
|
|
580 |
case EMobilePhoneNotifyALSLineChange:
|
|
581 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify ALSLine Change"));
|
|
582 |
return KErrNone;
|
|
583 |
case EMobilePhoneNotifyCostCapsChange:
|
|
584 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Cost Caps Change"));
|
|
585 |
return KErrNone;
|
|
586 |
case EMobilePhoneNotifyCostInfoChange:
|
|
587 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Cost Info Change"));
|
|
588 |
return KErrNone;
|
|
589 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
590 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Security Caps Change"));
|
|
591 |
return KErrNone;
|
|
592 |
case EMobilePhoneNotifyLockInfoChange:
|
|
593 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Lock Info Change"));
|
|
594 |
return KErrNone;
|
|
595 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
596 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Security Code Info Change"));
|
|
597 |
return KErrNone;
|
|
598 |
case EMobilePhoneNotifySecurityEvent:
|
|
599 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify On Security Event"));
|
|
600 |
return KErrNone;
|
|
601 |
case EMobilePhoneNotifyMessageWaiting:
|
|
602 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Message Waiting"));
|
|
603 |
return KErrNone;
|
|
604 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
605 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Icc Message Waiting Indicators Change"));
|
|
606 |
return KErrNone;
|
|
607 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
608 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Fdn Status Change"));
|
|
609 |
return KErrNone;
|
|
610 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
611 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Multicall Params Change"));
|
|
612 |
return KErrNone;
|
|
613 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
614 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Incoming Call Type Change"));
|
|
615 |
return KErrNone;
|
|
616 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
617 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify UUS Setting Change"));
|
|
618 |
return KErrNone;
|
|
619 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
620 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Privacy Setting Change"));
|
|
621 |
return KErrNone;
|
|
622 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
623 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Multimedia Call Setting Change"));
|
|
624 |
return KErrNone;
|
|
625 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
626 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Network Security Level Change"));
|
|
627 |
return KErrNone;
|
|
628 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
629 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify USim Applications Selection Mode Change"));
|
|
630 |
return KErrNone;
|
|
631 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
632 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify USim Applications Info Change"));
|
|
633 |
return KErrNone;
|
|
634 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
635 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Mobile Mailbox Numbers functionality"));
|
|
636 |
return KErrNone;
|
|
637 |
case EMobilePhoneNotifyMmsUpdate:
|
|
638 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Mobile MMS Update functionality"));
|
|
639 |
return KErrNone;
|
|
640 |
case EMobilePhoneNotifyMmsConfig:
|
|
641 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Mobile MMS Config functionality"));
|
|
642 |
return KErrNone;
|
|
643 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
644 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Network Investigation Scan Change functionality"));
|
|
645 |
return KErrNone;
|
|
646 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
647 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Network Investigation Scan Event functionality"));
|
|
648 |
return KErrNone;
|
|
649 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
650 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Air Time Duration Change"));
|
|
651 |
return KErrNone;
|
|
652 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
653 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Send Network Service Request"));
|
|
654 |
return KErrNone;
|
|
655 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
656 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify All Send Network Service Request"));
|
|
657 |
return KErrNone;
|
|
658 |
case EMobilePhoneNotifyDTMFEvent:
|
|
659 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify DTMF Event"));
|
|
660 |
return KErrNone;
|
|
661 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
662 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Stored Networks List Change"));
|
|
663 |
return KErrNone;
|
|
664 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
665 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Ciphering Indicator Status Change"));
|
|
666 |
return KErrNone;
|
|
667 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
668 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Identity Service Status Change"));
|
|
669 |
return KErrNone;
|
|
670 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
671 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Identity Suppression Rejected"));
|
|
672 |
return KErrNone;
|
|
673 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
674 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Multicall Indicator Change"));
|
|
675 |
return KErrNone;
|
|
676 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
677 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Ims Authorization Info Changed"));
|
|
678 |
return KErrNone;
|
|
679 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
680 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Smart Card Application Info Change"));
|
|
681 |
return KErrNone;
|
|
682 |
case EMobilePhoneNotifyAPNListChanged:
|
|
683 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify APN Control List Change"));
|
|
684 |
return KErrNone;
|
|
685 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
686 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify APN Control List Service Status Change"));
|
|
687 |
return KErrNone;
|
|
688 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
689 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Authentication Data Change"));
|
|
690 |
return KErrNone;
|
|
691 |
case EMobilePhoneNotifyWlanDataChange:
|
|
692 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Wlan Data Change"));
|
|
693 |
return KErrNone;
|
|
694 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
695 |
LOGTEXT(_L8("CPhoneDMmTsy: RegisterNotification - Notify Wlan SIDs List Change"));
|
|
696 |
return KErrNone;
|
|
697 |
|
|
698 |
default:
|
|
699 |
// Unknown or invalid SMS IPC
|
|
700 |
return KErrNotSupported;
|
|
701 |
}
|
|
702 |
}
|
|
703 |
|
|
704 |
TInt CPhoneDMmTsy::DeregisterNotification(const TInt aIpc)
|
|
705 |
{
|
|
706 |
// DeregisterNotification is called when the server recognises that this notification
|
|
707 |
// will not be posted again because the last client to have a handle on this sub-session
|
|
708 |
// object has just closed the handle.
|
|
709 |
|
|
710 |
// It enables the TSY to "turn off" any regular notification messages that it may
|
|
711 |
// receive from the phone.
|
|
712 |
|
|
713 |
switch (aIpc)
|
|
714 |
{
|
|
715 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
716 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - DTMF Caps Change "));
|
|
717 |
return KErrNone;
|
|
718 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
719 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - DTMF Stop In DTMF String "));
|
|
720 |
return KErrNone;
|
|
721 |
case EMobilePhoneNotifyModeChange:
|
|
722 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Mode Change "));
|
|
723 |
return KErrNone;
|
|
724 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
725 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Registration Status Change "));
|
|
726 |
return KErrNone;
|
|
727 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
728 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Current network Change "));
|
|
729 |
return KErrNone;
|
|
730 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
731 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Current network Change No Location"));
|
|
732 |
return KErrNone;
|
|
733 |
case EMobilePhoneNotifyCellInfoChange:
|
|
734 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Cell information Change "));
|
|
735 |
return KErrNone;
|
|
736 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
737 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - SIM Access Caps Change "));
|
|
738 |
return KErrNone;
|
|
739 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
740 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Battery Info Change "));
|
|
741 |
return KErrNone;
|
|
742 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
743 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Signal Strength Change "));
|
|
744 |
return KErrNone;
|
|
745 |
case EMobilePhoneNotifyIndicatorChange:
|
|
746 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Indicator Change "));
|
|
747 |
return KErrNone;
|
|
748 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
749 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Call Service Caps Change "));
|
|
750 |
return KErrNone;
|
|
751 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
752 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Call Forwarding Status Change "));
|
|
753 |
return KErrNone;
|
|
754 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
755 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Call Forwarding Active"));
|
|
756 |
return KErrNone;
|
|
757 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
758 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Network Selection Setting Change "));
|
|
759 |
return KErrNone;
|
|
760 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
761 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Network Time Info Change "));
|
|
762 |
return KErrNone;
|
|
763 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
764 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Call Barring Status Change"));
|
|
765 |
return KErrNone;
|
|
766 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
767 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Call Waiting Status Change"));
|
|
768 |
return KErrNone;
|
|
769 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
770 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify CCBS Status Change"));
|
|
771 |
return KErrNone;
|
|
772 |
case EMobilePhoneNotifyCCBSRecall:
|
|
773 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify CCBS Recall"));
|
|
774 |
return KErrNone;
|
|
775 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
776 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Alternating Call Caps Change"));
|
|
777 |
return KErrNone;
|
|
778 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
779 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Alternating Mode Caps Change"));
|
|
780 |
return KErrNone;
|
|
781 |
case EMobilePhoneNotifyALSLineChange:
|
|
782 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify ALSLine Change"));
|
|
783 |
return KErrNone;
|
|
784 |
case EMobilePhoneNotifyCostCapsChange:
|
|
785 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Cost Caps Change"));
|
|
786 |
return KErrNone;
|
|
787 |
case EMobilePhoneNotifyCostInfoChange:
|
|
788 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Cost Info Change"));
|
|
789 |
return KErrNone;
|
|
790 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
791 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Security Caps Change"));
|
|
792 |
return KErrNone;
|
|
793 |
case EMobilePhoneNotifyLockInfoChange:
|
|
794 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Lock Info Change"));
|
|
795 |
return KErrNone;
|
|
796 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
797 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Security Code Info Change"));
|
|
798 |
return KErrNone;
|
|
799 |
case EMobilePhoneNotifySecurityEvent:
|
|
800 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify On Security Event"));
|
|
801 |
return KErrNone;
|
|
802 |
case EMobilePhoneNotifyMessageWaiting:
|
|
803 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Message Waiting"));
|
|
804 |
return KErrNone;
|
|
805 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
806 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Icc Message Waiting Indicators Change"));
|
|
807 |
return KErrNone;
|
|
808 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
809 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Fdn Status Change"));
|
|
810 |
return KErrNone;
|
|
811 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
812 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Multicall Params Change"));
|
|
813 |
return KErrNone;
|
|
814 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
815 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Incoming Call Type Change"));
|
|
816 |
return KErrNone;
|
|
817 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
818 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify UUS Setting Change"));
|
|
819 |
return KErrNone;
|
|
820 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
821 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Privacy Setting Change"));
|
|
822 |
return KErrNone;
|
|
823 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
824 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Multimedia Call Setting Change"));
|
|
825 |
return KErrNone;
|
|
826 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
827 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Network Security Level Change"));
|
|
828 |
return KErrNone;
|
|
829 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
830 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify USim Applications Selection Mode Change"));
|
|
831 |
return KErrNone;
|
|
832 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
833 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify USim Applications Info Change"));
|
|
834 |
return KErrNone;
|
|
835 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
836 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Mobile Mailbox Numbers functionality"));
|
|
837 |
return KErrNone;
|
|
838 |
case EMobilePhoneNotifyMmsUpdate:
|
|
839 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Mobile MMS Update functionality"));
|
|
840 |
return KErrNone;
|
|
841 |
case EMobilePhoneNotifyMmsConfig:
|
|
842 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Mobile MMS Config functionality"));
|
|
843 |
return KErrNone;
|
|
844 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
845 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Network Investigation Scan Change functionality"));
|
|
846 |
return KErrNone;
|
|
847 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
848 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Network Investigation Scan Event functionality"));
|
|
849 |
return KErrNone;
|
|
850 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
851 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Air Time Duration Change"));
|
|
852 |
return KErrNone;
|
|
853 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
854 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Send Network Service Request"));
|
|
855 |
return KErrNone;
|
|
856 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
857 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify All Send Network Service Request"));
|
|
858 |
return KErrNone;
|
|
859 |
case EMobilePhoneNotifyDTMFEvent:
|
|
860 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify DTMF Event"));
|
|
861 |
return KErrNone;
|
|
862 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
863 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Stored Networks List Change"));
|
|
864 |
return KErrNone;
|
|
865 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
866 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Ciphering IndicatorStatus Change"));
|
|
867 |
return KErrNone;
|
|
868 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
869 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Identity Service Status Change"));
|
|
870 |
return KErrNone;
|
|
871 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
872 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Identity Suppression Rejected"));
|
|
873 |
return KErrNone;
|
|
874 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
875 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify MulticallIndicator Change"));
|
|
876 |
return KErrNone;
|
|
877 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
878 |
LOGTEXT(_L8("CPhoneDMmTsy:DeregisterNotification - Notify Ims Authorization Info Changed"));
|
|
879 |
return KErrNone;
|
|
880 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
881 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Smart Card Application Info Change"));
|
|
882 |
return KErrNone;
|
|
883 |
case EMobilePhoneNotifyAPNListChanged:
|
|
884 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify APN Control List Change"));
|
|
885 |
return KErrNone;
|
|
886 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
887 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify APN Control List Service Status Change"));
|
|
888 |
return KErrNone;
|
|
889 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
890 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Authentication Data Change"));
|
|
891 |
return KErrNone;
|
|
892 |
case EMobilePhoneNotifyWlanDataChange:
|
|
893 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Wlan Data Change"));
|
|
894 |
return KErrNone;
|
|
895 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
896 |
LOGTEXT(_L8("CPhoneDMmTsy: DeregisterNotification - Notify Wlan SIDs list Change"));
|
|
897 |
return KErrNone;
|
|
898 |
default:
|
|
899 |
// Unknown or invalid sms IPC
|
|
900 |
return KErrNotSupported;
|
|
901 |
}
|
|
902 |
}
|
|
903 |
|
|
904 |
TInt CPhoneDMmTsy::NumberOfSlotsL(const TInt aIpc)
|
|
905 |
{
|
|
906 |
// NumberOfSlotsL is called by the server when it is registering a new notification.
|
|
907 |
// It enables the TSY to tell the server how many buffer slots to allocate for
|
|
908 |
// "repost immediately" notifications that may trigger before clients collect them
|
|
909 |
|
|
910 |
TInt numberOfSlots=1;
|
|
911 |
switch (aIpc)
|
|
912 |
{
|
|
913 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
914 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
915 |
case EMobilePhoneNotifyIndicatorChange:
|
|
916 |
LOGTEXT(_L8("CPhoneDMmTsy: Registered with 10 slots"));
|
|
917 |
numberOfSlots=10;
|
|
918 |
break;
|
|
919 |
|
|
920 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
921 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
922 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
923 |
case EMobilePhoneNotifyCCBSRecall:
|
|
924 |
case EMobilePhoneNotifyDTMFEvent:
|
|
925 |
LOGTEXT(_L8("CPhoneDMmTsy: Registered with 5 slots"));
|
|
926 |
numberOfSlots=5;
|
|
927 |
break;
|
|
928 |
|
|
929 |
case EMobilePhoneNotifyModeChange:
|
|
930 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
931 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
932 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
933 |
case EMobilePhoneNotifyCellInfoChange:
|
|
934 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
935 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
936 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
937 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
938 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
939 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
940 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
941 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
942 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
943 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
944 |
case EMobilePhoneNotifyALSLineChange:
|
|
945 |
case EMobilePhoneNotifyCostCapsChange:
|
|
946 |
case EMobilePhoneNotifyCostInfoChange:
|
|
947 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
948 |
case EMobilePhoneNotifyLockInfoChange:
|
|
949 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
950 |
case EMobilePhoneNotifySecurityEvent:
|
|
951 |
case EMobilePhoneNotifyMessageWaiting:
|
|
952 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
953 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
954 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
955 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
956 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
957 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
958 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
959 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
960 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
961 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
962 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
963 |
case EMobilePhoneNotifyMmsUpdate:
|
|
964 |
case EMobilePhoneNotifyMmsConfig:
|
|
965 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
966 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
967 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
968 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
969 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
970 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
971 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
972 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
973 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
974 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
975 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
976 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
977 |
case EMobilePhoneNotifyAPNListChanged:
|
|
978 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
979 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
980 |
case EMobilePhoneNotifyWlanDataChange:
|
|
981 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
982 |
LOGTEXT(_L8("CPhoneDMmTsy: Registered with 2 slots"));
|
|
983 |
numberOfSlots=2;
|
|
984 |
break;
|
|
985 |
default:
|
|
986 |
// Unknown or invalid Phone IPC
|
|
987 |
User::Leave(KErrNotSupported);
|
|
988 |
break;
|
|
989 |
}
|
|
990 |
return numberOfSlots;
|
|
991 |
}
|
|
992 |
|
|
993 |
|
|
994 |
TInt CPhoneDMmTsy::ExtFunc(const TTsyReqHandle aTsyReqHandle,const TInt aIpc,
|
|
995 |
const TDataPackage& aPackage)
|
|
996 |
{
|
|
997 |
// ExtFunc is called by the server when it has a "extended", i.e. non-core ETel request
|
|
998 |
// for the TSY to process
|
|
999 |
// A request handle, request type and request data are passed to the TSY
|
|
1000 |
|
|
1001 |
TAny* dataPtr=aPackage.Ptr1();
|
|
1002 |
TAny* dataPtr2=aPackage.Ptr2();
|
|
1003 |
|
|
1004 |
// The request data has to extracted from TDataPackage and the TAny* pointers have to
|
|
1005 |
// be "cast" to the expected request data type
|
|
1006 |
|
|
1007 |
switch (aIpc)
|
|
1008 |
{
|
|
1009 |
// Non-Flow controlled requests
|
|
1010 |
|
|
1011 |
case EMobilePhoneGetDTMFCaps:
|
|
1012 |
return GetDTMFCaps(aTsyReqHandle,
|
|
1013 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1014 |
|
|
1015 |
case EMobilePhoneStopDTMFTone:
|
|
1016 |
return StopDTMFTone(aTsyReqHandle);
|
|
1017 |
|
|
1018 |
case EMobilePhoneGetNetworkCaps:
|
|
1019 |
return GetNetworkCaps(aTsyReqHandle,
|
|
1020 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1021 |
|
|
1022 |
case EMobilePhoneGetNetworkRegistrationStatus:
|
|
1023 |
return GetNetworkRegistrationStatus(aTsyReqHandle,
|
|
1024 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneRegistrationStatus*, dataPtr));
|
|
1025 |
|
|
1026 |
case EMobilePhoneGetHomeNetwork:
|
|
1027 |
return GetHomeNetwork(aTsyReqHandle, aPackage.Des1n());
|
|
1028 |
|
|
1029 |
case EMobilePhoneGetCurrentMode:
|
|
1030 |
return GetCurrentMode(aTsyReqHandle,
|
|
1031 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkMode*, dataPtr));
|
|
1032 |
|
|
1033 |
case EMobilePhoneGetCurrentNetwork:
|
|
1034 |
return GetCurrentNetwork(aTsyReqHandle, aPackage.Des1n(),
|
|
1035 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLocationAreaV1*, dataPtr2));
|
|
1036 |
|
|
1037 |
case EMobilePhoneGetCellInfo:
|
|
1038 |
return GetCellInfo(aTsyReqHandle, aPackage.Des1n());
|
|
1039 |
|
|
1040 |
case EMobilePhoneGetCurrentNetworkNoLocation:
|
|
1041 |
return GetCurrentNetwork(aTsyReqHandle, aPackage.Des1n(), NULL);
|
|
1042 |
|
|
1043 |
case EMobilePhoneGetDetectedNetworksPhase1:
|
|
1044 |
return GetDetectedNetworksPhase1(aTsyReqHandle,
|
|
1045 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1046 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1047 |
|
|
1048 |
case EMobilePhoneGetDetectedNetworksPhase2:
|
|
1049 |
return GetDetectedNetworksPhase2(aTsyReqHandle,
|
|
1050 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1051 |
|
|
1052 |
case EMobilePhoneGetDetectedNetworksV2Phase1:
|
|
1053 |
return GetDetectedNetworksV2Phase1(aTsyReqHandle,
|
|
1054 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1055 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1056 |
|
|
1057 |
case EMobilePhoneGetDetectedNetworksV2Phase2:
|
|
1058 |
return GetDetectedNetworksV2Phase2(aTsyReqHandle,
|
|
1059 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1060 |
|
|
1061 |
case EMobilePhoneGetDetectedNetworksV5Phase1:
|
|
1062 |
return GetDetectedNetworksV5Phase1(aTsyReqHandle,
|
|
1063 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1064 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1065 |
|
|
1066 |
case EMobilePhoneGetDetectedNetworksV5Phase2:
|
|
1067 |
return GetDetectedNetworksV5Phase2(aTsyReqHandle,
|
|
1068 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1069 |
|
|
1070 |
case EMobilePhoneGetDetectedNetworksV8Phase1:
|
|
1071 |
return GetDetectedNetworksV8Phase1(aTsyReqHandle,
|
|
1072 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1073 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1074 |
|
|
1075 |
case EMobilePhoneGetDetectedNetworksV8Phase2:
|
|
1076 |
return GetDetectedNetworksV8Phase2(aTsyReqHandle,
|
|
1077 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1078 |
|
|
1079 |
case EMobilePhoneGetNetworkSelectionSetting:
|
|
1080 |
return GetNetworkSelectionSetting(aTsyReqHandle, aPackage.Des1n());
|
|
1081 |
|
|
1082 |
case EMobilePhoneSetNetworkSelectionSetting:
|
|
1083 |
return SetNetworkSelectionSetting(aTsyReqHandle, aPackage.Des1n());
|
|
1084 |
|
|
1085 |
case EMobilePhoneSelectNetwork:
|
|
1086 |
return SelectNetwork(aTsyReqHandle,
|
|
1087 |
REINTERPRET_CAST(TBool*, dataPtr),
|
|
1088 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkManualSelection*, dataPtr2));
|
|
1089 |
|
|
1090 |
case EMobilePhoneGetNITZInfo:
|
|
1091 |
return GetNetworkTimeInfo(aTsyReqHandle,
|
|
1092 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNITZ*, dataPtr));
|
|
1093 |
|
|
1094 |
case EMobilePhoneGetServiceProviderName:
|
|
1095 |
return GetServiceProviderName(aTsyReqHandle,
|
|
1096 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneServiceProviderNameV2*, dataPtr));
|
|
1097 |
|
|
1098 |
case EMobilePhoneGetMultimodeCaps:
|
|
1099 |
return GetMultimodeCaps(aTsyReqHandle,
|
|
1100 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1101 |
|
|
1102 |
case EMobilePhoneGetPhoneStoreInfo:
|
|
1103 |
switch(aPackage.Type())
|
|
1104 |
{
|
|
1105 |
// Switch between the alternative implementations of GetPhoneStoreInfo
|
|
1106 |
case TDataPackage::EPackage1n2u:
|
|
1107 |
return GetPhoneStoreInfo(aTsyReqHandle,
|
|
1108 |
aPackage.Des1n(),aPackage.Des2u());
|
|
1109 |
case TDataPackage::EPackage1n2n:
|
|
1110 |
return GetPhoneStoreInfo(aTsyReqHandle, aPackage.Des2n(),
|
|
1111 |
REINTERPRET_CAST(RMobilePhone::TPhoneStoreNameAndIccType*, dataPtr));
|
|
1112 |
default:
|
|
1113 |
return NULL;
|
|
1114 |
}
|
|
1115 |
|
|
1116 |
case EMobilePhoneGetIccAccessCaps:
|
|
1117 |
return GetIccAccessCaps(aTsyReqHandle,
|
|
1118 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1119 |
|
|
1120 |
case EMobilePhoneGetIccIdentity:
|
|
1121 |
return GetIccIdentity(aTsyReqHandle, REINTERPRET_CAST(RMobilePhone::TIccIdentity*, dataPtr));
|
|
1122 |
|
|
1123 |
case EMobilePhoneGetCustomerServiceProfile:
|
|
1124 |
return GetCustomerServiceProfile(aTsyReqHandle, aPackage.Des1n());
|
|
1125 |
|
|
1126 |
case EMobilePhoneGetServiceTable:
|
|
1127 |
return GetServiceTable(aTsyReqHandle,
|
|
1128 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneServiceTable*,dataPtr),
|
|
1129 |
aPackage.Des2n());
|
|
1130 |
|
|
1131 |
case EMobilePhoneGetBatteryCaps:
|
|
1132 |
return GetBatteryCaps(aTsyReqHandle,
|
|
1133 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1134 |
|
|
1135 |
case EMobilePhoneGetBatteryInfo:
|
|
1136 |
return GetBatteryInfo(aTsyReqHandle,
|
|
1137 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneBatteryInfoV1*, dataPtr));
|
|
1138 |
|
|
1139 |
case EMobilePhoneGetSignalCaps:
|
|
1140 |
return GetSignalCaps(aTsyReqHandle,
|
|
1141 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1142 |
|
|
1143 |
case EMobilePhoneGetSignalStrength:
|
|
1144 |
return GetSignalStrength(aTsyReqHandle,
|
|
1145 |
REINTERPRET_CAST(TInt32*, dataPtr),
|
|
1146 |
REINTERPRET_CAST(TInt8*, dataPtr2));
|
|
1147 |
|
|
1148 |
case EMobilePhoneGetIndicatorCaps:
|
|
1149 |
return GetIndicatorCaps(aTsyReqHandle,
|
|
1150 |
REINTERPRET_CAST(TUint32*, dataPtr),
|
|
1151 |
REINTERPRET_CAST(TUint32*, dataPtr2));
|
|
1152 |
|
|
1153 |
case EMobilePhoneGetIndicator:
|
|
1154 |
return GetIndicator(aTsyReqHandle,
|
|
1155 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1156 |
|
|
1157 |
case EMobilePhoneGetIdentityCaps:
|
|
1158 |
return GetIdentityCaps(aTsyReqHandle,
|
|
1159 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1160 |
|
|
1161 |
case EMobilePhoneGetPhoneId:
|
|
1162 |
return GetPhoneId(aTsyReqHandle,
|
|
1163 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdentityV1*, dataPtr));
|
|
1164 |
|
|
1165 |
case EMobilePhoneGetSubscriberId:
|
|
1166 |
return GetSubscriberId(aTsyReqHandle,
|
|
1167 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneSubscriberId*, dataPtr));
|
|
1168 |
|
|
1169 |
case EMobilePhoneGetDefaultPrivacy:
|
|
1170 |
return GetDefaultPrivacy(aTsyReqHandle,
|
|
1171 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePrivacy*, dataPtr));
|
|
1172 |
|
|
1173 |
case EMobilePhoneSetDefaultPrivacy:
|
|
1174 |
return SetDefaultPrivacy(aTsyReqHandle,
|
|
1175 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePrivacy*, dataPtr));
|
|
1176 |
|
|
1177 |
case EMobilePhoneGetCallServiceCaps:
|
|
1178 |
return GetCallServiceCaps(aTsyReqHandle,
|
|
1179 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1180 |
|
|
1181 |
case EMobilePhoneGetCallForwardingStatusPhase1:
|
|
1182 |
return GetCallForwardingStatusPhase1(aTsyReqHandle,
|
|
1183 |
REINTERPRET_CAST(CRetrieveMobilePhoneCFList::TGetCallForwardingRequest*, dataPtr),
|
|
1184 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1185 |
|
|
1186 |
case EMobilePhoneGetCallForwardingStatusPhase2:
|
|
1187 |
return GetCallForwardingStatusPhase2(aTsyReqHandle,
|
|
1188 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1189 |
|
|
1190 |
case EMobilePhoneGetFeatureCode:
|
|
1191 |
return GetFeatureCodeString(aTsyReqHandle,
|
|
1192 |
REINTERPRET_CAST(RMobilePhone::TNetworkServiceAndAction*, dataPtr),
|
|
1193 |
aPackage.Des2u());
|
|
1194 |
|
|
1195 |
case EMobilePhoneGetIdentityServiceStatus:
|
|
1196 |
return GetIdentityServiceStatus(aTsyReqHandle,
|
|
1197 |
REINTERPRET_CAST(RMobilePhone::TIdServiceAndLocation*, dataPtr),
|
|
1198 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdServiceStatus*,dataPtr2));
|
|
1199 |
|
|
1200 |
case EMobilePhoneGetBarringStatusPhase1:
|
|
1201 |
return GetCallBarringPhase1(aTsyReqHandle,
|
|
1202 |
REINTERPRET_CAST(CRetrieveMobilePhoneCBList::TGetCallBarringRequest*, dataPtr),
|
|
1203 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1204 |
|
|
1205 |
case EMobilePhoneGetBarringStatusPhase2:
|
|
1206 |
return GetCallBarringPhase2(aTsyReqHandle,
|
|
1207 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1208 |
|
|
1209 |
case EMobilePhoneSetCallBarringStatus:
|
|
1210 |
return SetCallBarringStatus(aTsyReqHandle,
|
|
1211 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCBCondition*,dataPtr),
|
|
1212 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCBChangeV1*,dataPtr2));
|
|
1213 |
|
|
1214 |
case EMobilePhoneSetCallBarringPassword:
|
|
1215 |
return SetCallBarringPassword(aTsyReqHandle,
|
|
1216 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePasswordChangeV1*,dataPtr));
|
|
1217 |
|
|
1218 |
case EMobilePhoneSetSSPassword:
|
|
1219 |
return SetSSPassword(aTsyReqHandle,
|
|
1220 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePasswordChangeV2*,dataPtr),
|
|
1221 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1222 |
|
|
1223 |
case EMobilePhoneGetWaitingStatusPhase1:
|
|
1224 |
return GetCallWaitingPhase1(aTsyReqHandle,
|
|
1225 |
REINTERPRET_CAST(CRetrieveMobilePhoneCWList::TGetCallWaitingRequest*, dataPtr),
|
|
1226 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1227 |
|
|
1228 |
case EMobilePhoneGetWaitingStatusPhase2:
|
|
1229 |
return GetCallWaitingPhase2(aTsyReqHandle,
|
|
1230 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1231 |
|
|
1232 |
case EMobilePhoneSetCallWaitingStatus:
|
|
1233 |
return SetCallWaitingStatus(aTsyReqHandle,
|
|
1234 |
REINTERPRET_CAST(RMobilePhone::TMobileService*, dataPtr),
|
|
1235 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneServiceAction*, dataPtr2));
|
|
1236 |
|
|
1237 |
case EMobilePhoneGetCCBSStatus:
|
|
1238 |
return GetCCBSStatus(aTsyReqHandle,
|
|
1239 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCCBSStatus*,dataPtr),
|
|
1240 |
REINTERPRET_CAST(RMobilePhone::TMobileInfoLocation*,dataPtr2));
|
|
1241 |
|
|
1242 |
case EMobilePhoneAcceptCCBSRecall:
|
|
1243 |
return AcceptCCBSRecall(aTsyReqHandle,
|
|
1244 |
REINTERPRET_CAST(TInt* ,dataPtr),aPackage.Des2u());
|
|
1245 |
|
|
1246 |
case EMobilePhoneRefuseCCBSRecall:
|
|
1247 |
return RefuseCCBSRecall(aTsyReqHandle,
|
|
1248 |
REINTERPRET_CAST(TInt* ,dataPtr));
|
|
1249 |
|
|
1250 |
case EMobilePhoneDeactivateCCBS:
|
|
1251 |
return DeactivateCCBS(aTsyReqHandle,
|
|
1252 |
REINTERPRET_CAST(TInt* ,dataPtr));
|
|
1253 |
|
|
1254 |
case EMobilePhoneGetCompletionRequestsPhase1:
|
|
1255 |
return GetCallCompletionPhase1(aTsyReqHandle,
|
|
1256 |
REINTERPRET_CAST(RMobilePhone::TClientId*,dataPtr), REINTERPRET_CAST(TInt*,dataPtr2));
|
|
1257 |
|
|
1258 |
case EMobilePhoneGetCompletionRequestsPhase2:
|
|
1259 |
return GetCallCompletionPhase2(aTsyReqHandle,
|
|
1260 |
REINTERPRET_CAST(RMobilePhone::TClientId*,dataPtr), aPackage.Des2n());
|
|
1261 |
|
|
1262 |
case EMobilePhoneGetAlternatingCallCaps:
|
|
1263 |
return GetAlternatingCallCaps(aTsyReqHandle,
|
|
1264 |
REINTERPRET_CAST(TUint32*,dataPtr));
|
|
1265 |
|
|
1266 |
case EMobilePhoneGetAlternatingCallMode:
|
|
1267 |
return GetAlternatingCallMode(aTsyReqHandle,
|
|
1268 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneAlternatingCallMode*,dataPtr),
|
|
1269 |
REINTERPRET_CAST(RMobilePhone::TMobileService*,dataPtr2));
|
|
1270 |
|
|
1271 |
case EMobilePhoneSetAlternatingCallMode:
|
|
1272 |
return SetAlternatingCallMode(aTsyReqHandle,
|
|
1273 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneAlternatingCallMode*,dataPtr),
|
|
1274 |
REINTERPRET_CAST(RMobilePhone::TMobileService*,dataPtr2));
|
|
1275 |
|
|
1276 |
case EMobilePhoneGetALSLine:
|
|
1277 |
return GetALSLine(aTsyReqHandle,
|
|
1278 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneALSLine*,dataPtr));
|
|
1279 |
|
|
1280 |
case EMobilePhoneSetALSLine:
|
|
1281 |
return SetALSLine(aTsyReqHandle,
|
|
1282 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneALSLine*,dataPtr));
|
|
1283 |
|
|
1284 |
case EMobilePhoneGetCostCaps:
|
|
1285 |
return GetCostCaps(aTsyReqHandle,
|
|
1286 |
REINTERPRET_CAST(TUint32*,dataPtr));
|
|
1287 |
|
|
1288 |
case EMobilePhoneSetMaxCostMeter:
|
|
1289 |
return SetMaxCostMeter(aTsyReqHandle,
|
|
1290 |
REINTERPRET_CAST(TUint*,dataPtr));
|
|
1291 |
|
|
1292 |
case EMobilePhoneClearCostMeter:
|
|
1293 |
return ClearCostMeter(aTsyReqHandle,
|
|
1294 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCostMeters*,dataPtr));
|
|
1295 |
|
|
1296 |
case EMobilePhoneSetPuct:
|
|
1297 |
return SetPuct(aTsyReqHandle,aPackage.Des1n());
|
|
1298 |
|
|
1299 |
case EMobilePhoneGetCostInfo:
|
|
1300 |
return GetCostInfo(aTsyReqHandle,aPackage.Des1n());
|
|
1301 |
|
|
1302 |
case EMobilePhoneGetSecurityCaps:
|
|
1303 |
return GetSecurityCaps(aTsyReqHandle,
|
|
1304 |
REINTERPRET_CAST(TUint32*,dataPtr));
|
|
1305 |
|
|
1306 |
case EMobilePhoneGetLockInfo:
|
|
1307 |
return GetLockInfo(aTsyReqHandle,
|
|
1308 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLock *, dataPtr),
|
|
1309 |
aPackage.Des2n());
|
|
1310 |
|
|
1311 |
case EMobilePhoneSetLockSetting:
|
|
1312 |
return SetLockSetting(aTsyReqHandle,
|
|
1313 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLock *, dataPtr),
|
|
1314 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLockSetting *, dataPtr2)
|
|
1315 |
);
|
|
1316 |
case EMobilePhoneChangeSecurityCode:
|
|
1317 |
return ChangeSecurityCode(aTsyReqHandle,
|
|
1318 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneSecurityCode *, dataPtr),
|
|
1319 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePasswordChangeV1 *, dataPtr2));
|
|
1320 |
|
|
1321 |
case EMobilePhoneGetSecurityCodeInfo:
|
|
1322 |
return GetSecurityCodeInfo(aTsyReqHandle,
|
|
1323 |
reinterpret_cast<RMobilePhone::TMobilePhoneSecurityCode *> (dataPtr),
|
|
1324 |
aPackage.Des2n());
|
|
1325 |
|
|
1326 |
case EMobilePhoneVerifySecurityCode:
|
|
1327 |
return VerifySecurityCode(aTsyReqHandle,
|
|
1328 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneSecurityCode *,dataPtr),
|
|
1329 |
REINTERPRET_CAST(RMobilePhone::TCodeAndUnblockCode *, dataPtr2));
|
|
1330 |
|
|
1331 |
case EMobilePhoneAbortSecurityCode:
|
|
1332 |
return AbortSecurityCode(aTsyReqHandle,
|
|
1333 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneSecurityCode *, dataPtr));
|
|
1334 |
|
|
1335 |
case EMobilePhoneGetFdnStatus:
|
|
1336 |
return GetFdnStatus(aTsyReqHandle,
|
|
1337 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneFdnStatus*, dataPtr));
|
|
1338 |
|
|
1339 |
case EMobilePhoneSetFdnSetting:
|
|
1340 |
return SetFdnSetting(aTsyReqHandle,
|
|
1341 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneFdnSetting*, dataPtr));
|
|
1342 |
|
|
1343 |
case EMobilePhoneGetMulticallParams:
|
|
1344 |
return GetMulticallParams(aTsyReqHandle, aPackage.Des1n());
|
|
1345 |
|
|
1346 |
case EMobilePhoneSetMulticallParams:
|
|
1347 |
return SetMulticallParams(aTsyReqHandle, REINTERPRET_CAST(TInt*, dataPtr));
|
|
1348 |
|
|
1349 |
case EMobilePhoneGetIncomingCallType:
|
|
1350 |
return GetIncomingCallType(aTsyReqHandle,
|
|
1351 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIncomingCallType*, dataPtr),
|
|
1352 |
aPackage.Des2n());
|
|
1353 |
|
|
1354 |
case EMobilePhoneSetIncomingCallType:
|
|
1355 |
return SetIncomingCallType(aTsyReqHandle,
|
|
1356 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIncomingCallType*, dataPtr),
|
|
1357 |
aPackage.Des2n());
|
|
1358 |
|
|
1359 |
case EMobilePhoneGetUUSSetting:
|
|
1360 |
return GetUUSSetting(aTsyReqHandle,
|
|
1361 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneUUSSetting*, dataPtr));
|
|
1362 |
|
|
1363 |
case EMobilePhoneSetUUSSetting:
|
|
1364 |
return SetUUSSetting(aTsyReqHandle,
|
|
1365 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneUUSSetting*, dataPtr));
|
|
1366 |
|
|
1367 |
case EMobilePhoneGetIccMessageWaitingIndicators:
|
|
1368 |
return GetIccMessageWaitingIndicators(aTsyReqHandle,aPackage.Des1n());
|
|
1369 |
|
|
1370 |
case EMobilePhoneSetIccMessageWaitingIndicators:
|
|
1371 |
return SetIccMessageWaitingIndicators(aTsyReqHandle,aPackage.Des1n());
|
|
1372 |
|
|
1373 |
case EMobilePhoneGetMultimediaCallPreference:
|
|
1374 |
return GetMultimediaCallPreference(aTsyReqHandle,
|
|
1375 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneMultimediaSettings*, dataPtr));
|
|
1376 |
|
|
1377 |
case EMobilePhoneSetMultimediaCallPreference:
|
|
1378 |
return SetMultimediaCallPreference(aTsyReqHandle,
|
|
1379 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneMultimediaSettings*, dataPtr));
|
|
1380 |
|
|
1381 |
case EMobilePhoneGetNetworkSecurityLevel:
|
|
1382 |
return GetNetworkSecurityLevel(aTsyReqHandle,
|
|
1383 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkSecurity*, dataPtr));
|
|
1384 |
|
|
1385 |
case EMobilePhoneEnumerateUSimApplications:
|
|
1386 |
return EnumerateUSimApplications(aTsyReqHandle,
|
|
1387 |
REINTERPRET_CAST(TInt*, dataPtr),
|
|
1388 |
REINTERPRET_CAST(RMobilePhone::TAID*, dataPtr2));
|
|
1389 |
|
|
1390 |
case EMobilePhoneGetUSimAppsSelectionMode:
|
|
1391 |
return GetUSimAppsSelectionMode(aTsyReqHandle,
|
|
1392 |
REINTERPRET_CAST(RMobilePhone::TUSimSelectionMode*, dataPtr));
|
|
1393 |
|
|
1394 |
case EMobilePhoneSetUSimAppsSelectionMode:
|
|
1395 |
return SetUSimAppsSelectionMode(aTsyReqHandle,
|
|
1396 |
REINTERPRET_CAST(RMobilePhone::TUSimSelectionMode*, dataPtr));
|
|
1397 |
|
|
1398 |
case EMobilePhoneSetUSimApplicationStatus:
|
|
1399 |
return SetUSimApplicationStatus(aTsyReqHandle,
|
|
1400 |
REINTERPRET_CAST(RMobilePhone::TAID*, dataPtr),
|
|
1401 |
REINTERPRET_CAST(RMobilePhone::TUSimAppAction*, dataPtr2));
|
|
1402 |
|
|
1403 |
case EMobilePhoneGetUSimApplicationsInfo:
|
|
1404 |
return GetUSimApplicationInfo(aTsyReqHandle,
|
|
1405 |
REINTERPRET_CAST(TInt*, dataPtr),
|
|
1406 |
REINTERPRET_CAST(RMobilePhone::TUSimApplicationInfoV2*, dataPtr2));
|
|
1407 |
|
|
1408 |
case EMobilePhoneEnumerateSmartCardApplications:
|
|
1409 |
return EnumerateSmartCardApplications(aTsyReqHandle,
|
|
1410 |
reinterpret_cast<TUint*>(dataPtr));
|
|
1411 |
|
|
1412 |
case EMobilePhoneGetSmartCardApplicationInfo:
|
|
1413 |
return GetSmartCardApplicationInfo(aTsyReqHandle, reinterpret_cast<TUint*>(dataPtr), aPackage.Des2n());
|
|
1414 |
|
|
1415 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
1416 |
return NotifySmartCardApplicationInfoChange(aTsyReqHandle, reinterpret_cast<RMobilePhone::TSmartCardApplicationEvent*>(dataPtr2), reinterpret_cast<RMobilePhone::TAID*>(dataPtr));
|
|
1417 |
|
|
1418 |
case EMobilePhoneSetSmartCardApplicationStatus:
|
|
1419 |
return SetSmartCardApplicationStatus(aTsyReqHandle, reinterpret_cast<RMobilePhone::TAID*>(dataPtr), *reinterpret_cast<RMobilePhone::TSmartCardApplicationAction*>(dataPtr2));
|
|
1420 |
|
|
1421 |
case EMobilePhoneGetScFileInfo:
|
|
1422 |
return GetScFileInfo(aTsyReqHandle, *reinterpret_cast<RMobilePhone::TScFilePath*>(dataPtr), aPackage.Des2n());
|
|
1423 |
|
|
1424 |
case EMobilePhoneReadScFile:
|
|
1425 |
return ReadScFile(aTsyReqHandle, *reinterpret_cast<RMobilePhone::TScFilePathWithAccessOffsets*>(dataPtr), aPackage.Des2n());
|
|
1426 |
|
|
1427 |
case EMobilePhoneUpdateScFile:
|
|
1428 |
return UpdateScFile(aTsyReqHandle, *reinterpret_cast<RMobilePhone::TScFilePathWithAccessOffsets*>(dataPtr), aPackage.Des2n());
|
|
1429 |
|
|
1430 |
case EMobilePhoneGetCurrentActiveUSimApplication:
|
|
1431 |
return GetCurrentActiveUSimApplication(aTsyReqHandle, reinterpret_cast<RMobilePhone::TAID*>(dataPtr));
|
|
1432 |
|
|
1433 |
case EMobilePhoneGetHomeNetworkSearchPeriod:
|
|
1434 |
return GetHomeNetworkSearchPeriod(aTsyReqHandle,
|
|
1435 |
REINTERPRET_CAST(TInt*, dataPtr));
|
|
1436 |
|
|
1437 |
case EMobilePhoneGetLastUsedAccessTechnology:
|
|
1438 |
return GetLastUsedAccessTechnology(aTsyReqHandle,
|
|
1439 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkAccess*, dataPtr));
|
|
1440 |
|
|
1441 |
case EMobilePhoneGetNetworkInvScanSetting:
|
|
1442 |
return GetNetworkInvScanSetting(aTsyReqHandle,
|
|
1443 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneInvestigationScan*, dataPtr));
|
|
1444 |
|
|
1445 |
case EMobilePhoneGetCallForwardingIndicator:
|
|
1446 |
return GetCallForwardingIndicator(aTsyReqHandle, aPackage.Des1n());
|
|
1447 |
|
|
1448 |
case EMobilePhoneGetCompMethodName:
|
|
1449 |
return GetCompMethodName(aTsyReqHandle,
|
|
1450 |
*REINTERPRET_CAST(TUint8*, dataPtr), aPackage.Des2u());
|
|
1451 |
|
|
1452 |
case EMobilePhoneEnumerateAPNEntries:
|
|
1453 |
return EnumerateAPNEntries(aTsyReqHandle,
|
|
1454 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1455 |
|
|
1456 |
case EMobilePhoneGetAPNname:
|
|
1457 |
return GetAPNname(aTsyReqHandle,
|
|
1458 |
*REINTERPRET_CAST(TUint32*, dataPtr), aPackage.Des2n());
|
|
1459 |
|
|
1460 |
case EMobilePhoneAppendAPNName:
|
|
1461 |
return AppendAPNName(aTsyReqHandle, aPackage.Des1n());
|
|
1462 |
|
|
1463 |
case EMobilePhoneDeleteAPNName:
|
|
1464 |
return DeleteAPNName(aTsyReqHandle,
|
|
1465 |
*REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1466 |
|
|
1467 |
case EMobilePhoneNotifyAPNListChanged:
|
|
1468 |
return NotifyAPNListChanged(aTsyReqHandle);
|
|
1469 |
|
|
1470 |
case EMobilePhoneSetAPNControlListServiceStatus:
|
|
1471 |
return SetAPNControlListServiceStatus(aTsyReqHandle,
|
|
1472 |
*REINTERPRET_CAST(RMobilePhone::TAPNControlListServiceStatus*, dataPtr));
|
|
1473 |
|
|
1474 |
case EMobilePhoneGetAPNControlListServiceStatus:
|
|
1475 |
return GetAPNControlListServiceStatus(aTsyReqHandle,
|
|
1476 |
REINTERPRET_CAST(RMobilePhone::TAPNControlListServiceStatus*, dataPtr));
|
|
1477 |
|
|
1478 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
1479 |
return NotifyAPNControlListServiceStatusChange(aTsyReqHandle,
|
|
1480 |
REINTERPRET_CAST(RMobilePhone::TAPNControlListServiceStatus*, dataPtr));
|
|
1481 |
|
|
1482 |
case EMobilePhoneGetAirTimeDuration:
|
|
1483 |
return GetAirTimeDuration(aTsyReqHandle,
|
|
1484 |
REINTERPRET_CAST(TTimeIntervalSeconds*, dataPtr));
|
|
1485 |
|
|
1486 |
case EMobilePhoneClearBlacklist:
|
|
1487 |
return ClearBlacklist(aTsyReqHandle);
|
|
1488 |
|
|
1489 |
case EMobilePhoneGetPersonalisationCaps:
|
|
1490 |
return GetPersonalisationCaps(aTsyReqHandle,
|
|
1491 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1492 |
|
|
1493 |
case EMobilePhoneGetPersonalisationStatus:
|
|
1494 |
return GetPersonalisationStatus(aTsyReqHandle,
|
|
1495 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1496 |
|
|
1497 |
case EMobilePhoneSetPersonalisationStatus:
|
|
1498 |
return SetPersonalisationStatus(aTsyReqHandle,
|
|
1499 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePersonalisation*, dataPtr), aPackage.Des2u());
|
|
1500 |
|
|
1501 |
case EMobilePhoneGetNetworkName:
|
|
1502 |
return GetCurrentNetworkName(aTsyReqHandle, aPackage.Des1n(), aPackage.Des2n());
|
|
1503 |
|
|
1504 |
case EMobilePhoneGetPreferredNetworksPhase1:
|
|
1505 |
return GetPreferredNetworksPhase1(aTsyReqHandle,
|
|
1506 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1507 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1508 |
|
|
1509 |
case EMobilePhoneGetPreferredNetworksPhase2:
|
|
1510 |
return GetPreferredNetworksPhase2(aTsyReqHandle,
|
|
1511 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1512 |
|
|
1513 |
case EMobilePhoneStorePreferredNetworksList:
|
|
1514 |
return StorePreferredNetworksList(aTsyReqHandle, aPackage.Des1n());
|
|
1515 |
|
|
1516 |
case EMobilePhoneGetCipheringIndicatorStatus:
|
|
1517 |
return GetCipheringIndicatorStatus(aTsyReqHandle,
|
|
1518 |
*REINTERPRET_CAST(RMobilePhone::TMobileCallCipheringIndicator*, dataPtr));
|
|
1519 |
|
|
1520 |
case EMobilePhoneSetIdentityServiceStatus:
|
|
1521 |
return SetIdentityServiceStatus(aTsyReqHandle,
|
|
1522 |
*REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdService*, dataPtr),
|
|
1523 |
*REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdServiceSetting*, dataPtr2));
|
|
1524 |
|
|
1525 |
// Flow controlled requests
|
|
1526 |
|
|
1527 |
case EMobilePhoneSendNetworkServiceRequest:
|
|
1528 |
return SendNetworkServiceRequest(aTsyReqHandle, aPackage.Des1u());
|
|
1529 |
|
|
1530 |
case EMobilePhoneSendDTMFTones:
|
|
1531 |
return SendDTMFTones(aTsyReqHandle, aPackage.Des1u());
|
|
1532 |
|
|
1533 |
case EMobilePhoneReadDTMFTones:
|
|
1534 |
return ReadDTMFTones(aTsyReqHandle, aPackage.Des1u());
|
|
1535 |
|
|
1536 |
case EMobilePhoneStartDTMFTone:
|
|
1537 |
return StartDTMFTone(aTsyReqHandle,
|
|
1538 |
REINTERPRET_CAST(TChar*, dataPtr));
|
|
1539 |
|
|
1540 |
case EMobilePhoneContinueDTMFStringSending:
|
|
1541 |
return ContinueDTMFStringSending(aTsyReqHandle,
|
|
1542 |
REINTERPRET_CAST(TBool*,dataPtr));
|
|
1543 |
|
|
1544 |
case EMobilePhoneSetCallForwardingStatus:
|
|
1545 |
return SetCallForwardingStatus(aTsyReqHandle,
|
|
1546 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFCondition*, dataPtr),
|
|
1547 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFChangeV1*, dataPtr2) );
|
|
1548 |
|
|
1549 |
case EMobilePhoneProgramFeatureCode:
|
|
1550 |
return ProgramFeatureCodeString(aTsyReqHandle,
|
|
1551 |
aPackage.Des2u(),
|
|
1552 |
REINTERPRET_CAST(RMobilePhone::TNetworkServiceAndAction*, dataPtr));
|
|
1553 |
|
|
1554 |
case EMobilePhoneTerminateAllCalls:
|
|
1555 |
return TerminateAllCalls(aTsyReqHandle);
|
|
1556 |
|
|
1557 |
case EMobilePhoneTerminateActiveCalls:
|
|
1558 |
return TerminateActiveCalls(aTsyReqHandle);
|
|
1559 |
|
|
1560 |
case EMobilePhoneGetMailboxNumbers:
|
|
1561 |
return GetMailboxNumbers (aTsyReqHandle, aPackage.Des1n());
|
|
1562 |
|
|
1563 |
case EMobilePhoneSetMmsUserConnParams:
|
|
1564 |
return SetMmsUserConnParams(aTsyReqHandle, aPackage.Des1n());
|
|
1565 |
|
|
1566 |
case EMobilePhoneSetMmsUserPreferences:
|
|
1567 |
return SetMmsUserPreferences(aTsyReqHandle, aPackage.Des1n());
|
|
1568 |
|
|
1569 |
case EMobilePhoneGetMmsConfig:
|
|
1570 |
return GetMmsConfig(aTsyReqHandle,
|
|
1571 |
*REINTERPRET_CAST(RMobilePhone::TMmsConnParams*,dataPtr), aPackage.Des2n());
|
|
1572 |
//
|
|
1573 |
// Notification requests
|
|
1574 |
//
|
|
1575 |
|
|
1576 |
case EMobilePhoneNotifyModeChange:
|
|
1577 |
return NotifyModeChange(aTsyReqHandle,
|
|
1578 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkMode*, dataPtr));
|
|
1579 |
|
|
1580 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
1581 |
return NotifyDTMFCapsChange(aTsyReqHandle,
|
|
1582 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1583 |
|
|
1584 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
1585 |
return NotifyStopInDTMFString(aTsyReqHandle);
|
|
1586 |
|
|
1587 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
1588 |
return NotifyNetworkRegistrationStatusChange(aTsyReqHandle,
|
|
1589 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneRegistrationStatus*, dataPtr));
|
|
1590 |
|
|
1591 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
1592 |
return NotifyCurrentNetworkChange(aTsyReqHandle, aPackage.Des1n(),
|
|
1593 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLocationAreaV1*, dataPtr2));
|
|
1594 |
|
|
1595 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
1596 |
return NotifyCurrentNetworkChange(aTsyReqHandle, aPackage.Des1n(), NULL);
|
|
1597 |
|
|
1598 |
case EMobilePhoneNotifyCellInfoChange:
|
|
1599 |
return NotifyCellInfoChange(aTsyReqHandle, aPackage.Des1n());
|
|
1600 |
|
|
1601 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
1602 |
return NotifyIccAccessCapsChange(aTsyReqHandle,
|
|
1603 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1604 |
|
|
1605 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
1606 |
return NotifyBatteryInfoChange(aTsyReqHandle,
|
|
1607 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneBatteryInfoV1*, dataPtr));
|
|
1608 |
|
|
1609 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
1610 |
return NotifySignalStrengthChange(aTsyReqHandle,
|
|
1611 |
REINTERPRET_CAST(TInt32*, dataPtr), REINTERPRET_CAST(TInt8*, dataPtr2));
|
|
1612 |
|
|
1613 |
case EMobilePhoneNotifyIndicatorChange:
|
|
1614 |
return NotifyIndicatorChange(aTsyReqHandle, REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1615 |
|
|
1616 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
1617 |
return NotifyDefaultPrivacyChange(aTsyReqHandle,
|
|
1618 |
REINTERPRET_CAST(RMobilePhone::TMobilePhonePrivacy*, dataPtr));
|
|
1619 |
|
|
1620 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
1621 |
return NotifyCallForwardingStatusChange(aTsyReqHandle,
|
|
1622 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFCondition*, dataPtr));
|
|
1623 |
|
|
1624 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
1625 |
return NotifyCallForwardingActive(aTsyReqHandle,
|
|
1626 |
REINTERPRET_CAST(RMobilePhone::TMobileService*, dataPtr),
|
|
1627 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFActive*, dataPtr2));
|
|
1628 |
|
|
1629 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
1630 |
return NotifyNetworkSelectionSettingChange(aTsyReqHandle, aPackage.Des1n());
|
|
1631 |
|
|
1632 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
1633 |
return NotifyNetworkTimeInfoChange(aTsyReqHandle,
|
|
1634 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNITZ*, dataPtr));
|
|
1635 |
|
|
1636 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
1637 |
return NotifyCallServiceCapsChange(aTsyReqHandle,
|
|
1638 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1639 |
|
|
1640 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
1641 |
return NotifyCallBarringStatusChange(aTsyReqHandle,
|
|
1642 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCBCondition*,dataPtr));
|
|
1643 |
|
|
1644 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
1645 |
return NotifyCallWaitingStatusChange(aTsyReqHandle,
|
|
1646 |
aPackage.Des1n());
|
|
1647 |
|
|
1648 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
1649 |
return NotifyCCBSStatusChange(aTsyReqHandle,
|
|
1650 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneCCBSStatus*,dataPtr));
|
|
1651 |
|
|
1652 |
case EMobilePhoneNotifyCCBSRecall:
|
|
1653 |
return NotifyCCBSRecall(aTsyReqHandle,aPackage.Des1n());
|
|
1654 |
|
|
1655 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
1656 |
return NotifyAlternatingCallCapsChange(aTsyReqHandle,
|
|
1657 |
REINTERPRET_CAST(TUint32*,dataPtr));
|
|
1658 |
|
|
1659 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
1660 |
return NotifyAlternatingCallModeChange(aTsyReqHandle,
|
|
1661 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneAlternatingCallMode*,dataPtr),
|
|
1662 |
REINTERPRET_CAST(RMobilePhone::TMobileService*,dataPtr2));
|
|
1663 |
|
|
1664 |
case EMobilePhoneNotifyALSLineChange:
|
|
1665 |
return NotifyALSLineChange(aTsyReqHandle,
|
|
1666 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneALSLine*,dataPtr));
|
|
1667 |
|
|
1668 |
case EMobilePhoneNotifyCostCapsChange:
|
|
1669 |
return NotifyCostCapsChange(aTsyReqHandle,
|
|
1670 |
REINTERPRET_CAST(TUint32*,dataPtr));
|
|
1671 |
|
|
1672 |
case EMobilePhoneNotifyCostInfoChange:
|
|
1673 |
return NotifyCostInfoChange(aTsyReqHandle,aPackage.Des1n());
|
|
1674 |
|
|
1675 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
1676 |
return NotifySecurityCapsChange(aTsyReqHandle,
|
|
1677 |
REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1678 |
|
|
1679 |
case EMobilePhoneNotifyLockInfoChange:
|
|
1680 |
return NotifyLockInfoChange(aTsyReqHandle,
|
|
1681 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneLock *, dataPtr),
|
|
1682 |
aPackage.Des2n());
|
|
1683 |
|
|
1684 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
1685 |
return NotifySecurityCodeInfoChange(aTsyReqHandle,
|
|
1686 |
reinterpret_cast<RMobilePhone::TMobilePhoneSecurityCode*> (dataPtr),
|
|
1687 |
aPackage.Des2n());
|
|
1688 |
|
|
1689 |
case EMobilePhoneNotifySecurityEvent:
|
|
1690 |
return NotifyOnSecurityEvent(aTsyReqHandle,
|
|
1691 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneSecurityEvent*,dataPtr));
|
|
1692 |
|
|
1693 |
case EMobilePhoneNotifyMessageWaiting:
|
|
1694 |
return NotifyMessageWaiting(aTsyReqHandle,REINTERPRET_CAST(TInt*,dataPtr));
|
|
1695 |
|
|
1696 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
1697 |
return NotifyIccMessageWaitingIndicatorsChange(aTsyReqHandle,aPackage.Des1n());
|
|
1698 |
|
|
1699 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
1700 |
return NotifyFdnStatusChange(aTsyReqHandle,
|
|
1701 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneFdnStatus*,dataPtr));
|
|
1702 |
|
|
1703 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
1704 |
return NotifyMulticallParamsChange(aTsyReqHandle, aPackage.Des1n());
|
|
1705 |
|
|
1706 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
1707 |
return NotifyIncomingCallTypeChange(aTsyReqHandle,
|
|
1708 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIncomingCallType*, dataPtr),
|
|
1709 |
aPackage.Des2n());
|
|
1710 |
|
|
1711 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
1712 |
return NotifyUUSSettingChange(aTsyReqHandle,
|
|
1713 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneUUSSetting*, dataPtr));
|
|
1714 |
|
|
1715 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
1716 |
return NotifyMultimediaCallPreferenceChange(aTsyReqHandle,
|
|
1717 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneMultimediaSettings*, dataPtr));
|
|
1718 |
|
|
1719 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
1720 |
return NotifyNetworkSecurityLevelChange(aTsyReqHandle,
|
|
1721 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkSecurity*, dataPtr));
|
|
1722 |
|
|
1723 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
1724 |
return NotifyUSimAppsSelectionModeChange(aTsyReqHandle,
|
|
1725 |
REINTERPRET_CAST(RMobilePhone::TUSimSelectionMode*, dataPtr));
|
|
1726 |
|
|
1727 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
1728 |
return NotifyUSimApplicationsInfoChange(aTsyReqHandle,
|
|
1729 |
REINTERPRET_CAST(TInt*, dataPtr),
|
|
1730 |
REINTERPRET_CAST(RMobilePhone::TAID*, dataPtr2));
|
|
1731 |
|
|
1732 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
1733 |
return NotifyMailboxNumbersChange (aTsyReqHandle, aPackage.Des1n());
|
|
1734 |
|
|
1735 |
case EMobilePhoneNotifyMmsUpdate:
|
|
1736 |
return NotifyMmsUpdate (aTsyReqHandle, aPackage.Des1n());
|
|
1737 |
|
|
1738 |
case EMobilePhoneNotifyMmsConfig:
|
|
1739 |
return NotifyMmsConfig(aTsyReqHandle,
|
|
1740 |
*REINTERPRET_CAST(RMobilePhone::TMmsConnParams*,dataPtr), aPackage.Des2n());
|
|
1741 |
|
|
1742 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
1743 |
return NotifyNetworkInvScanChange(aTsyReqHandle,
|
|
1744 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneInvestigationScan*, dataPtr));
|
|
1745 |
|
|
1746 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
1747 |
return NotifyNetworkInvScanEvent(aTsyReqHandle,
|
|
1748 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneInvestigationScanEvent*, dataPtr));
|
|
1749 |
|
|
1750 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
1751 |
return NotifyAirTimeDurationChange(aTsyReqHandle,
|
|
1752 |
REINTERPRET_CAST(TTimeIntervalSeconds*,dataPtr));
|
|
1753 |
|
|
1754 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
1755 |
return NotifySendNetworkServiceRequest(aTsyReqHandle,
|
|
1756 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNotifySendSSOperation*, dataPtr), aPackage.Des2n());
|
|
1757 |
|
|
1758 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
1759 |
return NotifyAllSendNetworkServiceRequest(aTsyReqHandle,
|
|
1760 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneNotifySendSSOperation*, dataPtr), aPackage.Des2n());
|
|
1761 |
|
|
1762 |
case EMobilePhoneNotifyDTMFEvent:
|
|
1763 |
return NotifyDTMFEvent(aTsyReqHandle, REINTERPRET_CAST(RMobilePhone::TMobilePhoneDTMFEvent*, dataPtr));
|
|
1764 |
|
|
1765 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
1766 |
return NotifyStorePreferredNetworksListChange(aTsyReqHandle);
|
|
1767 |
|
|
1768 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
1769 |
return NotifyCipheringIndicatorStatus(aTsyReqHandle,
|
|
1770 |
*REINTERPRET_CAST(RMobilePhone::TMobileCallCipheringIndicator*, dataPtr));
|
|
1771 |
|
|
1772 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
1773 |
return NotifyIdentityServiceStatus(aTsyReqHandle,
|
|
1774 |
*REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdService*, dataPtr),
|
|
1775 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneIdServiceStatus*, dataPtr2));
|
|
1776 |
|
|
1777 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
1778 |
return NotifyIdentitySuppressionRejected(aTsyReqHandle);
|
|
1779 |
|
|
1780 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
1781 |
return NotifyMulticallIndicatorChange(aTsyReqHandle,
|
|
1782 |
REINTERPRET_CAST(RMobilePhone::TMobilePhoneMulticallIndicator*, dataPtr));
|
|
1783 |
|
|
1784 |
case EMobilePhoneAuthorizationInfoPhase1:
|
|
1785 |
return GetAuthorizationInfoPhase1(aTsyReqHandle,
|
|
1786 |
REINTERPRET_CAST(RMobilePhone::TClientId*,dataPtr),
|
|
1787 |
REINTERPRET_CAST(TInt*,dataPtr2));
|
|
1788 |
|
|
1789 |
|
|
1790 |
case EMobilePhoneAuthorizationInfoPhase2:
|
|
1791 |
return GetAuthorizationInfoPhase2(aTsyReqHandle,
|
|
1792 |
REINTERPRET_CAST(RMobilePhone::TClientId*,dataPtr), aPackage.Des2n());
|
|
1793 |
|
|
1794 |
case EMobilePhoneIMSAuthenticate:
|
|
1795 |
return GetAuthenticationData(aTsyReqHandle, aPackage.Des1n());
|
|
1796 |
|
|
1797 |
case EMobilePhoneSmartCardAuthenticate:
|
|
1798 |
return GetSmartCardAuthenticationData(aTsyReqHandle, aPackage.Des1n(),
|
|
1799 |
reinterpret_cast<RMobilePhone::TAID*>(dataPtr2));
|
|
1800 |
|
|
1801 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
1802 |
return NotifyImsAuthorizationInfoChanged(aTsyReqHandle);
|
|
1803 |
|
|
1804 |
case EETelPhoneSetEmergencyClient:
|
|
1805 |
return SetEmergencyClient(aTsyReqHandle,REINTERPRET_CAST(TUint32*, dataPtr));
|
|
1806 |
|
|
1807 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
1808 |
return NotifyAuthenticateDataChange(aTsyReqHandle, aPackage.Des1n());
|
|
1809 |
|
|
1810 |
case EMobilePhoneGetAuthenticationParams:
|
|
1811 |
return GetAuthenticationParams(aTsyReqHandle, aPackage.Des1n(),aPackage.Des2n());
|
|
1812 |
|
|
1813 |
case EMobilePhoneSetGbaBootstrapParams:
|
|
1814 |
return SetGbaBootstrapParams(aTsyReqHandle, reinterpret_cast<RMobilePhone::TAID*>(dataPtr2),aPackage.Des1n());
|
|
1815 |
|
|
1816 |
case EMobilePhoneAuthenticationListPhase1:
|
|
1817 |
return GetAuthenticationListPhase1(aTsyReqHandle,
|
|
1818 |
REINTERPRET_CAST(CRetrieveMobilePhoneAuthenticationIds::TAuthRequestData*, dataPtr),REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1819 |
|
|
1820 |
case EMobilePhoneAuthenticationListPhase2:
|
|
1821 |
return GetAuthenticationListPhase2(aTsyReqHandle,
|
|
1822 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1823 |
|
|
1824 |
case EMobilePhoneNotifyWlanDataChange:
|
|
1825 |
return NotifyWlanDataChange(aTsyReqHandle,aPackage.Des1n());
|
|
1826 |
|
|
1827 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
1828 |
return NotifyPreferredWlanSIDListChange(aTsyReqHandle);
|
|
1829 |
|
|
1830 |
case EMobilePhoneGetWlanData:
|
|
1831 |
return GetWlanData(aTsyReqHandle,aPackage.Des1n());
|
|
1832 |
|
|
1833 |
case EMobilePhoneSetWlanData:
|
|
1834 |
return SetWlanData(aTsyReqHandle,aPackage.Des1n());
|
|
1835 |
|
|
1836 |
case EMobilePhoneGetPreferredWlanSIDsPhase1:
|
|
1837 |
return GetPreferredWlanSIDsPhase1(aTsyReqHandle,
|
|
1838 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr),
|
|
1839 |
REINTERPRET_CAST(TInt*, dataPtr2));
|
|
1840 |
|
|
1841 |
case EMobilePhoneGetPreferredWlanSIDsPhase2:
|
|
1842 |
return GetPreferredWlanSIDsPhase2(aTsyReqHandle,
|
|
1843 |
REINTERPRET_CAST(RMobilePhone::TClientId*, dataPtr), aPackage.Des2n());
|
|
1844 |
|
|
1845 |
case EMobilePhoneStorePreferredWlanSIDList:
|
|
1846 |
return StorePreferredWlanSIDList(aTsyReqHandle, aPackage.Des1n());
|
|
1847 |
|
|
1848 |
default:
|
|
1849 |
return KErrNotSupported;
|
|
1850 |
}
|
|
1851 |
}
|
|
1852 |
|
|
1853 |
TInt CPhoneDMmTsy::CancelService(const TInt aIpc,const TTsyReqHandle aTsyReqHandle)
|
|
1854 |
{
|
|
1855 |
// CancelService is called by the server when it is "cleaning-up" any still outstanding
|
|
1856 |
// asynchronous requests before closing a client's sub-session.
|
|
1857 |
// This will happen if a client closes its R-class handle without cancelling outstanding
|
|
1858 |
// asynchronous requests.
|
|
1859 |
|
|
1860 |
switch (aIpc)
|
|
1861 |
{
|
|
1862 |
case EMobilePhoneGetHomeNetwork:
|
|
1863 |
return GetHomeNetworkCancel(aTsyReqHandle);
|
|
1864 |
case EMobilePhoneNotifyModeChange:
|
|
1865 |
return NotifyModeChangeCancel(aTsyReqHandle);
|
|
1866 |
case EMobilePhoneNotifyDTMFCapsChange:
|
|
1867 |
return NotifyDTMFCapsChangeCancel(aTsyReqHandle);
|
|
1868 |
case EMobilePhoneSendDTMFTones:
|
|
1869 |
return SendDTMFTonesCancel(aTsyReqHandle);
|
|
1870 |
case EMobilePhoneReadDTMFTones:
|
|
1871 |
return ReadDTMFTonesCancel(aTsyReqHandle);
|
|
1872 |
case EMobilePhoneNotifyStopInDTMFString:
|
|
1873 |
return NotifyStopInDTMFStringCancel(aTsyReqHandle);
|
|
1874 |
case EMobilePhoneGetNetworkRegistrationStatus:
|
|
1875 |
return GetNetworkRegistrationStatusCancel(aTsyReqHandle);
|
|
1876 |
case EMobilePhoneNotifyNetworkRegistrationStatusChange:
|
|
1877 |
return NotifyNetworkRegistrationStatusChangeCancel(aTsyReqHandle);
|
|
1878 |
case EMobilePhoneGetCurrentNetwork:
|
|
1879 |
return GetCurrentNetworkCancel(aTsyReqHandle);
|
|
1880 |
case EMobilePhoneNotifyCurrentNetworkChange:
|
|
1881 |
return NotifyCurrentNetworkChangeCancel(aTsyReqHandle);
|
|
1882 |
case EMobilePhoneGetCurrentNetworkNoLocation:
|
|
1883 |
return GetCurrentNetworkCancel(aTsyReqHandle);
|
|
1884 |
case EMobilePhoneNotifyCurrentNetworkNoLocationChange:
|
|
1885 |
return NotifyCurrentNetworkChangeCancel(aTsyReqHandle);
|
|
1886 |
case EMobilePhoneGetCellInfo:
|
|
1887 |
return GetCellInfoCancel(aTsyReqHandle);
|
|
1888 |
case EMobilePhoneNotifyCellInfoChange:
|
|
1889 |
return NotifyCellInfoChangeCancel(aTsyReqHandle);
|
|
1890 |
case EMobilePhoneGetDetectedNetworksPhase1:
|
|
1891 |
case EMobilePhoneGetDetectedNetworksPhase2:
|
|
1892 |
return GetDetectedNetworksCancel(aTsyReqHandle);
|
|
1893 |
case EMobilePhoneGetDetectedNetworksV2Phase1:
|
|
1894 |
case EMobilePhoneGetDetectedNetworksV2Phase2:
|
|
1895 |
return GetDetectedNetworksV2Cancel(aTsyReqHandle);
|
|
1896 |
case EMobilePhoneGetDetectedNetworksV5Phase1:
|
|
1897 |
case EMobilePhoneGetDetectedNetworksV5Phase2:
|
|
1898 |
return GetDetectedNetworksV5Cancel(aTsyReqHandle);
|
|
1899 |
case EMobilePhoneGetDetectedNetworksV8Phase1:
|
|
1900 |
case EMobilePhoneGetDetectedNetworksV8Phase2:
|
|
1901 |
return GetDetectedNetworksV8Cancel(aTsyReqHandle);
|
|
1902 |
case EMobilePhoneGetPhoneStoreInfo:
|
|
1903 |
return GetPhoneStoreInfoCancel(aTsyReqHandle);
|
|
1904 |
case EMobilePhoneNotifyIccAccessCapsChange:
|
|
1905 |
return NotifyIccAccessCapsChangeCancel(aTsyReqHandle);
|
|
1906 |
case EMobilePhoneGetCustomerServiceProfile:
|
|
1907 |
return GetCustomerServiceProfileCancel(aTsyReqHandle);
|
|
1908 |
case EMobilePhoneGetServiceTable:
|
|
1909 |
return GetServiceTableCancel(aTsyReqHandle);
|
|
1910 |
case EMobilePhoneGetBatteryInfo:
|
|
1911 |
return GetBatteryInfoCancel(aTsyReqHandle);
|
|
1912 |
case EMobilePhoneNotifyBatteryInfoChange:
|
|
1913 |
return NotifyBatteryInfoChangeCancel(aTsyReqHandle);
|
|
1914 |
case EMobilePhoneGetSignalStrength:
|
|
1915 |
return GetSignalStrengthCancel(aTsyReqHandle);
|
|
1916 |
case EMobilePhoneNotifySignalStrengthChange:
|
|
1917 |
return NotifySignalStrengthChangeCancel(aTsyReqHandle);
|
|
1918 |
case EMobilePhoneGetIndicator:
|
|
1919 |
return GetIndicatorCancel(aTsyReqHandle);
|
|
1920 |
case EMobilePhoneNotifyIndicatorChange:
|
|
1921 |
return NotifyIndicatorChangeCancel(aTsyReqHandle);
|
|
1922 |
case EMobilePhoneGetPhoneId:
|
|
1923 |
return GetPhoneIdCancel(aTsyReqHandle);
|
|
1924 |
case EMobilePhoneGetSubscriberId:
|
|
1925 |
return GetSubscriberIdCancel(aTsyReqHandle);
|
|
1926 |
case EMobilePhoneNotifyCallServiceCapsChange:
|
|
1927 |
return NotifyCallServiceCapsChangeCancel(aTsyReqHandle);
|
|
1928 |
case EMobilePhoneGetCallForwardingStatusPhase1:
|
|
1929 |
case EMobilePhoneGetCallForwardingStatusPhase2:
|
|
1930 |
return GetCallForwardingStatusCancel(aTsyReqHandle);
|
|
1931 |
case EMobilePhoneSetCallForwardingStatus:
|
|
1932 |
return SetCallForwardingStatusCancel(aTsyReqHandle);
|
|
1933 |
case EMobilePhoneNotifyCallForwardingStatusChange:
|
|
1934 |
return NotifyCallForwardingStatusChangeCancel(aTsyReqHandle);
|
|
1935 |
case EMobilePhoneNotifyCallForwardingActive:
|
|
1936 |
return NotifyCallForwardingActiveCancel(aTsyReqHandle);
|
|
1937 |
case EMobilePhoneProgramFeatureCode:
|
|
1938 |
return ProgramFeatureCodeStringCancel(aTsyReqHandle);
|
|
1939 |
case EMobilePhoneGetFeatureCode:
|
|
1940 |
return GetFeatureCodeStringCancel(aTsyReqHandle);
|
|
1941 |
case EMobilePhoneSendNetworkServiceRequest:
|
|
1942 |
return SendNetworkServiceRequestCancel(aTsyReqHandle);
|
|
1943 |
case EMobilePhoneNotifyNetworkSelectionSettingChange:
|
|
1944 |
return NotifyNetworkSelectionSettingChangeCancel(aTsyReqHandle);
|
|
1945 |
case EMobilePhoneSelectNetwork:
|
|
1946 |
return SelectNetworkCancel(aTsyReqHandle);
|
|
1947 |
case EMobilePhoneNotifyNITZInfoChange:
|
|
1948 |
return NotifyNetworkTimeInfoChangeCancel(aTsyReqHandle);
|
|
1949 |
case EMobilePhoneGetServiceProviderName:
|
|
1950 |
return GetServiceProviderNameCancel(aTsyReqHandle);
|
|
1951 |
case EMobilePhoneGetIdentityServiceStatus:
|
|
1952 |
return GetIdentityServiceStatusCancel(aTsyReqHandle);
|
|
1953 |
case EMobilePhoneGetBarringStatusPhase1:
|
|
1954 |
case EMobilePhoneGetBarringStatusPhase2:
|
|
1955 |
return GetCallBarringCancel(aTsyReqHandle);
|
|
1956 |
case EMobilePhoneSetCallBarringStatus:
|
|
1957 |
return SetCallBarringStatusCancel(aTsyReqHandle);
|
|
1958 |
case EMobilePhoneSetCallBarringPassword:
|
|
1959 |
return SetCallBarringPasswordCancel(aTsyReqHandle);
|
|
1960 |
case EMobilePhoneNotifyCallBarringStatusChange:
|
|
1961 |
return NotifyCallBarringStatusChangeCancel(aTsyReqHandle);
|
|
1962 |
case EMobilePhoneGetWaitingStatusPhase1:
|
|
1963 |
case EMobilePhoneGetWaitingStatusPhase2:
|
|
1964 |
return GetCallWaitingCancel(aTsyReqHandle);
|
|
1965 |
case EMobilePhoneSetCallWaitingStatus:
|
|
1966 |
return SetCallWaitingStatusCancel(aTsyReqHandle);
|
|
1967 |
case EMobilePhoneNotifyCallWaitingStatusChange:
|
|
1968 |
return NotifyCallWaitingStatusChangeCancel(aTsyReqHandle);
|
|
1969 |
case EMobilePhoneGetCCBSStatus:
|
|
1970 |
return GetCCBSStatusCancel(aTsyReqHandle);
|
|
1971 |
case EMobilePhoneNotifyCCBSStatusChange:
|
|
1972 |
return NotifyCCBSStatusChangeCancel(aTsyReqHandle);
|
|
1973 |
case EMobilePhoneDeactivateCCBS:
|
|
1974 |
return DeactivateCCBSCancel(aTsyReqHandle);
|
|
1975 |
case EMobilePhoneAcceptCCBSRecall:
|
|
1976 |
return AcceptCCBSRecallCancel(aTsyReqHandle);
|
|
1977 |
case EMobilePhoneNotifyCCBSRecall:
|
|
1978 |
return NotifyCCBSRecallCancel(aTsyReqHandle);
|
|
1979 |
case EMobilePhoneGetCompletionRequestsPhase1:
|
|
1980 |
case EMobilePhoneGetCompletionRequestsPhase2:
|
|
1981 |
return GetCallCompletionCancel(aTsyReqHandle);
|
|
1982 |
case EMobilePhoneNotifyAlternatingCallCapsChange:
|
|
1983 |
return NotifyAlternatingCallCapsChangeCancel(aTsyReqHandle);
|
|
1984 |
case EMobilePhoneNotifyAlternatingCallModeChange:
|
|
1985 |
return NotifyAlternatingCallModeChangeCancel(aTsyReqHandle);
|
|
1986 |
case EMobilePhoneSetALSLine:
|
|
1987 |
return SetALSLineCancel(aTsyReqHandle);
|
|
1988 |
case EMobilePhoneNotifyALSLineChange:
|
|
1989 |
return NotifyALSLineChangeCancel(aTsyReqHandle);
|
|
1990 |
case EMobilePhoneNotifyCostCapsChange:
|
|
1991 |
return NotifyCostCapsChangeCancel(aTsyReqHandle);
|
|
1992 |
case EMobilePhoneClearCostMeter:
|
|
1993 |
return ClearCostMeterCancel(aTsyReqHandle);
|
|
1994 |
case EMobilePhoneSetMaxCostMeter:
|
|
1995 |
return SetMaxCostMeterCancel(aTsyReqHandle);
|
|
1996 |
case EMobilePhoneSetPuct:
|
|
1997 |
return SetPuctCancel(aTsyReqHandle);
|
|
1998 |
case EMobilePhoneGetCostInfo:
|
|
1999 |
return GetCostInfoCancel(aTsyReqHandle);
|
|
2000 |
case EMobilePhoneNotifyCostInfoChange:
|
|
2001 |
return NotifyCostInfoChangeCancel(aTsyReqHandle);
|
|
2002 |
case EMobilePhoneNotifySecurityCapsChange:
|
|
2003 |
return NotifySecurityCapsChangeCancel(aTsyReqHandle);
|
|
2004 |
case EMobilePhoneGetLockInfo:
|
|
2005 |
return GetLockInfoCancel(aTsyReqHandle);
|
|
2006 |
case EMobilePhoneNotifyLockInfoChange:
|
|
2007 |
return NotifyLockInfoChangeCancel(aTsyReqHandle);
|
|
2008 |
case EMobilePhoneSetLockSetting:
|
|
2009 |
return SetLockSettingCancel(aTsyReqHandle);
|
|
2010 |
case EMobilePhoneChangeSecurityCode:
|
|
2011 |
return ChangeSecurityCodeCancel(aTsyReqHandle);
|
|
2012 |
case EMobilePhoneGetSecurityCodeInfo:
|
|
2013 |
return GetSecurityCodeInfoCancel(aTsyReqHandle);
|
|
2014 |
case EMobilePhoneNotifySecurityCodeInfoChange:
|
|
2015 |
return NotifySecurityCodeInfoChangeCancel(aTsyReqHandle);
|
|
2016 |
case EMobilePhoneNotifySecurityEvent:
|
|
2017 |
return NotifyOnSecurityEventCancel(aTsyReqHandle);
|
|
2018 |
case EMobilePhoneVerifySecurityCode:
|
|
2019 |
return VerifySecurityCodeCancel(aTsyReqHandle);
|
|
2020 |
case EMobilePhoneNotifyMessageWaiting:
|
|
2021 |
return NotifyMessageWaitingCancel(aTsyReqHandle);
|
|
2022 |
case EMobilePhoneNotifyIccMessageWaitingIndicatorsChange:
|
|
2023 |
return NotifyIccMessageWaitingIndicatorsChangeCancel(aTsyReqHandle);
|
|
2024 |
case EMobilePhoneGetIccMessageWaitingIndicators:
|
|
2025 |
return GetIccMessageWaitingIndicatorsCancel(aTsyReqHandle);
|
|
2026 |
case EMobilePhoneSetIccMessageWaitingIndicators:
|
|
2027 |
return SetIccMessageWaitingIndicatorsCancel(aTsyReqHandle);
|
|
2028 |
case EMobilePhoneGetFdnStatus:
|
|
2029 |
return GetFdnStatusCancel(aTsyReqHandle);
|
|
2030 |
case EMobilePhoneSetFdnSetting:
|
|
2031 |
return SetFdnSettingCancel(aTsyReqHandle);
|
|
2032 |
case EMobilePhoneNotifyFdnStatusChange:
|
|
2033 |
return NotifyFdnStatusChangeCancel(aTsyReqHandle);
|
|
2034 |
case EMobilePhoneSetNetworkSelectionSetting:
|
|
2035 |
return SetNetworkSelectionSettingCancel(aTsyReqHandle);
|
|
2036 |
case EMobilePhoneSetAlternatingCallMode:
|
|
2037 |
return SetAlternatingCallModeCancel(aTsyReqHandle);
|
|
2038 |
case EMobilePhoneGetMulticallParams:
|
|
2039 |
return GetMulticallParamsCancel(aTsyReqHandle);
|
|
2040 |
case EMobilePhoneSetMulticallParams:
|
|
2041 |
return SetMulticallParamsCancel(aTsyReqHandle);
|
|
2042 |
case EMobilePhoneNotifyMulticallParamsChange:
|
|
2043 |
return NotifyMulticallParamsChangeCancel(aTsyReqHandle);
|
|
2044 |
case EMobilePhoneGetIncomingCallType:
|
|
2045 |
return GetIncomingCallTypeCancel(aTsyReqHandle);
|
|
2046 |
case EMobilePhoneSetIncomingCallType:
|
|
2047 |
return SetIncomingCallTypeCancel(aTsyReqHandle);
|
|
2048 |
case EMobilePhoneNotifyIncomingCallTypeChange:
|
|
2049 |
return NotifyIncomingCallTypeChangeCancel(aTsyReqHandle);
|
|
2050 |
case EMobilePhoneGetUUSSetting:
|
|
2051 |
return GetUUSSettingCancel(aTsyReqHandle);
|
|
2052 |
case EMobilePhoneSetUUSSetting:
|
|
2053 |
return SetUUSSettingCancel(aTsyReqHandle);
|
|
2054 |
case EMobilePhoneNotifyUUSSettingChange:
|
|
2055 |
return NotifyUUSSettingChangeCancel(aTsyReqHandle);
|
|
2056 |
case EMobilePhoneSetDefaultPrivacy:
|
|
2057 |
return SetDefaultPrivacyCancel(aTsyReqHandle);
|
|
2058 |
case EMobilePhoneNotifyDefaultPrivacyChange:
|
|
2059 |
return NotifyDefaultPrivacyChangeCancel(aTsyReqHandle);
|
|
2060 |
case EMobilePhoneSetMultimediaCallPreference:
|
|
2061 |
return SetMultimediaCallPreferenceCancel(aTsyReqHandle);
|
|
2062 |
case EMobilePhoneNotifyMultimediaCallPreferenceChange:
|
|
2063 |
return NotifyMultimediaCallPreferenceChangeCancel(aTsyReqHandle);
|
|
2064 |
case EMobilePhoneGetNetworkSecurityLevel:
|
|
2065 |
return GetNetworkSecurityLevelCancel(aTsyReqHandle);
|
|
2066 |
case EMobilePhoneNotifyNetworkSecurityLevelChange:
|
|
2067 |
return NotifyNetworkSecurityLevelChangeCancel(aTsyReqHandle);
|
|
2068 |
case EMobilePhoneNotifyUSimAppsSelectionModeChange:
|
|
2069 |
return NotifyUSimAppsSelectionModeChangeCancel(aTsyReqHandle);
|
|
2070 |
case EMobilePhoneSetUSimApplicationStatus:
|
|
2071 |
return SetUSimApplicationStatusCancel(aTsyReqHandle);
|
|
2072 |
case EMobilePhoneGetUSimApplicationsInfo:
|
|
2073 |
return GetUSimApplicationInfoCancel(aTsyReqHandle);
|
|
2074 |
case EMobilePhoneNotifyUSimApplicationsInfoChange:
|
|
2075 |
return NotifyUSimApplicationsInfoChangeCancel(aTsyReqHandle);
|
|
2076 |
case EMobilePhoneEnumerateUSimApplications:
|
|
2077 |
return EnumerateUSimApplicationsCancel(aTsyReqHandle);
|
|
2078 |
case EMobilePhoneEnumerateSmartCardApplications:
|
|
2079 |
return EnumerateSmartCardApplicationsCancel(aTsyReqHandle);
|
|
2080 |
case EMobilePhoneGetSmartCardApplicationInfo:
|
|
2081 |
return GetSmartCardApplicationInfoCancel(aTsyReqHandle);
|
|
2082 |
case EMobilePhoneNotifySmartCardApplicationInfoChange:
|
|
2083 |
return NotifySmartCardApplicationInfoChangeCancel(aTsyReqHandle);
|
|
2084 |
case EMobilePhoneSetSmartCardApplicationStatus:
|
|
2085 |
return SetSmartCardApplicationStatusCancel(aTsyReqHandle);
|
|
2086 |
case EMobilePhoneGetScFileInfo:
|
|
2087 |
return GetScFileInfoCancel(aTsyReqHandle);
|
|
2088 |
case EMobilePhoneReadScFile:
|
|
2089 |
return ReadScFileCancel(aTsyReqHandle);
|
|
2090 |
case EMobilePhoneUpdateScFile:
|
|
2091 |
return UpdateScFileCancel(aTsyReqHandle);
|
|
2092 |
case EMobilePhoneGetCurrentActiveUSimApplication:
|
|
2093 |
return GetCurrentActiveUSimApplicationCancel(aTsyReqHandle);
|
|
2094 |
case EMobilePhoneSetSSPassword:
|
|
2095 |
return SetSSPasswordCancel(aTsyReqHandle);
|
|
2096 |
case EMobilePhoneNotifyMailboxNumbersChange:
|
|
2097 |
return NotifyMailboxNumbersChangeCancel(aTsyReqHandle);
|
|
2098 |
case EMobilePhoneGetMailboxNumbers:
|
|
2099 |
return GetMailboxNumbersCancel(aTsyReqHandle);
|
|
2100 |
case EMobilePhoneNotifyMmsUpdate:
|
|
2101 |
return NotifyMmsUpdateCancel(aTsyReqHandle);
|
|
2102 |
case EMobilePhoneNotifyMmsConfig:
|
|
2103 |
return SetMmsUserConnParamsCancel(aTsyReqHandle);
|
|
2104 |
case EMobilePhoneSetMmsUserConnParams:
|
|
2105 |
return SetMmsUserConnParamsCancel(aTsyReqHandle);
|
|
2106 |
case EMobilePhoneSetMmsUserPreferences:
|
|
2107 |
return SetMmsUserPreferencesCancel(aTsyReqHandle);
|
|
2108 |
case EMobilePhoneGetMmsConfig:
|
|
2109 |
return GetMmsConfigCancel(aTsyReqHandle);
|
|
2110 |
case EMobilePhoneGetHomeNetworkSearchPeriod:
|
|
2111 |
return GetHomeNetworkSearchPeriodCancel(aTsyReqHandle);
|
|
2112 |
case EMobilePhoneGetLastUsedAccessTechnology:
|
|
2113 |
return GetLastUsedAccessTechnologyCancel(aTsyReqHandle);
|
|
2114 |
case EMobilePhoneNotifyNetworkInvScanChange:
|
|
2115 |
return NotifyNetworkInvScanChangeCancel(aTsyReqHandle);
|
|
2116 |
case EMobilePhoneNotifyNetworkInvScanEvent:
|
|
2117 |
return NotifyNetworkInvScanEventCancel(aTsyReqHandle);
|
|
2118 |
case EMobilePhoneGetCallForwardingIndicator:
|
|
2119 |
return GetCallForwardingIndicatorCancel(aTsyReqHandle);
|
|
2120 |
case EMobilePhoneGetCompMethodName:
|
|
2121 |
return GetCompMethodNameCancel(aTsyReqHandle);
|
|
2122 |
case EMobilePhoneEnumerateAPNEntries:
|
|
2123 |
return EnumerateAPNEntriesCancel(aTsyReqHandle);
|
|
2124 |
case EMobilePhoneGetAPNname:
|
|
2125 |
return GetAPNnameCancel(aTsyReqHandle);
|
|
2126 |
case EMobilePhoneAppendAPNName:
|
|
2127 |
return AppendAPNNameCancel(aTsyReqHandle);
|
|
2128 |
case EMobilePhoneDeleteAPNName:
|
|
2129 |
return DeleteAPNNameCancel(aTsyReqHandle);
|
|
2130 |
case EMobilePhoneNotifyAPNListChanged:
|
|
2131 |
return NotifyAPNListChangedCancel(aTsyReqHandle);
|
|
2132 |
case EMobilePhoneSetAPNControlListServiceStatus:
|
|
2133 |
return SetAPNControlListServiceStatusCancel(aTsyReqHandle);
|
|
2134 |
case EMobilePhoneGetAPNControlListServiceStatus:
|
|
2135 |
return GetAPNControlListServiceStatusCancel(aTsyReqHandle);
|
|
2136 |
case EMobilePhoneNotifyAPNControlListServiceStatusChange:
|
|
2137 |
return NotifyAPNControlListServiceStatusChangeCancel(aTsyReqHandle);
|
|
2138 |
case EMobilePhoneNotifyAirTimeDurationChange:
|
|
2139 |
return NotifyAirTimeDurationChangeCancel(aTsyReqHandle);
|
|
2140 |
case EMobilePhoneTerminateAllCalls:
|
|
2141 |
return TerminateAllCallsCancel(aTsyReqHandle);
|
|
2142 |
case EMobilePhoneTerminateActiveCalls:
|
|
2143 |
return TerminateActiveCallsCancel(aTsyReqHandle);
|
|
2144 |
case EMobilePhoneNotifySendNetworkServiceRequest:
|
|
2145 |
return NotifySendNetworkServiceRequestCancel(aTsyReqHandle);
|
|
2146 |
case EMobilePhoneNotifyAllSendNetworkServiceRequest:
|
|
2147 |
return NotifyAllSendNetworkServiceRequestCancel(aTsyReqHandle);
|
|
2148 |
case EMobilePhoneClearBlacklist:
|
|
2149 |
return ClearBlacklistCancel(aTsyReqHandle);
|
|
2150 |
case EMobilePhoneNotifyDTMFEvent:
|
|
2151 |
return NotifyDTMFEventCancel(aTsyReqHandle);
|
|
2152 |
case EMobilePhoneGetPersonalisationCaps:
|
|
2153 |
return GetPersonalisationCapsCancel(aTsyReqHandle);
|
|
2154 |
case EMobilePhoneGetPersonalisationStatus:
|
|
2155 |
return GetPersonalisationStatusCancel(aTsyReqHandle);
|
|
2156 |
case EMobilePhoneSetPersonalisationStatus:
|
|
2157 |
return SetPersonalisationStatusCancel(aTsyReqHandle);
|
|
2158 |
case EMobilePhoneGetNetworkName:
|
|
2159 |
return GetCurrentNetworkNameCancel(aTsyReqHandle);
|
|
2160 |
case EMobilePhoneGetPreferredNetworksPhase1:
|
|
2161 |
case EMobilePhoneGetPreferredNetworksPhase2:
|
|
2162 |
return GetPreferredNetworksCancel(aTsyReqHandle);
|
|
2163 |
case EMobilePhoneStorePreferredNetworksList:
|
|
2164 |
return StorePreferredNetworksListCancel(aTsyReqHandle);
|
|
2165 |
case EMobilePhoneNotifyStorePreferredNetworksListChange:
|
|
2166 |
return NotifyStorePreferredNetworksListChangeCancel(aTsyReqHandle);
|
|
2167 |
case EMobilePhoneGetCipheringIndicatorStatus:
|
|
2168 |
return GetCipheringIndicatorStatusCancel(aTsyReqHandle);
|
|
2169 |
case EMobilePhoneNotifyCipheringIndicatorStatus:
|
|
2170 |
return NotifyCipheringIndicatorStatusCancel(aTsyReqHandle);
|
|
2171 |
case EMobilePhoneSetIdentityServiceStatus:
|
|
2172 |
return SetIdentityServiceStatusCancel(aTsyReqHandle);
|
|
2173 |
case EMobilePhoneNotifyIdentityServiceStatus:
|
|
2174 |
return NotifyIdentityServiceStatusCancel(aTsyReqHandle);
|
|
2175 |
case EMobilePhoneNotifyIdentitySuppressionRejected:
|
|
2176 |
return NotifyIdentitySuppressionRejectedCancel(aTsyReqHandle);
|
|
2177 |
case EMobilePhoneNotifyMulticallIndicatorChange:
|
|
2178 |
return NotifyMulticallIndicatorChangeCancel(aTsyReqHandle);
|
|
2179 |
case EMobilePhoneNotifyImsAuthorizationInfoChanged:
|
|
2180 |
return NotifyImsAuthorizationInfoChangedCancel(aTsyReqHandle);
|
|
2181 |
case EMobilePhoneAuthorizationInfoPhase1:
|
|
2182 |
case EMobilePhoneAuthorizationInfoPhase2:
|
|
2183 |
return GetAuthorizationInfoCancel(aTsyReqHandle);
|
|
2184 |
case EMobilePhoneIMSAuthenticate:
|
|
2185 |
return GetAuthenticationDataCancel(aTsyReqHandle);
|
|
2186 |
case EMobilePhoneSmartCardAuthenticate:
|
|
2187 |
return GetSmartCardAuthenticationDataCancel(aTsyReqHandle);
|
|
2188 |
case EMobilePhoneGetIccIdentity:
|
|
2189 |
return GetIccIdentityCancel(aTsyReqHandle);
|
|
2190 |
case EMobilePhoneNotifyAuthenticateDataChange:
|
|
2191 |
return NotifyAuthenticateDataChangeCancel(aTsyReqHandle);
|
|
2192 |
case EMobilePhoneGetAuthenticationParams:
|
|
2193 |
return GetAuthenticationParamsCancel(aTsyReqHandle);
|
|
2194 |
case EMobilePhoneSetGbaBootstrapParams:
|
|
2195 |
return SetGbaBootstrapParamsCancel(aTsyReqHandle);
|
|
2196 |
case EMobilePhoneAuthenticationListPhase1:
|
|
2197 |
case EMobilePhoneAuthenticationListPhase2:
|
|
2198 |
return GetAuthenticationListCancel(aTsyReqHandle);
|
|
2199 |
case EMobilePhoneNotifyWlanDataChange:
|
|
2200 |
return NotifyWlanDataChangeCancel(aTsyReqHandle);
|
|
2201 |
case EMobilePhoneNotifyPreferredWlanSIDListChange:
|
|
2202 |
return NotifyPreferredWlanSIDListChangeCancel(aTsyReqHandle);
|
|
2203 |
case EMobilePhoneGetWlanData:
|
|
2204 |
return GetWlanDataCancel(aTsyReqHandle);
|
|
2205 |
case EMobilePhoneSetWlanData:
|
|
2206 |
return SetWlanDataCancel(aTsyReqHandle);
|
|
2207 |
case EMobilePhoneGetPreferredWlanSIDsPhase1:
|
|
2208 |
case EMobilePhoneGetPreferredWlanSIDsPhase2:
|
|
2209 |
return GetPreferredWlanSIDsCancel(aTsyReqHandle);
|
|
2210 |
case EMobilePhoneStorePreferredWlanSIDList:
|
|
2211 |
return StorePreferredWlanSIDListCancel(aTsyReqHandle);
|
|
2212 |
|
|
2213 |
default:
|
|
2214 |
return CPhoneBase::CancelService(aIpc,aTsyReqHandle);
|
|
2215 |
}
|
|
2216 |
}
|
|
2217 |
|
|
2218 |
/***********************************************************************************/
|
|
2219 |
//
|
|
2220 |
// The following methods are called from ExtFunc and/or CancelService.
|
|
2221 |
// Each of these will process a TSY request or cancel a TSY request
|
|
2222 |
// Here, example values are returned or checked within this dummy TSY in order to ensure
|
|
2223 |
// that the integrity of the data passed to/from client is maintained
|
|
2224 |
//
|
|
2225 |
/***********************************************************************************/
|
|
2226 |
|
|
2227 |
TInt CPhoneDMmTsy::GetMultimodeCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2228 |
{
|
|
2229 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMultimodeCaps called"));
|
|
2230 |
*aCaps=DMMTSY_PHONE_MULTIMODE_CAPS;
|
|
2231 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2232 |
return KErrNone;
|
|
2233 |
}
|
|
2234 |
|
|
2235 |
TInt CPhoneDMmTsy::GetPhoneStoreInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aGetInfo,
|
|
2236 |
TDes* aName)
|
|
2237 |
{
|
|
2238 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPhoneStoreInfo called"));
|
|
2239 |
|
|
2240 |
RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg *infoPckg = REINTERPRET_CAST(RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg *,aGetInfo);
|
|
2241 |
RMobilePhoneStore::TMobilePhoneStoreInfoV1 &info = (*infoPckg)();
|
|
2242 |
|
|
2243 |
if (aName->Compare(DMMTSY_PHONE_STORE_NAME1) == 0)
|
|
2244 |
{
|
|
2245 |
info.iName=DMMTSY_PHONE_STORE_NAME1;
|
|
2246 |
info.iType=DMMTSY_PHONE_STORE_TYPE1;
|
|
2247 |
info.iTotalEntries=DMMTSY_PHONE_STORE_TOTAL_ENTRIES1;
|
|
2248 |
info.iUsedEntries=DMMTSY_PHONE_STORE_USED_ENTRIES1;
|
|
2249 |
info.iCaps=DMMTSY_PHONE_STORE_CAPS1;
|
|
2250 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2251 |
}
|
|
2252 |
else if (aName->Compare(DMMTSY_PHONE_STORE_NAME2) == 0)
|
|
2253 |
{
|
|
2254 |
info.iName=DMMTSY_PHONE_STORE_NAME2;
|
|
2255 |
info.iType=DMMTSY_PHONE_STORE_TYPE2;
|
|
2256 |
info.iTotalEntries=DMMTSY_PHONE_STORE_TOTAL_ENTRIES2;
|
|
2257 |
info.iUsedEntries=DMMTSY_PHONE_STORE_USED_ENTRIES2;
|
|
2258 |
info.iCaps=DMMTSY_PHONE_STORE_CAPS2;
|
|
2259 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2260 |
}
|
|
2261 |
else
|
|
2262 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
2263 |
|
|
2264 |
return KErrNone;
|
|
2265 |
}
|
|
2266 |
|
|
2267 |
TInt CPhoneDMmTsy::GetPhoneStoreInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aGetInfo,
|
|
2268 |
RMobilePhone::TPhoneStoreNameAndIccType* aTable)
|
|
2269 |
{
|
|
2270 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPhoneStoreInfo called using IccType"));
|
|
2271 |
|
|
2272 |
RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg *infoPckg = REINTERPRET_CAST(RMobilePhoneStore::TMobilePhoneStoreInfoV1Pckg *,aGetInfo);
|
|
2273 |
RMobilePhoneStore::TMobilePhoneStoreInfoV1 &info = (*infoPckg)();
|
|
2274 |
|
|
2275 |
if ((aTable->iStoreName.Compare(DMMTSY_PHONE_STORE_NAME1) == 0) &&
|
|
2276 |
(aTable->iMode.Compare(DMMTSY_PHONEBOOK_TYPE) == 0))
|
|
2277 |
{
|
|
2278 |
info.iName=DMMTSY_PHONE_STORE_NAME1;
|
|
2279 |
info.iType=DMMTSY_PHONE_STORE_TYPE1;
|
|
2280 |
info.iTotalEntries=DMMTSY_PHONE_STORE_TOTAL_ENTRIES1;
|
|
2281 |
info.iUsedEntries=DMMTSY_PHONE_STORE_USED_ENTRIES1;
|
|
2282 |
info.iCaps=DMMTSY_PHONE_STORE_CAPS1;
|
|
2283 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2284 |
}
|
|
2285 |
else if ((aTable->iStoreName.Compare(DMMTSY_PHONE_STORE_NAME2) == 0) &&
|
|
2286 |
(aTable->iMode.Compare(DMMTSY_PHONEBOOK_TYPE) == 0))
|
|
2287 |
{
|
|
2288 |
info.iName=DMMTSY_PHONE_STORE_NAME2;
|
|
2289 |
info.iType=DMMTSY_PHONE_STORE_TYPE2;
|
|
2290 |
info.iTotalEntries=DMMTSY_PHONE_STORE_TOTAL_ENTRIES2;
|
|
2291 |
info.iUsedEntries=DMMTSY_PHONE_STORE_USED_ENTRIES2;
|
|
2292 |
info.iCaps=DMMTSY_PHONE_STORE_CAPS2;
|
|
2293 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2294 |
}
|
|
2295 |
else
|
|
2296 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
2297 |
|
|
2298 |
return KErrNone;
|
|
2299 |
}
|
|
2300 |
|
|
2301 |
TInt CPhoneDMmTsy::GetPhoneStoreInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2302 |
{
|
|
2303 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPhoneStoreInfoCancel called"));
|
|
2304 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2305 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2306 |
return KErrNone;
|
|
2307 |
}
|
|
2308 |
|
|
2309 |
TInt CPhoneDMmTsy::GetIccAccessCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2310 |
{
|
|
2311 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIccAccessCaps called"));
|
|
2312 |
*aCaps=DMMTSY_PHONE_SIM_ACCESS_CAPS1;
|
|
2313 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2314 |
return KErrNone;
|
|
2315 |
}
|
|
2316 |
|
|
2317 |
TInt CPhoneDMmTsy::NotifyIccAccessCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2318 |
{
|
|
2319 |
if (!iNotifyIccAccessCaps++)
|
|
2320 |
{
|
|
2321 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIccAccessCapsChange called"));
|
|
2322 |
*aCaps=DMMTSY_PHONE_SIM_ACCESS_CAPS2;
|
|
2323 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2324 |
}
|
|
2325 |
return KErrNone;
|
|
2326 |
}
|
|
2327 |
|
|
2328 |
TInt CPhoneDMmTsy::NotifyIccAccessCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2329 |
{
|
|
2330 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIccAccessCapsChangeCancel called"));
|
|
2331 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2332 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2333 |
return KErrNone;
|
|
2334 |
}
|
|
2335 |
|
|
2336 |
TInt CPhoneDMmTsy::GetIccIdentity(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TIccIdentity* aIdentity)
|
|
2337 |
{
|
|
2338 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIccIdentity called"));
|
|
2339 |
*aIdentity=DMMTSY_PHONE_ICC_ID;
|
|
2340 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2341 |
return KErrNone;
|
|
2342 |
}
|
|
2343 |
|
|
2344 |
TInt CPhoneDMmTsy::GetIccIdentityCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2345 |
{
|
|
2346 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIccIdentity called"));
|
|
2347 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2348 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2349 |
return KErrNone;
|
|
2350 |
}
|
|
2351 |
|
|
2352 |
TInt CPhoneDMmTsy::GetCustomerServiceProfile(const TTsyReqHandle aTsyReqHandle, TDes8* aFile)
|
|
2353 |
{
|
|
2354 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCustomerServiceProfile called"));
|
|
2355 |
RMobilePhone::TMobilePhoneCspFileV1Pckg* cspV1Pckg = (RMobilePhone::TMobilePhoneCspFileV1Pckg*)aFile;
|
|
2356 |
RMobilePhone::TMobilePhoneCspFileV1& cspV1 = (*cspV1Pckg)();
|
|
2357 |
|
|
2358 |
cspV1.iCallOfferingServices=DMMTSY_PHONE_CSP_BYTE1;
|
|
2359 |
cspV1.iCallRestrictionServices=DMMTSY_PHONE_CSP_BYTE2;
|
|
2360 |
cspV1.iOtherSuppServices=DMMTSY_PHONE_CSP_BYTE3;
|
|
2361 |
cspV1.iCallCompletionServices=DMMTSY_PHONE_CSP_BYTE4;
|
|
2362 |
cspV1.iTeleservices=DMMTSY_PHONE_CSP_BYTE5;
|
|
2363 |
cspV1.iCphsTeleservices=DMMTSY_PHONE_CSP_BYTE6;
|
|
2364 |
cspV1.iCphsFeatures=DMMTSY_PHONE_CSP_BYTE7;
|
|
2365 |
cspV1.iNumberIdentServices=DMMTSY_PHONE_CSP_BYTE8;
|
|
2366 |
cspV1.iPhase2PlusServices=DMMTSY_PHONE_CSP_BYTE9;
|
|
2367 |
cspV1.iValueAddedServices=DMMTSY_PHONE_CSP_BYTE10;
|
|
2368 |
|
|
2369 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2370 |
return KErrNone;
|
|
2371 |
}
|
|
2372 |
|
|
2373 |
TInt CPhoneDMmTsy::GetCustomerServiceProfileCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2374 |
{
|
|
2375 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCustomerServiceProfileCancel called"));
|
|
2376 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2377 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2378 |
return KErrNone;
|
|
2379 |
}
|
|
2380 |
|
|
2381 |
TInt CPhoneDMmTsy::GetServiceTable(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneServiceTable* aTable, TDes8* aFile)
|
|
2382 |
{
|
|
2383 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceTable called"));
|
|
2384 |
RMobilePhone::TMobilePhoneServiceTableV1Pckg* sstFilePckg = (RMobilePhone::TMobilePhoneServiceTableV1Pckg*) aFile;
|
|
2385 |
RMobilePhone::TMobilePhoneServiceTableV1 &sstFile = (*sstFilePckg)();
|
|
2386 |
|
|
2387 |
if (*aTable!=DMMTSY_PHONE_SERVICE_TABLE)
|
|
2388 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2389 |
else
|
|
2390 |
{
|
|
2391 |
if(sstFile.ExtensionId()==KEtelExtMultimodeV8)
|
|
2392 |
{
|
|
2393 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceTable is using V8table"));
|
|
2394 |
RMobilePhone::TMobilePhoneServiceTableV8Pckg* sstV8Pckg = (RMobilePhone::TMobilePhoneServiceTableV8Pckg*)aFile;
|
|
2395 |
RMobilePhone::TMobilePhoneServiceTableV8& sstV8 = (*sstV8Pckg)();
|
|
2396 |
|
|
2397 |
sstV8.iServices1To8=DMMTSY_PHONE_SST_BYTE1;
|
|
2398 |
sstV8.iServices9To16=DMMTSY_PHONE_SST_BYTE2;
|
|
2399 |
sstV8.iServices17To24=DMMTSY_PHONE_SST_BYTE3;
|
|
2400 |
sstV8.iServices25To32=DMMTSY_PHONE_SST_BYTE4;
|
|
2401 |
sstV8.iServices33To40=DMMTSY_PHONE_SST_BYTE5;
|
|
2402 |
sstV8.iServices41To48=DMMTSY_PHONE_SST_BYTE6;
|
|
2403 |
sstV8.iServices49To56=DMMTSY_PHONE_SST_BYTE7;
|
|
2404 |
sstV8.iAID=DMMTSY_PHONE_USIM_AID;
|
|
2405 |
sstV8.iServices57To64=DMMTSY_PHONE_SST_BYTE8;
|
|
2406 |
sstV8.iServices65To72=DMMTSY_PHONE_SST_BYTE9;
|
|
2407 |
}
|
|
2408 |
|
|
2409 |
if(sstFile.ExtensionId()==KETelExtMultimodeV2)
|
|
2410 |
{
|
|
2411 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceTable is using V2table"));
|
|
2412 |
RMobilePhone::TMobilePhoneServiceTableV2Pckg* sstV2Pckg = (RMobilePhone::TMobilePhoneServiceTableV2Pckg*)aFile;
|
|
2413 |
RMobilePhone::TMobilePhoneServiceTableV2& sstV2 = (*sstV2Pckg)();
|
|
2414 |
|
|
2415 |
sstV2.iServices1To8=DMMTSY_PHONE_SST_BYTE1;
|
|
2416 |
sstV2.iServices9To16=DMMTSY_PHONE_SST_BYTE2;
|
|
2417 |
sstV2.iServices17To24=DMMTSY_PHONE_SST_BYTE3;
|
|
2418 |
sstV2.iServices25To32=DMMTSY_PHONE_SST_BYTE4;
|
|
2419 |
sstV2.iServices33To40=DMMTSY_PHONE_SST_BYTE5;
|
|
2420 |
sstV2.iServices41To48=DMMTSY_PHONE_SST_BYTE6;
|
|
2421 |
sstV2.iServices49To56=DMMTSY_PHONE_SST_BYTE7;
|
|
2422 |
sstV2.iAID=DMMTSY_PHONE_USIM_AID;
|
|
2423 |
}
|
|
2424 |
else if(sstFile.ExtensionId()==KETelExtMultimodeV1)
|
|
2425 |
{
|
|
2426 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceTable is using V1table"));
|
|
2427 |
|
|
2428 |
sstFile.iServices1To8=DMMTSY_PHONE_SST_BYTE1;
|
|
2429 |
sstFile.iServices9To16=DMMTSY_PHONE_SST_BYTE2;
|
|
2430 |
sstFile.iServices17To24=DMMTSY_PHONE_SST_BYTE3;
|
|
2431 |
sstFile.iServices25To32=DMMTSY_PHONE_SST_BYTE4;
|
|
2432 |
sstFile.iServices33To40=DMMTSY_PHONE_SST_BYTE5;
|
|
2433 |
sstFile.iServices41To48=DMMTSY_PHONE_SST_BYTE6;
|
|
2434 |
sstFile.iServices49To56=DMMTSY_PHONE_SST_BYTE7;
|
|
2435 |
}
|
|
2436 |
|
|
2437 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2438 |
}
|
|
2439 |
return KErrNone;
|
|
2440 |
}
|
|
2441 |
|
|
2442 |
TInt CPhoneDMmTsy::GetServiceTableCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2443 |
{
|
|
2444 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceTableCancel called"));
|
|
2445 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2446 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2447 |
return KErrNone;
|
|
2448 |
}
|
|
2449 |
|
|
2450 |
TInt CPhoneDMmTsy::GetBatteryCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2451 |
{
|
|
2452 |
LOGTEXT(_L8("CPhoneDMmTsy::GetBatteryCaps called"));
|
|
2453 |
*aCaps=DMMTSY_PHONE_BATTERY_CAPS;
|
|
2454 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2455 |
return KErrNone;
|
|
2456 |
}
|
|
2457 |
|
|
2458 |
TInt CPhoneDMmTsy::GetBatteryInfo(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo)
|
|
2459 |
{
|
|
2460 |
LOGTEXT(_L8("CPhoneDMmTsy::GetBatteryInfo called"));
|
|
2461 |
aInfo->iStatus=DMMTSY_PHONE_BATTERY_STATUS1;
|
|
2462 |
aInfo->iChargeLevel=DMMTSY_PHONE_BATTERY_CHARGE1;
|
|
2463 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2464 |
return KErrNone;
|
|
2465 |
}
|
|
2466 |
|
|
2467 |
TInt CPhoneDMmTsy::GetBatteryInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2468 |
{
|
|
2469 |
LOGTEXT(_L8("CPhoneDMmTsy::GetBatteryInfoCancel called"));
|
|
2470 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2471 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2472 |
return KErrNone;
|
|
2473 |
}
|
|
2474 |
|
|
2475 |
TInt CPhoneDMmTsy::NotifyBatteryInfoChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo)
|
|
2476 |
{
|
|
2477 |
if (!iNotifyBatteryInfoChange++)
|
|
2478 |
{
|
|
2479 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyBatteryInfoChange called"));
|
|
2480 |
aInfo->iStatus=DMMTSY_PHONE_BATTERY_STATUS2;
|
|
2481 |
aInfo->iChargeLevel=DMMTSY_PHONE_BATTERY_CHARGE2;
|
|
2482 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2483 |
}
|
|
2484 |
return KErrNone;
|
|
2485 |
}
|
|
2486 |
|
|
2487 |
TInt CPhoneDMmTsy::NotifyBatteryInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2488 |
{
|
|
2489 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyBatteryInfoChangeCancel called"));
|
|
2490 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2491 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2492 |
return KErrNone;
|
|
2493 |
}
|
|
2494 |
|
|
2495 |
TInt CPhoneDMmTsy::GetSignalCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2496 |
{
|
|
2497 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSignalCaps called"));
|
|
2498 |
*aCaps=DMMTSY_PHONE_SIGNAL_CAPS;
|
|
2499 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2500 |
return KErrNone;
|
|
2501 |
}
|
|
2502 |
|
|
2503 |
TInt CPhoneDMmTsy::GetSignalStrength(const TTsyReqHandle aTsyReqHandle, TInt32* aSignalStrength, TInt8* aBar)
|
|
2504 |
{
|
|
2505 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSignalStrength called"));
|
|
2506 |
*aSignalStrength=DMMTSY_PHONE_SIGNAL_STRENGTH1;
|
|
2507 |
*aBar=DMMTSY_PHONE_SIGNAL_BAR1;
|
|
2508 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2509 |
return KErrNone;
|
|
2510 |
}
|
|
2511 |
|
|
2512 |
TInt CPhoneDMmTsy::GetSignalStrengthCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2513 |
{
|
|
2514 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSignalStrengthCancel called"));
|
|
2515 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2516 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2517 |
return KErrNone;
|
|
2518 |
}
|
|
2519 |
|
|
2520 |
TInt CPhoneDMmTsy::NotifySignalStrengthChange(const TTsyReqHandle aTsyReqHandle, TInt32* aSignalStrength, TInt8* aBar)
|
|
2521 |
{
|
|
2522 |
if (!iNotifySignalStrengthChange++)
|
|
2523 |
{
|
|
2524 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySignalStrengthChange called"));
|
|
2525 |
*aSignalStrength=DMMTSY_PHONE_SIGNAL_STRENGTH2;
|
|
2526 |
*aBar=DMMTSY_PHONE_SIGNAL_BAR2;
|
|
2527 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2528 |
}
|
|
2529 |
return KErrNone;
|
|
2530 |
}
|
|
2531 |
|
|
2532 |
TInt CPhoneDMmTsy::NotifySignalStrengthChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2533 |
{
|
|
2534 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySignalStrengthChangeCancel called"));
|
|
2535 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2536 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2537 |
return KErrNone;
|
|
2538 |
}
|
|
2539 |
|
|
2540 |
TInt CPhoneDMmTsy::GetIndicatorCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aActionCaps, TUint32* aIndCaps)
|
|
2541 |
{
|
|
2542 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIndicatorCaps called"));
|
|
2543 |
*aActionCaps=DMMTSY_PHONE_ACTION_INDICATOR_CAPS;
|
|
2544 |
*aIndCaps=DMMTSY_PHONE_INDICATOR_CAPS;
|
|
2545 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2546 |
return KErrNone;
|
|
2547 |
}
|
|
2548 |
|
|
2549 |
TInt CPhoneDMmTsy::GetIndicator(const TTsyReqHandle aTsyReqHandle, TUint32* aIndicator)
|
|
2550 |
{
|
|
2551 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIndicator called"));
|
|
2552 |
*aIndicator=DMMTSY_PHONE_INDICATOR1;
|
|
2553 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2554 |
return KErrNone;
|
|
2555 |
}
|
|
2556 |
|
|
2557 |
TInt CPhoneDMmTsy::GetIndicatorCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2558 |
{
|
|
2559 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIndicatorCancel called"));
|
|
2560 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2561 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2562 |
return KErrNone;
|
|
2563 |
}
|
|
2564 |
|
|
2565 |
TInt CPhoneDMmTsy::NotifyIndicatorChange(const TTsyReqHandle aTsyReqHandle, TUint32* aIndicator)
|
|
2566 |
{
|
|
2567 |
if (!iNotifyIndicatorChange++)
|
|
2568 |
{
|
|
2569 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIndicatorChange called"));
|
|
2570 |
*aIndicator=DMMTSY_PHONE_INDICATOR2;
|
|
2571 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2572 |
}
|
|
2573 |
return KErrNone;
|
|
2574 |
}
|
|
2575 |
|
|
2576 |
TInt CPhoneDMmTsy::NotifyIndicatorChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2577 |
{
|
|
2578 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIndicatorChangeCancel called"));
|
|
2579 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2580 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2581 |
return KErrNone;
|
|
2582 |
}
|
|
2583 |
|
|
2584 |
TInt CPhoneDMmTsy::GetIdentityCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2585 |
{
|
|
2586 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIdentityCaps called"));
|
|
2587 |
*aCaps=DMMTSY_PHONE_IDENTITY_CAPS;
|
|
2588 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2589 |
return KErrNone;
|
|
2590 |
}
|
|
2591 |
|
|
2592 |
TInt CPhoneDMmTsy::GetPhoneId(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIdentityV1* aId)
|
|
2593 |
{
|
|
2594 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPhoneId called"));
|
|
2595 |
aId->iManufacturer=DMMTSY_PHONE_MANUFACTURER;
|
|
2596 |
aId->iModel=DMMTSY_PHONE_MODEL;
|
|
2597 |
aId->iRevision=DMMTSY_PHONE_REVISION;
|
|
2598 |
aId->iSerialNumber=DMMTSY_PHONE_SERIAL_NUMBER;
|
|
2599 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2600 |
return KErrNone;
|
|
2601 |
}
|
|
2602 |
|
|
2603 |
TInt CPhoneDMmTsy::GetPhoneIdCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2604 |
{
|
|
2605 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPhoneIdCancel called"));
|
|
2606 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2607 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2608 |
return KErrNone;
|
|
2609 |
}
|
|
2610 |
|
|
2611 |
TInt CPhoneDMmTsy::GetSubscriberId(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSubscriberId* aId)
|
|
2612 |
{
|
|
2613 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSubscriberId called"));
|
|
2614 |
*aId=DMMTSY_PHONE_SUBSCRIBER_ID;
|
|
2615 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2616 |
return KErrNone;
|
|
2617 |
}
|
|
2618 |
|
|
2619 |
TInt CPhoneDMmTsy::GetSubscriberIdCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2620 |
{
|
|
2621 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSubscriberIdCancel called"));
|
|
2622 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2623 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2624 |
return KErrNone;
|
|
2625 |
}
|
|
2626 |
|
|
2627 |
TInt CPhoneDMmTsy::GetDTMFCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2628 |
{
|
|
2629 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDTMFCaps called"));
|
|
2630 |
*aCaps=DMMTSY_PHONE_DTMF_CAPS1;
|
|
2631 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2632 |
return KErrNone;
|
|
2633 |
}
|
|
2634 |
|
|
2635 |
TInt CPhoneDMmTsy::NotifyDTMFCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2636 |
{
|
|
2637 |
if (!iNotifyDTMFCapsChange++)
|
|
2638 |
{
|
|
2639 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDTMFCapsChange called"));
|
|
2640 |
*aCaps=DMMTSY_PHONE_DTMF_CAPS2;
|
|
2641 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2642 |
}
|
|
2643 |
return KErrNone;
|
|
2644 |
}
|
|
2645 |
|
|
2646 |
TInt CPhoneDMmTsy::NotifyDTMFCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2647 |
{
|
|
2648 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDTMFCapsChangeCancel called"));
|
|
2649 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2650 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2651 |
return KErrNone;
|
|
2652 |
}
|
|
2653 |
|
|
2654 |
TInt CPhoneDMmTsy::NotifyStopInDTMFString(const TTsyReqHandle aTsyReqHandle)
|
|
2655 |
{
|
|
2656 |
if (!iNotifyStopInDTMFString++)
|
|
2657 |
{
|
|
2658 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyStopInDTMFString called"));
|
|
2659 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2660 |
}
|
|
2661 |
return KErrNone;
|
|
2662 |
}
|
|
2663 |
|
|
2664 |
TInt CPhoneDMmTsy::NotifyStopInDTMFStringCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2665 |
{
|
|
2666 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyStopInDTMFStringCancel called"));
|
|
2667 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2668 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2669 |
return KErrNone;
|
|
2670 |
}
|
|
2671 |
|
|
2672 |
TInt CPhoneDMmTsy::ContinueDTMFStringSending(const TTsyReqHandle aTsyReqHandle, TBool *aContinue)
|
|
2673 |
{
|
|
2674 |
TInt err = KErrNone;
|
|
2675 |
if (!(*aContinue))
|
|
2676 |
err = KErrCorrupt;
|
|
2677 |
ReqCompleted(aTsyReqHandle,err);
|
|
2678 |
return KErrNone;
|
|
2679 |
}
|
|
2680 |
|
|
2681 |
TInt CPhoneDMmTsy::SendDTMFTones(const TTsyReqHandle aTsyReqHandle, TDesC* aTones)
|
|
2682 |
{
|
|
2683 |
LOGTEXT(_L8("CPhoneDMmTsy::SendDTMFTones called"));
|
|
2684 |
if (aTones->Length()!=DMMTSY_PHONE_SEND_TONES_LENGTH)
|
|
2685 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
2686 |
else if (aTones->Compare(DMMTSY_PHONE_SEND_TONES)!=KErrNone)
|
|
2687 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
2688 |
else
|
|
2689 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2690 |
return KErrNone;
|
|
2691 |
}
|
|
2692 |
|
|
2693 |
TInt CPhoneDMmTsy::SendDTMFTonesCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2694 |
{
|
|
2695 |
LOGTEXT(_L8("CPhoneDMmTsy::SendDTMFTonesCancel called"));
|
|
2696 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2697 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2698 |
return KErrNone;
|
|
2699 |
}
|
|
2700 |
|
|
2701 |
TInt CPhoneDMmTsy::ReadDTMFTones(const TTsyReqHandle aTsyReqHandle, TDes* aTones)
|
|
2702 |
{
|
|
2703 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadDTMFTones called"));
|
|
2704 |
aTones->Copy(DMMTSY_PHONE_READ_TONES);
|
|
2705 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2706 |
return KErrNone;
|
|
2707 |
}
|
|
2708 |
|
|
2709 |
TInt CPhoneDMmTsy::ReadDTMFTonesCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2710 |
{
|
|
2711 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadDTMFTonesCancel called"));
|
|
2712 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2713 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2714 |
return KErrNone;
|
|
2715 |
}
|
|
2716 |
|
|
2717 |
TInt CPhoneDMmTsy::StartDTMFTone(const TTsyReqHandle aTsyReqHandle, TChar* aTone)
|
|
2718 |
{
|
|
2719 |
LOGTEXT(_L8("CPhoneDMmTsy::StartDTMFTone called"));
|
|
2720 |
if (*aTone != DMMTSY_PHONE_SINGLE_TONE)
|
|
2721 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
2722 |
else
|
|
2723 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2724 |
|
|
2725 |
return KErrNone;
|
|
2726 |
}
|
|
2727 |
|
|
2728 |
TInt CPhoneDMmTsy::StopDTMFTone(const TTsyReqHandle aTsyReqHandle)
|
|
2729 |
{
|
|
2730 |
LOGTEXT(_L8("CPhoneDMmTsy::StopDTMFTone called"));
|
|
2731 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2732 |
return KErrNone;
|
|
2733 |
}
|
|
2734 |
|
|
2735 |
TInt CPhoneDMmTsy::GetNetworkCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
2736 |
{
|
|
2737 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkCaps called"));
|
|
2738 |
*aCaps=DMMTSY_PHONE_NETWORK_CAPS;
|
|
2739 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
2740 |
return KErrNone;
|
|
2741 |
}
|
|
2742 |
|
|
2743 |
TInt CPhoneDMmTsy::GetCurrentMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkMode* aMode)
|
|
2744 |
{
|
|
2745 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentMode called"));
|
|
2746 |
*aMode=DMMTSY_PHONE_NETWORK_MODE1;
|
|
2747 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2748 |
return KErrNone;
|
|
2749 |
}
|
|
2750 |
|
|
2751 |
TInt CPhoneDMmTsy::NotifyModeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkMode* aMode)
|
|
2752 |
{
|
|
2753 |
if (!iNotifyModeChange++)
|
|
2754 |
{
|
|
2755 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyModeChange called"));
|
|
2756 |
*aMode=DMMTSY_PHONE_NETWORK_MODE2;
|
|
2757 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2758 |
}
|
|
2759 |
return KErrNone;
|
|
2760 |
}
|
|
2761 |
|
|
2762 |
TInt CPhoneDMmTsy::NotifyModeChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2763 |
{
|
|
2764 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyModeChangeCancel called"));
|
|
2765 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2766 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2767 |
return KErrNone;
|
|
2768 |
}
|
|
2769 |
|
|
2770 |
TInt CPhoneDMmTsy::GetHomeNetwork(const TTsyReqHandle aTsyReqHandle, TDes8* aNetworkInfoPckg)
|
|
2771 |
{
|
|
2772 |
LOGTEXT(_L8("CPhoneDMmTsy::GetHomeNetwork called"));
|
|
2773 |
RMobilePhone::TMobilePhoneNetworkInfoV1Pckg* networkInfoV1Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV1Pckg*)aNetworkInfoPckg;
|
|
2774 |
RMobilePhone::TMobilePhoneNetworkInfoV1& networkInfoV1 = (*networkInfoV1Pckg)();
|
|
2775 |
|
|
2776 |
networkInfoV1.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
2777 |
networkInfoV1.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
2778 |
networkInfoV1.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
2779 |
networkInfoV1.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
2780 |
networkInfoV1.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
2781 |
networkInfoV1.iCdmaSID=DMMTSY_PHONE_HOME_NETWORK_SID;
|
|
2782 |
networkInfoV1.iAnalogSID=DMMTSY_PHONE_HOME_NETWORK_SID;
|
|
2783 |
networkInfoV1.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
2784 |
networkInfoV1.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
2785 |
networkInfoV1.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
2786 |
|
|
2787 |
if(networkInfoV1.ExtensionId() == KEtelExtMultimodeV8)
|
|
2788 |
{
|
|
2789 |
RMobilePhone::TMobilePhoneNetworkInfoV8Pckg* networkInfoV8Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV8Pckg*)aNetworkInfoPckg;
|
|
2790 |
RMobilePhone::TMobilePhoneNetworkInfoV8& networkInfoV8 = (*networkInfoV8Pckg)();
|
|
2791 |
networkInfoV8.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH;
|
|
2792 |
networkInfoV8.iHsdpaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSDPA_AVAILABILITY;
|
|
2793 |
networkInfoV8.iEgprsAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_EGPRS_AVAILABILITY;
|
|
2794 |
networkInfoV8.iHsupaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSUPA_AVAILABILITY;
|
|
2795 |
}
|
|
2796 |
|
|
2797 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2798 |
return KErrNone;
|
|
2799 |
}
|
|
2800 |
|
|
2801 |
TInt CPhoneDMmTsy::GetHomeNetworkCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2802 |
{
|
|
2803 |
LOGTEXT(_L8("CPhoneDMmTsy::GetHomeNetworkCancel called"));
|
|
2804 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2805 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2806 |
return KErrNone;
|
|
2807 |
}
|
|
2808 |
|
|
2809 |
TInt CPhoneDMmTsy::GetCurrentNetwork(const TTsyReqHandle aTsyReqHandle, TDes8* aNetworkInfoPckg, RMobilePhone::TMobilePhoneLocationAreaV1* aArea)
|
|
2810 |
{
|
|
2811 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetwork called"));
|
|
2812 |
RMobilePhone::TMobilePhoneNetworkInfoV1Pckg* networkInfoV1Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV1Pckg*)aNetworkInfoPckg;
|
|
2813 |
RMobilePhone::TMobilePhoneNetworkInfoV1& networkInfoV1 = (*networkInfoV1Pckg)();
|
|
2814 |
|
|
2815 |
if(networkInfoV1.ExtensionId() == KETelExt3rdPartyV1)
|
|
2816 |
{
|
|
2817 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetworkISV called"));
|
|
2818 |
RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1Pckg* networkInfoISVPckg = (RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1Pckg*)aNetworkInfoPckg;
|
|
2819 |
RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1& networkInfoISV = (*networkInfoISVPckg)();
|
|
2820 |
|
|
2821 |
networkInfoISV.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE_ISV;
|
|
2822 |
networkInfoISV.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS_ISV;
|
|
2823 |
networkInfoISV.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND_ISV;
|
|
2824 |
networkInfoISV.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC_ISV;
|
|
2825 |
networkInfoISV.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID_ISV;
|
|
2826 |
networkInfoISV.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG_ISV;
|
|
2827 |
networkInfoISV.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME_ISV;
|
|
2828 |
networkInfoISV.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME_ISV;
|
|
2829 |
networkInfoISV.iCdmaSID=DMMTSY_PHONE_CURRENT_NETWORK_CDMASID_ISV;
|
|
2830 |
networkInfoISV.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_UTRAN_ISV;
|
|
2831 |
|
|
2832 |
if(aArea)
|
|
2833 |
{
|
|
2834 |
aArea->iAreaKnown=DMMTSY_PHONE_CURRENT_NETWORK_AREAKNOWN_ISV;
|
|
2835 |
aArea->iLocationAreaCode=DMMTSY_PHONE_CURRENT_NETWORK_LAC_ISV;
|
|
2836 |
aArea->iCellId=DMMTSY_PHONE_CURRENT_NETWORK_CELLID_ISV;
|
|
2837 |
|
|
2838 |
}
|
|
2839 |
|
|
2840 |
}
|
|
2841 |
else
|
|
2842 |
{
|
|
2843 |
if(networkInfoV1.ExtensionId() == KEtelExtMultimodeV8)
|
|
2844 |
{
|
|
2845 |
RMobilePhone::TMobilePhoneNetworkInfoV8Pckg* networkInfoV8Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV8Pckg*)aNetworkInfoPckg;
|
|
2846 |
RMobilePhone::TMobilePhoneNetworkInfoV8& networkInfoV8 = (*networkInfoV8Pckg)();
|
|
2847 |
networkInfoV8.iAccess = DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH1;
|
|
2848 |
|
|
2849 |
networkInfoV8.iHsdpaAvailableIndicator = DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY1;
|
|
2850 |
networkInfoV8.iEgprsAvailableIndicator = DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY1;
|
|
2851 |
networkInfoV8.iHsupaAvailableIndicator = DMMTSY_PHONE_CURRENT_NETWORK_HSUPA_AVAILABILITY1;
|
|
2852 |
}
|
|
2853 |
|
|
2854 |
|
|
2855 |
else if(networkInfoV1.ExtensionId() == KEtelExtMultimodeV5)
|
|
2856 |
{
|
|
2857 |
RMobilePhone::TMobilePhoneNetworkInfoV5Pckg* networkInfoV5Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV5Pckg*)aNetworkInfoPckg;
|
|
2858 |
RMobilePhone::TMobilePhoneNetworkInfoV5& networkInfoV5 = (*networkInfoV5Pckg)();
|
|
2859 |
networkInfoV5.iAccess = DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_GSM;
|
|
2860 |
|
|
2861 |
networkInfoV5.iHsdpaAvailableIndicator = DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY;
|
|
2862 |
networkInfoV5.iEgprsAvailableIndicator = DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY;
|
|
2863 |
}
|
|
2864 |
|
|
2865 |
else if(networkInfoV1.ExtensionId() == KETelExtMultimodeV2)
|
|
2866 |
{
|
|
2867 |
RMobilePhone::TMobilePhoneNetworkInfoV2Pckg* networkInfoV2Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV2Pckg*)aNetworkInfoPckg;
|
|
2868 |
RMobilePhone::TMobilePhoneNetworkInfoV2& networkInfoV2 = (*networkInfoV2Pckg)();
|
|
2869 |
networkInfoV2.iAccess = DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_GSM;
|
|
2870 |
}
|
|
2871 |
|
|
2872 |
networkInfoV1.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE1;
|
|
2873 |
networkInfoV1.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS1;
|
|
2874 |
networkInfoV1.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND1;
|
|
2875 |
networkInfoV1.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC1;
|
|
2876 |
networkInfoV1.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID1;
|
|
2877 |
networkInfoV1.iCdmaSID=DMMTSY_PHONE_CURRENT_NETWORK_SID;
|
|
2878 |
networkInfoV1.iAnalogSID=DMMTSY_PHONE_CURRENT_NETWORK_SID;
|
|
2879 |
networkInfoV1.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG1;
|
|
2880 |
networkInfoV1.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME1;
|
|
2881 |
networkInfoV1.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME1;
|
|
2882 |
|
|
2883 |
if(aArea)
|
|
2884 |
{
|
|
2885 |
aArea->iAreaKnown=DMMTSY_PHONE_CURRENT_NETWORK_AREAKNOWN;
|
|
2886 |
aArea->iLocationAreaCode=DMMTSY_PHONE_CURRENT_NETWORK_LAC1;
|
|
2887 |
aArea->iCellId=DMMTSY_PHONE_CURRENT_NETWORK_CELLID1;
|
|
2888 |
}
|
|
2889 |
}
|
|
2890 |
|
|
2891 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2892 |
return KErrNone;
|
|
2893 |
}
|
|
2894 |
|
|
2895 |
TInt CPhoneDMmTsy::GetCurrentNetworkCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2896 |
{
|
|
2897 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetworkCancel called"));
|
|
2898 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2899 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2900 |
return KErrNone;
|
|
2901 |
}
|
|
2902 |
|
|
2903 |
TInt CPhoneDMmTsy::NotifyCurrentNetworkChange(const TTsyReqHandle aTsyReqHandle, TDes8* aNetworkInfoPckg, RMobilePhone::TMobilePhoneLocationAreaV1* aArea)
|
|
2904 |
{
|
|
2905 |
if (!iNotifyCurrentNetworkChange++)
|
|
2906 |
{
|
|
2907 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCurrentNetworkChange called"));
|
|
2908 |
|
|
2909 |
RMobilePhone::TMobilePhoneNetworkInfoV1Pckg* networkInfoPckg = (RMobilePhone::TMobilePhoneNetworkInfoV1Pckg*)aNetworkInfoPckg;
|
|
2910 |
RMobilePhone::TMobilePhoneNetworkInfoV1& networkInfo = (*networkInfoPckg)();
|
|
2911 |
|
|
2912 |
if(networkInfo.ExtensionId() == KETelExt3rdPartyV1)
|
|
2913 |
{
|
|
2914 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetworkISV called"));
|
|
2915 |
RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1Pckg* networkInfoISVPckg = (RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1Pckg*)aNetworkInfoPckg;
|
|
2916 |
RMobilePhone::TEtel3rdPartyMobileNetworkInfoV1& networkInfoISV = (*networkInfoISVPckg)();
|
|
2917 |
|
|
2918 |
networkInfoISV.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE_ISV2;
|
|
2919 |
networkInfoISV.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS_ISV2;
|
|
2920 |
networkInfoISV.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND_ISV2;
|
|
2921 |
networkInfoISV.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC_ISV2;
|
|
2922 |
networkInfoISV.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID_ISV2;
|
|
2923 |
networkInfoISV.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG_ISV2;
|
|
2924 |
networkInfoISV.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME_ISV2;
|
|
2925 |
networkInfoISV.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME_ISV2;
|
|
2926 |
networkInfoISV.iCdmaSID=DMMTSY_PHONE_CURRENT_NETWORK_CDMASID_ISV2;
|
|
2927 |
networkInfoISV.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_UTRAN_ISV2;
|
|
2928 |
|
|
2929 |
aArea->iAreaKnown=DMMTSY_PHONE_CURRENT_NETWORK_AREAKNOWN_ISV2;
|
|
2930 |
aArea->iLocationAreaCode=DMMTSY_PHONE_CURRENT_NETWORK_LAC_ISV2;
|
|
2931 |
aArea->iCellId=DMMTSY_PHONE_CURRENT_NETWORK_CELLID_ISV2;
|
|
2932 |
|
|
2933 |
}
|
|
2934 |
else
|
|
2935 |
{
|
|
2936 |
if(networkInfo.ExtensionId() == KETelExtMultimodeV2)
|
|
2937 |
{
|
|
2938 |
RMobilePhone::TMobilePhoneNetworkInfoV2Pckg* networkInfoV2Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV2Pckg*)aNetworkInfoPckg;
|
|
2939 |
RMobilePhone::TMobilePhoneNetworkInfoV2& networkInfoV2 = (*networkInfoV2Pckg)();
|
|
2940 |
networkInfoV2.iAccess = DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_GSM;
|
|
2941 |
//reset for V1
|
|
2942 |
iNotifyCurrentNetworkChange = 0;
|
|
2943 |
}
|
|
2944 |
|
|
2945 |
if(networkInfo.ExtensionId() == KEtelExtMultimodeV8)
|
|
2946 |
{
|
|
2947 |
RMobilePhone::TMobilePhoneNetworkInfoV8Pckg* networkInfoV8Pckg = (RMobilePhone::TMobilePhoneNetworkInfoV8Pckg*)aNetworkInfoPckg;
|
|
2948 |
RMobilePhone::TMobilePhoneNetworkInfoV8& networkInfoV8 = (*networkInfoV8Pckg)();
|
|
2949 |
networkInfoV8.iAccess = DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH2;
|
|
2950 |
//reset for V8
|
|
2951 |
networkInfoV8.iHsdpaAvailableIndicator= DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY2;
|
|
2952 |
networkInfoV8.iEgprsAvailableIndicator= DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY2;
|
|
2953 |
networkInfoV8.iHsupaAvailableIndicator= DMMTSY_PHONE_CURRENT_NETWORK_HSUPA_AVAILABILITY2;
|
|
2954 |
iNotifyCurrentNetworkChange = 0;
|
|
2955 |
}
|
|
2956 |
|
|
2957 |
networkInfo.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE2;
|
|
2958 |
networkInfo.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS2;
|
|
2959 |
networkInfo.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND2;
|
|
2960 |
networkInfo.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC2;
|
|
2961 |
networkInfo.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID2;
|
|
2962 |
networkInfo.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG2;
|
|
2963 |
networkInfo.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME2;
|
|
2964 |
networkInfo.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME2;
|
|
2965 |
|
|
2966 |
if(aArea)
|
|
2967 |
{
|
|
2968 |
aArea->iAreaKnown=DMMTSY_PHONE_CURRENT_NETWORK_AREAKNOWN;
|
|
2969 |
aArea->iLocationAreaCode=DMMTSY_PHONE_CURRENT_NETWORK_LAC2;
|
|
2970 |
aArea->iCellId=DMMTSY_PHONE_CURRENT_NETWORK_CELLID2;
|
|
2971 |
}
|
|
2972 |
|
|
2973 |
|
|
2974 |
}
|
|
2975 |
//reset for etel3rd
|
|
2976 |
iNotifyCurrentNetworkChange = 0;
|
|
2977 |
|
|
2978 |
AddDelayedReq(aTsyReqHandle,this);
|
|
2979 |
}
|
|
2980 |
else
|
|
2981 |
{
|
|
2982 |
//reset for multiple completion test
|
|
2983 |
iNotifyCurrentNetworkChange = 0;
|
|
2984 |
}
|
|
2985 |
return KErrNone;
|
|
2986 |
}
|
|
2987 |
|
|
2988 |
TInt CPhoneDMmTsy::NotifyCurrentNetworkChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
2989 |
{
|
|
2990 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCurrentNetworkChangeCancel called"));
|
|
2991 |
RemoveDelayedReq(aTsyReqHandle);
|
|
2992 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
2993 |
return KErrNone;
|
|
2994 |
}
|
|
2995 |
|
|
2996 |
TInt CPhoneDMmTsy::GetCellInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aCellInfoPckg)
|
|
2997 |
{
|
|
2998 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCellInfo called"));
|
|
2999 |
RMobilePhone::TMobilePhoneCellInfoV9Pckg* cellInfoPckg = (RMobilePhone::TMobilePhoneCellInfoV9Pckg*)aCellInfoPckg;
|
|
3000 |
RMobilePhone::TMobilePhoneCellInfoV9& cellInfo = (*cellInfoPckg)();
|
|
3001 |
|
|
3002 |
cellInfo.iMode = DMMTSY_PHONE_CELL_INFO_MODE;
|
|
3003 |
cellInfo.iCellId = DMMTSY_PHONE_CELL_INFO_CELLID;
|
|
3004 |
cellInfo.iTimingAdvance = DMMTSY_PHONE_CELL_INFO_TIMING_ADVANCE;
|
|
3005 |
cellInfo.iStatus = DMMTSY_PHONE_CELL_INFO_STATUS;
|
|
3006 |
|
|
3007 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3008 |
return KErrNone;
|
|
3009 |
}
|
|
3010 |
|
|
3011 |
TInt CPhoneDMmTsy::GetCellInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3012 |
{
|
|
3013 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCellInfoCancel called"));
|
|
3014 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3015 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3016 |
return KErrNone;
|
|
3017 |
}
|
|
3018 |
|
|
3019 |
TInt CPhoneDMmTsy::NotifyCellInfoChange(const TTsyReqHandle aTsyReqHandle, TDes8* aCellInfoPckg)
|
|
3020 |
{
|
|
3021 |
if (!iNotifyCellInfoChange++)
|
|
3022 |
{
|
|
3023 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCellInfoChange called"));
|
|
3024 |
|
|
3025 |
RMobilePhone::TMobilePhoneCellInfoV9Pckg* cellInfoPckg = (RMobilePhone::TMobilePhoneCellInfoV9Pckg*)aCellInfoPckg;
|
|
3026 |
RMobilePhone::TMobilePhoneCellInfoV9& cellInfo = (*cellInfoPckg)();
|
|
3027 |
|
|
3028 |
cellInfo.iMode = DMMTSY_PHONE_CELL_INFO_MODE2;
|
|
3029 |
cellInfo.iCellId = DMMTSY_PHONE_CELL_INFO_CELLID2;
|
|
3030 |
cellInfo.iTimingAdvance = DMMTSY_PHONE_CELL_INFO_TIMING_ADVANCE2;
|
|
3031 |
cellInfo.iStatus = DMMTSY_PHONE_CELL_INFO_STATUS2;
|
|
3032 |
|
|
3033 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3034 |
}
|
|
3035 |
else
|
|
3036 |
{
|
|
3037 |
//reset for multiple completion test
|
|
3038 |
iNotifyCellInfoChange = 0;
|
|
3039 |
}
|
|
3040 |
return KErrNone;
|
|
3041 |
}
|
|
3042 |
|
|
3043 |
TInt CPhoneDMmTsy::NotifyCellInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3044 |
{
|
|
3045 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCellInfoChangeCancel called"));
|
|
3046 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3047 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3048 |
return KErrNone;
|
|
3049 |
}
|
|
3050 |
|
|
3051 |
TInt CPhoneDMmTsy::GetNetworkRegistrationStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneRegistrationStatus* aStatus)
|
|
3052 |
{
|
|
3053 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkRegistrationStatus called"));
|
|
3054 |
*aStatus=DMMTSY_PHONE_REGISTRATION_STATUS1;
|
|
3055 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3056 |
return KErrNone;
|
|
3057 |
}
|
|
3058 |
|
|
3059 |
TInt CPhoneDMmTsy::GetNetworkRegistrationStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3060 |
{
|
|
3061 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkRegistrationStatusCancel called"));
|
|
3062 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3063 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3064 |
return KErrNone;
|
|
3065 |
}
|
|
3066 |
|
|
3067 |
TInt CPhoneDMmTsy::NotifyNetworkRegistrationStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneRegistrationStatus* aStatus)
|
|
3068 |
{
|
|
3069 |
if(!iNotifyNetworkRegistrationStatusChange++)
|
|
3070 |
{
|
|
3071 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkRegistrationStatusChange called"));
|
|
3072 |
*aStatus=DMMTSY_PHONE_REGISTRATION_STATUS2;
|
|
3073 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3074 |
}
|
|
3075 |
return KErrNone;
|
|
3076 |
}
|
|
3077 |
|
|
3078 |
TInt CPhoneDMmTsy::NotifyNetworkRegistrationStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3079 |
{
|
|
3080 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkRegistrationStatusChangeCancel called"));
|
|
3081 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3082 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3083 |
return KErrNone;
|
|
3084 |
}
|
|
3085 |
|
|
3086 |
TInt CPhoneDMmTsy::GetDetectedNetworksPhase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
3087 |
{
|
|
3088 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksPhase1 called"));
|
|
3089 |
TInt ret=KErrNone;
|
|
3090 |
TInt leaveCode=KErrNone;
|
|
3091 |
TRAP(leaveCode, ret=ProcessGetDetectedNetworksPhase1L(aTsyReqHandle, aClient, aBufSize););
|
|
3092 |
if (leaveCode != KErrNone)
|
|
3093 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
3094 |
return ret;
|
|
3095 |
}
|
|
3096 |
|
|
3097 |
TInt CPhoneDMmTsy::ProcessGetDetectedNetworksPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
3098 |
RMobilePhone::TClientId* aClient,
|
|
3099 |
TInt* aBufSize)
|
|
3100 |
{
|
|
3101 |
// retrieve detected networks from phone,
|
|
3102 |
// store each network as a list entry,
|
|
3103 |
// stream the list and then return size of this buffer to client
|
|
3104 |
CMobilePhoneNetworkList* list=CMobilePhoneNetworkList::NewL();
|
|
3105 |
CleanupStack::PushL(list);
|
|
3106 |
|
|
3107 |
RMobilePhone::TMobilePhoneNetworkInfoV1 entry;
|
|
3108 |
|
|
3109 |
// fill up an example list
|
|
3110 |
for (TInt index=0; index < DMMTSY_NETWORK_COUNT; index++)
|
|
3111 |
{
|
|
3112 |
switch (index)
|
|
3113 |
{
|
|
3114 |
case 0:
|
|
3115 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE1;
|
|
3116 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS1;
|
|
3117 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND1;
|
|
3118 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC1;
|
|
3119 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID1;
|
|
3120 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG1;
|
|
3121 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME1;
|
|
3122 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME1;
|
|
3123 |
break;
|
|
3124 |
case 1:
|
|
3125 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE2;
|
|
3126 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS2;
|
|
3127 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND2;
|
|
3128 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC2;
|
|
3129 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID2;
|
|
3130 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG2;
|
|
3131 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME2;
|
|
3132 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME2;
|
|
3133 |
break;
|
|
3134 |
case 2:
|
|
3135 |
default:
|
|
3136 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3137 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3138 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3139 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3140 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3141 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3142 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3143 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3144 |
break;
|
|
3145 |
}
|
|
3146 |
// Add the entry into the list, at the next empty location
|
|
3147 |
list->AddEntryL(entry);
|
|
3148 |
}
|
|
3149 |
|
|
3150 |
// Store the streamed list and the client ID
|
|
3151 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
3152 |
CleanupStack::PushL(read);
|
|
3153 |
|
|
3154 |
read->iListBuf = list->StoreLC();
|
|
3155 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
3156 |
|
|
3157 |
iGetDetectedNetworks->AppendL(read);
|
|
3158 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
3159 |
|
|
3160 |
// return the CBufBase’s size to client
|
|
3161 |
*aBufSize=(read->iListBuf)->Size();
|
|
3162 |
|
|
3163 |
// Complete first phase of list retrieval
|
|
3164 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3165 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
3166 |
return KErrNone;
|
|
3167 |
}
|
|
3168 |
|
|
3169 |
|
|
3170 |
|
|
3171 |
TInt CPhoneDMmTsy::GetDetectedNetworksPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
3172 |
{
|
|
3173 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksPhase2 called"));
|
|
3174 |
CListReadAllAttempt* read=NULL;
|
|
3175 |
// Find the get detected network attempt from this client
|
|
3176 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3177 |
{
|
|
3178 |
read = iGetDetectedNetworks->At(i);
|
|
3179 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
3180 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
3181 |
{
|
|
3182 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
3183 |
// Copy the streamed list to the client
|
|
3184 |
aBuf->Copy(bufPtr);
|
|
3185 |
delete read;
|
|
3186 |
iGetDetectedNetworks->Delete(i);
|
|
3187 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3188 |
return KErrNone;
|
|
3189 |
}
|
|
3190 |
}
|
|
3191 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
3192 |
return KErrNotFound;
|
|
3193 |
}
|
|
3194 |
|
|
3195 |
TInt CPhoneDMmTsy::GetDetectedNetworksCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3196 |
{
|
|
3197 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksCancel called"));
|
|
3198 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3199 |
// Remove the read all attempt from iGetDetectedNetworks
|
|
3200 |
CListReadAllAttempt* read=NULL;
|
|
3201 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3202 |
{
|
|
3203 |
read = iGetDetectedNetworks->At(i);
|
|
3204 |
if (read->iReqHandle == aTsyReqHandle)
|
|
3205 |
{
|
|
3206 |
delete read;
|
|
3207 |
iGetDetectedNetworks->Delete(i);
|
|
3208 |
break;
|
|
3209 |
}
|
|
3210 |
}
|
|
3211 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3212 |
return KErrNone;
|
|
3213 |
}
|
|
3214 |
|
|
3215 |
TInt CPhoneDMmTsy::GetDetectedNetworksV2Phase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
3216 |
{
|
|
3217 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV2Phase1 called"));
|
|
3218 |
TInt ret=KErrNone;
|
|
3219 |
TInt leaveCode=KErrNone;
|
|
3220 |
TRAP(leaveCode, ret=ProcessGetDetectedNetworksV2Phase1L(aTsyReqHandle, aClient, aBufSize););
|
|
3221 |
if (leaveCode != KErrNone)
|
|
3222 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
3223 |
return ret;
|
|
3224 |
}
|
|
3225 |
|
|
3226 |
TInt CPhoneDMmTsy::ProcessGetDetectedNetworksV2Phase1L(const TTsyReqHandle aTsyReqHandle,
|
|
3227 |
RMobilePhone::TClientId* aClient,
|
|
3228 |
TInt* aBufSize)
|
|
3229 |
{
|
|
3230 |
// Retrieve detected networks from phone,
|
|
3231 |
// Store each network as a list entry of type TMobilePhoneNetworkInfoV2,
|
|
3232 |
// Stream the list and then return size of this buffer to client
|
|
3233 |
CMobilePhoneNetworkListV2* list=CMobilePhoneNetworkListV2::NewL();
|
|
3234 |
CleanupStack::PushL(list);
|
|
3235 |
|
|
3236 |
RMobilePhone::TMobilePhoneNetworkInfoV2 entry;
|
|
3237 |
|
|
3238 |
// fill up an example list
|
|
3239 |
for (TInt index=0; index < DMMTSY_NETWORK_COUNT; index++)
|
|
3240 |
{
|
|
3241 |
switch (index)
|
|
3242 |
{
|
|
3243 |
case 0:
|
|
3244 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE1;
|
|
3245 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS1;
|
|
3246 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND1;
|
|
3247 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC1;
|
|
3248 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID1;
|
|
3249 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG1;
|
|
3250 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME1;
|
|
3251 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME1;
|
|
3252 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH1;
|
|
3253 |
break;
|
|
3254 |
case 1:
|
|
3255 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE2;
|
|
3256 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS2;
|
|
3257 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND2;
|
|
3258 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC2;
|
|
3259 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID2;
|
|
3260 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG2;
|
|
3261 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME2;
|
|
3262 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME2;
|
|
3263 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH2;
|
|
3264 |
break;
|
|
3265 |
case 2:
|
|
3266 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3267 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3268 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3269 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3270 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3271 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3272 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3273 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3274 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH;
|
|
3275 |
break;
|
|
3276 |
case 3:
|
|
3277 |
default:
|
|
3278 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3279 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3280 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3281 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3282 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3283 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3284 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3285 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3286 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH3;
|
|
3287 |
break;
|
|
3288 |
}
|
|
3289 |
// Add the entry into the list, at the next empty location
|
|
3290 |
list->AddEntryL(entry);
|
|
3291 |
}
|
|
3292 |
|
|
3293 |
// Store the streamed list and the client ID
|
|
3294 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
3295 |
CleanupStack::PushL(read);
|
|
3296 |
|
|
3297 |
read->iListBuf = list->StoreLC();
|
|
3298 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
3299 |
|
|
3300 |
iGetDetectedNetworks->AppendL(read);
|
|
3301 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
3302 |
|
|
3303 |
// return the CBufBase’s size to client
|
|
3304 |
*aBufSize=(read->iListBuf)->Size();
|
|
3305 |
|
|
3306 |
// Complete first phase of list retrieval
|
|
3307 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3308 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
3309 |
return KErrNone;
|
|
3310 |
}
|
|
3311 |
|
|
3312 |
|
|
3313 |
|
|
3314 |
TInt CPhoneDMmTsy::GetDetectedNetworksV2Phase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
3315 |
{
|
|
3316 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV2Phase2 called"));
|
|
3317 |
CListReadAllAttempt* read=NULL;
|
|
3318 |
// Find the get detected network attempt from this client
|
|
3319 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3320 |
{
|
|
3321 |
read = iGetDetectedNetworks->At(i);
|
|
3322 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
3323 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
3324 |
{
|
|
3325 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
3326 |
// Copy the streamed list to the client
|
|
3327 |
aBuf->Copy(bufPtr);
|
|
3328 |
delete read;
|
|
3329 |
iGetDetectedNetworks->Delete(i);
|
|
3330 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3331 |
return KErrNone;
|
|
3332 |
}
|
|
3333 |
}
|
|
3334 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
3335 |
return KErrNotFound;
|
|
3336 |
}
|
|
3337 |
|
|
3338 |
TInt CPhoneDMmTsy::GetDetectedNetworksV2Cancel(const TTsyReqHandle aTsyReqHandle)
|
|
3339 |
{
|
|
3340 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV2Cancel called"));
|
|
3341 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3342 |
// Remove the read all attempt from iGetDetectedNetworks
|
|
3343 |
CListReadAllAttempt* read=NULL;
|
|
3344 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3345 |
{
|
|
3346 |
read = iGetDetectedNetworks->At(i);
|
|
3347 |
if (read->iReqHandle == aTsyReqHandle)
|
|
3348 |
{
|
|
3349 |
delete read;
|
|
3350 |
iGetDetectedNetworks->Delete(i);
|
|
3351 |
break;
|
|
3352 |
}
|
|
3353 |
}
|
|
3354 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3355 |
return KErrNone;
|
|
3356 |
}
|
|
3357 |
|
|
3358 |
//
|
|
3359 |
// GetDetectedNetworksV8 //
|
|
3360 |
//
|
|
3361 |
TInt CPhoneDMmTsy::GetDetectedNetworksV8Phase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
3362 |
{
|
|
3363 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV8Phase1 called"));
|
|
3364 |
TInt ret=KErrNone;
|
|
3365 |
TRAPD(leaveCode, ret=ProcessGetDetectedNetworksV8Phase1L(aTsyReqHandle, aClient, aBufSize););
|
|
3366 |
if (leaveCode != KErrNone)
|
|
3367 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
3368 |
return ret;
|
|
3369 |
}
|
|
3370 |
|
|
3371 |
TInt CPhoneDMmTsy::ProcessGetDetectedNetworksV8Phase1L(const TTsyReqHandle aTsyReqHandle,
|
|
3372 |
RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
3373 |
{
|
|
3374 |
// Retrieve detected networks from phone,
|
|
3375 |
// Store each network as a list entry of type TMobilePhoneNetworkInfoV8,
|
|
3376 |
// Stream the list and then return size of this buffer to client
|
|
3377 |
CMobilePhoneNetworkListV8* list=CMobilePhoneNetworkListV8::NewL();
|
|
3378 |
CleanupStack::PushL(list);
|
|
3379 |
|
|
3380 |
RMobilePhone::TMobilePhoneNetworkInfoV8 entry;
|
|
3381 |
|
|
3382 |
// fill up an example list
|
|
3383 |
for (TInt index=0; index < DMMTSY_NETWORK_COUNT; index++)
|
|
3384 |
{
|
|
3385 |
switch (index)
|
|
3386 |
{
|
|
3387 |
case 0:
|
|
3388 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE1;
|
|
3389 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS1;
|
|
3390 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND1;
|
|
3391 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC1;
|
|
3392 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID1;
|
|
3393 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG1;
|
|
3394 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME1;
|
|
3395 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME1;
|
|
3396 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH1;
|
|
3397 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY1;
|
|
3398 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY1;
|
|
3399 |
entry.iHsupaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSUPA_AVAILABILITY1;
|
|
3400 |
break;
|
|
3401 |
case 1:
|
|
3402 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE2;
|
|
3403 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS2;
|
|
3404 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND2;
|
|
3405 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC2;
|
|
3406 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID2;
|
|
3407 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG2;
|
|
3408 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME2;
|
|
3409 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME2;
|
|
3410 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH2;
|
|
3411 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY2;
|
|
3412 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY2;
|
|
3413 |
entry.iHsupaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSUPA_AVAILABILITY2;
|
|
3414 |
break;
|
|
3415 |
case 2:
|
|
3416 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3417 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3418 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3419 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3420 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3421 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3422 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3423 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3424 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH;
|
|
3425 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSDPA_AVAILABILITY;
|
|
3426 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_EGPRS_AVAILABILITY;
|
|
3427 |
entry.iHsupaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSUPA_AVAILABILITY;
|
|
3428 |
break;
|
|
3429 |
case 3:
|
|
3430 |
default:
|
|
3431 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3432 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3433 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3434 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3435 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3436 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3437 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3438 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3439 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH3;
|
|
3440 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSDPA_AVAILABILITY;
|
|
3441 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_EGPRS_AVAILABILITY;
|
|
3442 |
entry.iHsupaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSUPA_AVAILABILITY;
|
|
3443 |
break;
|
|
3444 |
}
|
|
3445 |
// Add the entry into the list, at the next empty location
|
|
3446 |
list->AddEntryL(entry);
|
|
3447 |
}
|
|
3448 |
// Store the streamed list and the client ID
|
|
3449 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
3450 |
CleanupStack::PushL(read);
|
|
3451 |
|
|
3452 |
read->iListBuf = list->StoreLC();
|
|
3453 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
3454 |
|
|
3455 |
iGetDetectedNetworks->AppendL(read);
|
|
3456 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
3457 |
|
|
3458 |
// return the CBufBase’s size to client
|
|
3459 |
*aBufSize=(read->iListBuf)->Size();
|
|
3460 |
|
|
3461 |
// Complete first phase of list retrieval
|
|
3462 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3463 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
3464 |
return KErrNone;
|
|
3465 |
}
|
|
3466 |
|
|
3467 |
TInt CPhoneDMmTsy::GetDetectedNetworksV8Phase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
3468 |
{
|
|
3469 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV8Phase2 called"));
|
|
3470 |
CListReadAllAttempt* read=NULL;
|
|
3471 |
// Find the get detected network attempt from this client
|
|
3472 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3473 |
{
|
|
3474 |
read = iGetDetectedNetworks->At(i);
|
|
3475 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
3476 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
3477 |
{
|
|
3478 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
3479 |
// Copy the streamed list to the client
|
|
3480 |
aBuf->Copy(bufPtr);
|
|
3481 |
delete read;
|
|
3482 |
iGetDetectedNetworks->Delete(i);
|
|
3483 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3484 |
return KErrNone;
|
|
3485 |
}
|
|
3486 |
}
|
|
3487 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
3488 |
return KErrNotFound;
|
|
3489 |
}
|
|
3490 |
|
|
3491 |
TInt CPhoneDMmTsy::GetDetectedNetworksV8Cancel(const TTsyReqHandle aTsyReqHandle)
|
|
3492 |
{
|
|
3493 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV8Cancel called"));
|
|
3494 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3495 |
// Remove the read all attempt from iGetDetectedNetworks
|
|
3496 |
CListReadAllAttempt* read=NULL;
|
|
3497 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3498 |
{
|
|
3499 |
read = iGetDetectedNetworks->At(i);
|
|
3500 |
if (read->iReqHandle == aTsyReqHandle)
|
|
3501 |
{
|
|
3502 |
delete read;
|
|
3503 |
iGetDetectedNetworks->Delete(i);
|
|
3504 |
break;
|
|
3505 |
}
|
|
3506 |
}
|
|
3507 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3508 |
return KErrNone;
|
|
3509 |
}
|
|
3510 |
|
|
3511 |
|
|
3512 |
//
|
|
3513 |
// GetDetectedNetworksV5 //
|
|
3514 |
//
|
|
3515 |
TInt CPhoneDMmTsy::GetDetectedNetworksV5Phase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
3516 |
{
|
|
3517 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV5Phase1 called"));
|
|
3518 |
TInt ret=KErrNone;
|
|
3519 |
TInt leaveCode=KErrNone;
|
|
3520 |
TRAP(leaveCode, ret=ProcessGetDetectedNetworksV5Phase1L(aTsyReqHandle, aClient, aBufSize););
|
|
3521 |
if (leaveCode != KErrNone)
|
|
3522 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
3523 |
return ret;
|
|
3524 |
}
|
|
3525 |
|
|
3526 |
TInt CPhoneDMmTsy::ProcessGetDetectedNetworksV5Phase1L(const TTsyReqHandle aTsyReqHandle,
|
|
3527 |
RMobilePhone::TClientId* aClient,
|
|
3528 |
TInt* aBufSize)
|
|
3529 |
{
|
|
3530 |
// Retrieve detected networks from phone,
|
|
3531 |
// Store each network as a list entry of type TMobilePhoneNetworkInfoV2,
|
|
3532 |
// Stream the list and then return size of this buffer to client
|
|
3533 |
CMobilePhoneNetworkListV5* list=CMobilePhoneNetworkListV5::NewL();
|
|
3534 |
CleanupStack::PushL(list);
|
|
3535 |
|
|
3536 |
RMobilePhone::TMobilePhoneNetworkInfoV5 entry;
|
|
3537 |
|
|
3538 |
// fill up an example list
|
|
3539 |
for (TInt index=0; index < DMMTSY_NETWORK_COUNT; index++)
|
|
3540 |
{
|
|
3541 |
switch (index)
|
|
3542 |
{
|
|
3543 |
case 0:
|
|
3544 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE1;
|
|
3545 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS1;
|
|
3546 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND1;
|
|
3547 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC1;
|
|
3548 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID1;
|
|
3549 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG1;
|
|
3550 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME1;
|
|
3551 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME1;
|
|
3552 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH1;
|
|
3553 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY1;
|
|
3554 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY1;
|
|
3555 |
break;
|
|
3556 |
case 1:
|
|
3557 |
entry.iMode=DMMTSY_PHONE_CURRENT_NETWORK_MODE2;
|
|
3558 |
entry.iStatus=DMMTSY_PHONE_CURRENT_NETWORK_STATUS2;
|
|
3559 |
entry.iBandInfo=DMMTSY_PHONE_CURRENT_NETWORK_BAND2;
|
|
3560 |
entry.iCountryCode=DMMTSY_PHONE_CURRENT_NETWORK_MCC2;
|
|
3561 |
entry.iNetworkId=DMMTSY_PHONE_CURRENT_NETWORK_ID2;
|
|
3562 |
entry.iDisplayTag=DMMTSY_PHONE_CURRENT_NETWORK_TAG2;
|
|
3563 |
entry.iShortName=DMMTSY_PHONE_CURRENT_NETWORK_SHORT_NAME2;
|
|
3564 |
entry.iLongName=DMMTSY_PHONE_CURRENT_NETWORK_LONG_NAME2;
|
|
3565 |
entry.iAccess=DMMTSY_PHONE_CURRENT_NETWORK_ACCESS_TECH2;
|
|
3566 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_HSDPA_AVAILABILITY2;
|
|
3567 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_CURRENT_NETWORK_EGPRS_AVAILABILITY2;
|
|
3568 |
break;
|
|
3569 |
case 2:
|
|
3570 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3571 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3572 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3573 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3574 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3575 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3576 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3577 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3578 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH;
|
|
3579 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSDPA_AVAILABILITY;
|
|
3580 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_EGPRS_AVAILABILITY;
|
|
3581 |
break;
|
|
3582 |
case 3:
|
|
3583 |
default:
|
|
3584 |
entry.iMode=DMMTSY_PHONE_HOME_NETWORK_MODE;
|
|
3585 |
entry.iStatus=DMMTSY_PHONE_HOME_NETWORK_STATUS;
|
|
3586 |
entry.iBandInfo=DMMTSY_PHONE_HOME_NETWORK_BAND;
|
|
3587 |
entry.iCountryCode=DMMTSY_PHONE_HOME_NETWORK_MCC;
|
|
3588 |
entry.iNetworkId=DMMTSY_PHONE_HOME_NETWORK_ID;
|
|
3589 |
entry.iDisplayTag=DMMTSY_PHONE_HOME_NETWORK_TAG;
|
|
3590 |
entry.iShortName=DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
3591 |
entry.iLongName=DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
3592 |
entry.iAccess=DMMTSY_PHONE_HOME_NETWORK_ACCESS_TECH3;
|
|
3593 |
entry.iHsdpaAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_HSDPA_AVAILABILITY;
|
|
3594 |
entry.iEgprsAvailableIndicator=DMMTSY_PHONE_HOME_NETWORK_EGPRS_AVAILABILITY;
|
|
3595 |
break;
|
|
3596 |
}
|
|
3597 |
// Add the entry into the list, at the next empty location
|
|
3598 |
list->AddEntryL(entry);
|
|
3599 |
}
|
|
3600 |
|
|
3601 |
// Store the streamed list and the client ID
|
|
3602 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
3603 |
CleanupStack::PushL(read);
|
|
3604 |
|
|
3605 |
read->iListBuf = list->StoreLC();
|
|
3606 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
3607 |
|
|
3608 |
iGetDetectedNetworks->AppendL(read);
|
|
3609 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
3610 |
|
|
3611 |
// return the CBufBase’s size to client
|
|
3612 |
*aBufSize=(read->iListBuf)->Size();
|
|
3613 |
|
|
3614 |
// Complete first phase of list retrieval
|
|
3615 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3616 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
3617 |
return KErrNone;
|
|
3618 |
}
|
|
3619 |
|
|
3620 |
TInt CPhoneDMmTsy::GetDetectedNetworksV5Phase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
3621 |
{
|
|
3622 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV5Phase2 called"));
|
|
3623 |
CListReadAllAttempt* read=NULL;
|
|
3624 |
// Find the get detected network attempt from this client
|
|
3625 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3626 |
{
|
|
3627 |
read = iGetDetectedNetworks->At(i);
|
|
3628 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
3629 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
3630 |
{
|
|
3631 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
3632 |
// Copy the streamed list to the client
|
|
3633 |
aBuf->Copy(bufPtr);
|
|
3634 |
delete read;
|
|
3635 |
iGetDetectedNetworks->Delete(i);
|
|
3636 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3637 |
return KErrNone;
|
|
3638 |
}
|
|
3639 |
}
|
|
3640 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
3641 |
return KErrNotFound;
|
|
3642 |
}
|
|
3643 |
|
|
3644 |
TInt CPhoneDMmTsy::GetDetectedNetworksV5Cancel(const TTsyReqHandle aTsyReqHandle)
|
|
3645 |
{
|
|
3646 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDetectedNetworksV5Cancel called"));
|
|
3647 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3648 |
// Remove the read all attempt from iGetDetectedNetworks
|
|
3649 |
CListReadAllAttempt* read=NULL;
|
|
3650 |
for (TInt i=0; i<iGetDetectedNetworks->Count(); ++i)
|
|
3651 |
{
|
|
3652 |
read = iGetDetectedNetworks->At(i);
|
|
3653 |
if (read->iReqHandle == aTsyReqHandle)
|
|
3654 |
{
|
|
3655 |
delete read;
|
|
3656 |
iGetDetectedNetworks->Delete(i);
|
|
3657 |
break;
|
|
3658 |
}
|
|
3659 |
}
|
|
3660 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3661 |
return KErrNone;
|
|
3662 |
}
|
|
3663 |
|
|
3664 |
//
|
|
3665 |
|
|
3666 |
TInt CPhoneDMmTsy::GetNetworkSelectionSetting(const TTsyReqHandle aTsyReqHandle, TDes8* aSetting)
|
|
3667 |
{
|
|
3668 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkSelectionSetting called"));
|
|
3669 |
RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg* selectionPckg = (RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg*)aSetting;
|
|
3670 |
RMobilePhone::TMobilePhoneNetworkSelectionV1& selection = (*selectionPckg)();
|
|
3671 |
|
|
3672 |
selection.iMethod = DMMTSY_PHONE_NETWORK_SELECTION_METHOD1;
|
|
3673 |
selection.iBandClass = DMMTSY_PHONE_NETWORK_SELECTION_BAND1;
|
|
3674 |
selection.iOperationMode = DMMTSY_PHONE_NETWORK_SELECTION_OPERATION1;
|
|
3675 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3676 |
return KErrNone;
|
|
3677 |
}
|
|
3678 |
|
|
3679 |
TInt CPhoneDMmTsy::SetNetworkSelectionSetting(const TTsyReqHandle aTsyReqHandle, TDes8* aSetting)
|
|
3680 |
{
|
|
3681 |
LOGTEXT(_L8("CPhoneDMmTsy::SetNetworkSelectionSetting called"));
|
|
3682 |
RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg* selectionPckg = (RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg*)aSetting;
|
|
3683 |
RMobilePhone::TMobilePhoneNetworkSelectionV1& selection = (*selectionPckg)();
|
|
3684 |
|
|
3685 |
if ((selection.iMethod != DMMTSY_PHONE_NETWORK_SELECTION_METHOD2) ||
|
|
3686 |
(selection.iBandClass != DMMTSY_PHONE_NETWORK_SELECTION_BAND2) ||
|
|
3687 |
(selection.iOperationMode != DMMTSY_PHONE_NETWORK_SELECTION_OPERATION2))
|
|
3688 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3689 |
else
|
|
3690 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3691 |
return KErrNone;
|
|
3692 |
}
|
|
3693 |
|
|
3694 |
TInt CPhoneDMmTsy::SetNetworkSelectionSettingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3695 |
{
|
|
3696 |
LOGTEXT(_L8("CPhoneDMmTsy::SetNetworkSelectionSettingCancel called"));
|
|
3697 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3698 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3699 |
return KErrNone;
|
|
3700 |
}
|
|
3701 |
|
|
3702 |
TInt CPhoneDMmTsy::NotifyNetworkSelectionSettingChange(const TTsyReqHandle aTsyReqHandle, TDes8* aSetting)
|
|
3703 |
{
|
|
3704 |
if(!iNotifyNetworkSelectionSettingChange++)
|
|
3705 |
{
|
|
3706 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkSelectionSettingChange called"));
|
|
3707 |
|
|
3708 |
RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg* selectionPckg = (RMobilePhone::TMobilePhoneNetworkSelectionV1Pckg*)aSetting;
|
|
3709 |
RMobilePhone::TMobilePhoneNetworkSelectionV1& selection = (*selectionPckg)();
|
|
3710 |
|
|
3711 |
selection.iMethod = DMMTSY_PHONE_NETWORK_SELECTION_METHOD1;
|
|
3712 |
selection.iBandClass = DMMTSY_PHONE_NETWORK_SELECTION_BAND1;
|
|
3713 |
selection.iOperationMode = DMMTSY_PHONE_NETWORK_SELECTION_OPERATION1;
|
|
3714 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3715 |
}
|
|
3716 |
return KErrNone;
|
|
3717 |
}
|
|
3718 |
|
|
3719 |
TInt CPhoneDMmTsy::NotifyNetworkSelectionSettingChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3720 |
{
|
|
3721 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkSelectionSettingChangeCancel called"));
|
|
3722 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3723 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3724 |
return KErrNone;
|
|
3725 |
}
|
|
3726 |
|
|
3727 |
TInt CPhoneDMmTsy::SelectNetwork(const TTsyReqHandle aTsyReqHandle,
|
|
3728 |
TBool* aIsManual,
|
|
3729 |
RMobilePhone::TMobilePhoneNetworkManualSelection* aManualSelection)
|
|
3730 |
{
|
|
3731 |
LOGTEXT(_L8("CPhoneDMmTsy::SelectNetwork called"));
|
|
3732 |
|
|
3733 |
if (*aIsManual==DMMTSY_PHONE_MANUAL_SELECTION)
|
|
3734 |
{
|
|
3735 |
if ((aManualSelection->iCountry != DMMTSY_PHONE_COUNTRY_ID) ||
|
|
3736 |
(aManualSelection->iNetwork != DMMTSY_PHONE_NETWORK_ID))
|
|
3737 |
|
|
3738 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3739 |
else
|
|
3740 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3741 |
}
|
|
3742 |
else
|
|
3743 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3744 |
|
|
3745 |
return KErrNone;
|
|
3746 |
}
|
|
3747 |
|
|
3748 |
TInt CPhoneDMmTsy::SelectNetworkCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3749 |
{
|
|
3750 |
LOGTEXT(_L8("CPhoneDMmTsy::SelectNetworkCancel called"));
|
|
3751 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3752 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3753 |
return KErrNone;
|
|
3754 |
}
|
|
3755 |
|
|
3756 |
TInt CPhoneDMmTsy::GetNetworkTimeInfo(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNITZ* aDateTime)
|
|
3757 |
{
|
|
3758 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkTimeInfo called"));
|
|
3759 |
|
|
3760 |
aDateTime->iNitzFieldsUsed = DMMTSY_PHONE_NWTINFO_NITZ_USED;
|
|
3761 |
aDateTime->Set(DMMTSY_PHONE_NWTINFO_YEAR,DMMTSY_PHONE_NWTINFO_MONTH,DMMTSY_PHONE_NWTINFO_DAY,
|
|
3762 |
DMMTSY_PHONE_NWTINFO_HOUR, DMMTSY_PHONE_NWTINFO_MINUTE, DMMTSY_PHONE_NWTINFO_SECOND,
|
|
3763 |
DMMTSY_PHONE_NWTINFO_MICRO);
|
|
3764 |
aDateTime->iTimeZone = DMMTSY_PHONE_NWTINFO_TIMEZONE;
|
|
3765 |
aDateTime->iLongNetworkId = DMMTSY_PHONE_NWTINFO_LONG_ID;
|
|
3766 |
aDateTime->iShortNetworkId = DMMTSY_PHONE_NWTINFO_SHORT_ID;
|
|
3767 |
aDateTime->iDST = DMMTSY_PHONE_NWTINFO_DST;
|
|
3768 |
|
|
3769 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3770 |
return KErrNone;
|
|
3771 |
}
|
|
3772 |
|
|
3773 |
TInt CPhoneDMmTsy::NotifyNetworkTimeInfoChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNITZ* aDateTime)
|
|
3774 |
{
|
|
3775 |
if(!iNotifyNetworkTimeInfoChange++)
|
|
3776 |
{
|
|
3777 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkTimeInfoChange called"));
|
|
3778 |
|
|
3779 |
aDateTime->iNitzFieldsUsed = DMMTSY_PHONE_NWTINFO_NITZ_USED;
|
|
3780 |
aDateTime->Set(DMMTSY_PHONE_NWTINFO_YEAR,DMMTSY_PHONE_NWTINFO_MONTH,DMMTSY_PHONE_NWTINFO_DAY,
|
|
3781 |
DMMTSY_PHONE_NWTINFO_HOUR, DMMTSY_PHONE_NWTINFO_MINUTE, DMMTSY_PHONE_NWTINFO_SECOND,
|
|
3782 |
DMMTSY_PHONE_NWTINFO_MICRO);
|
|
3783 |
aDateTime->iTimeZone = DMMTSY_PHONE_NWTINFO_TIMEZONE;
|
|
3784 |
aDateTime->iLongNetworkId = DMMTSY_PHONE_NWTINFO_LONG_ID;
|
|
3785 |
aDateTime->iShortNetworkId = DMMTSY_PHONE_NWTINFO_SHORT_ID;
|
|
3786 |
aDateTime->iDST = DMMTSY_PHONE_NWTINFO_DST;
|
|
3787 |
|
|
3788 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3789 |
}
|
|
3790 |
return KErrNone;
|
|
3791 |
}
|
|
3792 |
|
|
3793 |
TInt CPhoneDMmTsy::NotifyNetworkTimeInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3794 |
{
|
|
3795 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkTimeInfoChangeCancel called"));
|
|
3796 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3797 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3798 |
return KErrNone;
|
|
3799 |
}
|
|
3800 |
|
|
3801 |
|
|
3802 |
TInt CPhoneDMmTsy::GetServiceProviderName(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneServiceProviderNameV2* aName)
|
|
3803 |
{
|
|
3804 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceProviderName called"));
|
|
3805 |
|
|
3806 |
aName->iDisplayReq = DMMTSY_PHONE_DISPREQ;
|
|
3807 |
aName->iSPName = DMMTSY_PHONE_SPN_NAME;
|
|
3808 |
aName->iPLMNField = DMMTSY_PHONE_PLMN_FIELD;
|
|
3809 |
|
|
3810 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3811 |
return KErrNone;
|
|
3812 |
}
|
|
3813 |
|
|
3814 |
TInt CPhoneDMmTsy::GetServiceProviderNameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3815 |
{
|
|
3816 |
LOGTEXT(_L8("CPhoneDMmTsy::GetServiceProviderNameCancel called"));
|
|
3817 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3818 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3819 |
return KErrNone;
|
|
3820 |
}
|
|
3821 |
|
|
3822 |
TInt CPhoneDMmTsy::GetDefaultPrivacy(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePrivacy* aSetting)
|
|
3823 |
{
|
|
3824 |
LOGTEXT(_L8("CPhoneDMmTsy::GetDefaultPrivacy called"));
|
|
3825 |
|
|
3826 |
*aSetting = DMMTSY_PHONE_PRIVACY_SETTING1;
|
|
3827 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3828 |
return KErrNone;
|
|
3829 |
}
|
|
3830 |
|
|
3831 |
TInt CPhoneDMmTsy::SetDefaultPrivacy(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePrivacy* aSetting)
|
|
3832 |
{
|
|
3833 |
LOGTEXT(_L8("CPhoneDMmTsy::SetDefaultPrivacy called"));
|
|
3834 |
|
|
3835 |
if (*aSetting != DMMTSY_PHONE_PRIVACY_SETTING1)
|
|
3836 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3837 |
else
|
|
3838 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3839 |
return KErrNone;
|
|
3840 |
}
|
|
3841 |
|
|
3842 |
TInt CPhoneDMmTsy::SetDefaultPrivacyCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3843 |
{
|
|
3844 |
LOGTEXT(_L8("CPhoneDMmTsy::SetDefaultPrivacyCancel called"));
|
|
3845 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3846 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3847 |
return KErrNone;
|
|
3848 |
}
|
|
3849 |
|
|
3850 |
TInt CPhoneDMmTsy::NotifyDefaultPrivacyChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePrivacy* aSetting)
|
|
3851 |
{
|
|
3852 |
if(!iNotifyDefaultPrivacyChange++)
|
|
3853 |
{
|
|
3854 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDefaultPrivacyChange called"));
|
|
3855 |
|
|
3856 |
*aSetting = DMMTSY_PHONE_PRIVACY_SETTING2;
|
|
3857 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3858 |
}
|
|
3859 |
return KErrNone;
|
|
3860 |
}
|
|
3861 |
|
|
3862 |
TInt CPhoneDMmTsy::NotifyDefaultPrivacyChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3863 |
{
|
|
3864 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDefaultPrivacyChangeCancel called"));
|
|
3865 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3866 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3867 |
return KErrNone;
|
|
3868 |
}
|
|
3869 |
|
|
3870 |
TInt CPhoneDMmTsy::GetCallServiceCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
3871 |
{
|
|
3872 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallServiceCaps called"));
|
|
3873 |
*aCaps=DMMTSY_PHONE_CALL_SERVICE_CAPS1;
|
|
3874 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
3875 |
return KErrNone;
|
|
3876 |
}
|
|
3877 |
|
|
3878 |
TInt CPhoneDMmTsy::NotifyCallServiceCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
3879 |
{
|
|
3880 |
if (!iNotifyCallServiceCaps++)
|
|
3881 |
{
|
|
3882 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallServiceCapsChange called"));
|
|
3883 |
*aCaps=DMMTSY_PHONE_CALL_SERVICE_CAPS2;
|
|
3884 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3885 |
}
|
|
3886 |
return KErrNone;
|
|
3887 |
}
|
|
3888 |
|
|
3889 |
TInt CPhoneDMmTsy::NotifyCallServiceCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3890 |
{
|
|
3891 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallServiceCapsChangeCancel called"));
|
|
3892 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3893 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3894 |
return KErrNone;
|
|
3895 |
}
|
|
3896 |
|
|
3897 |
TInt CPhoneDMmTsy::ProgramFeatureCodeString(const TTsyReqHandle aTsyReqHandle,
|
|
3898 |
TDesC* aFCString, RMobilePhone::TNetworkServiceAndAction *aFeatureCode)
|
|
3899 |
{
|
|
3900 |
LOGTEXT(_L8("CPhoneDMmTsy::ProgramFeatureCodeString called"));
|
|
3901 |
if ((aFCString->Compare(DMMTSY_PHONE_FEATURE_CODE) != 0) ||
|
|
3902 |
(aFeatureCode->iService != DMMTSY_PHONE_NETWORK_SERVICE) ||
|
|
3903 |
(aFeatureCode->iAction != DMMTSY_PHONE_NETWORK_SERVICE_ACTION))
|
|
3904 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3905 |
else
|
|
3906 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3907 |
|
|
3908 |
return KErrNone;
|
|
3909 |
}
|
|
3910 |
|
|
3911 |
TInt CPhoneDMmTsy::ProgramFeatureCodeStringCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3912 |
{
|
|
3913 |
LOGTEXT(_L8("CPhoneDMmTsy::ProgramFeatureCodeStringCancel called"));
|
|
3914 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3915 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3916 |
return KErrNone;
|
|
3917 |
}
|
|
3918 |
|
|
3919 |
TInt CPhoneDMmTsy::GetFeatureCodeString(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TNetworkServiceAndAction *aFeatureCode, TDes *aFCString)
|
|
3920 |
{
|
|
3921 |
LOGTEXT(_L8("CPhoneDMmTsy::GetFeatureCodeString called"));
|
|
3922 |
if (aFeatureCode->iService!=DMMTSY_PHONE_NETWORK_SERVICE2 || aFeatureCode->iAction!=DMMTSY_PHONE_NETWORK_SERVICE_ACTION2)
|
|
3923 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3924 |
else
|
|
3925 |
{
|
|
3926 |
*aFCString=DMMTSY_PHONE_FEATURE_CODE2;
|
|
3927 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3928 |
}
|
|
3929 |
return KErrNone;
|
|
3930 |
}
|
|
3931 |
|
|
3932 |
TInt CPhoneDMmTsy::GetFeatureCodeStringCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3933 |
{
|
|
3934 |
LOGTEXT(_L8("CPhoneDMmTsy::GetFeatureCodeStringCancel called"));
|
|
3935 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3936 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3937 |
return KErrNone;
|
|
3938 |
}
|
|
3939 |
|
|
3940 |
TInt CPhoneDMmTsy::SendNetworkServiceRequest(const TTsyReqHandle aTsyReqHandle, TDesC* aString)
|
|
3941 |
{
|
|
3942 |
LOGTEXT(_L8("CPhoneDMmTsy::SendNetworkServiceRequest called"));
|
|
3943 |
if (aString->Compare(DMMTSY_PHONE_NETWORK_SERVICE_REQUEST)!=0)
|
|
3944 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3945 |
else
|
|
3946 |
AddDelayedReq(aTsyReqHandle,this);
|
|
3947 |
return KErrNone;
|
|
3948 |
}
|
|
3949 |
|
|
3950 |
TInt CPhoneDMmTsy::SendNetworkServiceRequestCancel(const TTsyReqHandle aTsyReqHandle)
|
|
3951 |
{
|
|
3952 |
LOGTEXT(_L8("CPhoneDMmTsy::SendNetworkServiceRequestCancel called"));
|
|
3953 |
RemoveDelayedReq(aTsyReqHandle);
|
|
3954 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
3955 |
return KErrNone;
|
|
3956 |
}
|
|
3957 |
|
|
3958 |
TInt CPhoneDMmTsy::GetCallForwardingStatusPhase1(const TTsyReqHandle aTsyReqHandle,
|
|
3959 |
CRetrieveMobilePhoneCFList::TGetCallForwardingRequest* aReqData,
|
|
3960 |
TInt* aBufSize)
|
|
3961 |
{
|
|
3962 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallForwardingStatusPhase1 called"));
|
|
3963 |
TInt ret=KErrNone;
|
|
3964 |
|
|
3965 |
if ( ( (aReqData->iCondition==DMMTSY_PHONE_CF_CONDITION_CFU) &&
|
|
3966 |
(aReqData->iLocation==DMMTSY_PHONE_CF_LOCATION) &&
|
|
3967 |
(aReqData->iServiceGroup==DMMTSY_PHONE_CF_SERVICE_GROUP_ALL) ) ||
|
|
3968 |
( (aReqData->iCondition==DMMTSY_PHONE_CF_CONDITION_CFU) &&
|
|
3969 |
(aReqData->iServiceGroup==DMMTSY_PHONE_CF_SERVICE_GROUP_FAX) &&
|
|
3970 |
(aReqData->iLocation==DMMTSY_PHONE_CF_CACHELOCATION) ) )
|
|
3971 |
{
|
|
3972 |
TInt leaveCode=KErrNone;
|
|
3973 |
TRAP(leaveCode, ret=ProcessGetCallForwardingStatusPhase1L(aTsyReqHandle, aReqData, aBufSize););
|
|
3974 |
if (leaveCode != KErrNone)
|
|
3975 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
3976 |
}
|
|
3977 |
else
|
|
3978 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
3979 |
return ret;
|
|
3980 |
}
|
|
3981 |
|
|
3982 |
TInt CPhoneDMmTsy::ProcessGetCallForwardingStatusPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
3983 |
CRetrieveMobilePhoneCFList::TGetCallForwardingRequest* aReqData,
|
|
3984 |
TInt* aBufSize)
|
|
3985 |
{
|
|
3986 |
// retrieve call forwarding status of each line from phone,
|
|
3987 |
// store each CF status response as a list entry,
|
|
3988 |
// stream the list and then return size of this buffer to client
|
|
3989 |
|
|
3990 |
CMobilePhoneCFList* list=CMobilePhoneCFList::NewL();
|
|
3991 |
CleanupStack::PushL(list);
|
|
3992 |
|
|
3993 |
RMobilePhone::TMobilePhoneCFInfoEntryV1 entry;
|
|
3994 |
RMobilePhone::TMobileService servicegroup = aReqData->iServiceGroup;
|
|
3995 |
|
|
3996 |
// fill up an example list
|
|
3997 |
for (TInt index=0; index < DMMTSY_CF_ENTRY_COUNT; index++)
|
|
3998 |
{
|
|
3999 |
switch (index)
|
|
4000 |
{
|
|
4001 |
case 0:
|
|
4002 |
entry.iCondition=DMMTSY_PHONE_CF_CONDITION_CFU;
|
|
4003 |
entry.iServiceGroup=DMMTSY_PHONE_CF_SERVICE_GROUP_VOICE;
|
|
4004 |
entry.iStatus=DMMTSY_PHONE_CF_NOT_ACTIVE;
|
|
4005 |
entry.iNumber.iTelNumber=DMMTSY_PHONE_TEL_NUMBER;
|
|
4006 |
entry.iTimeout=DMMTSY_PHONE_CF_TIMEOUT;
|
|
4007 |
break;
|
|
4008 |
case 1:
|
|
4009 |
entry.iCondition=DMMTSY_PHONE_CF_CONDITION_CFU;
|
|
4010 |
entry.iServiceGroup=DMMTSY_PHONE_CF_SERVICE_GROUP_DATA;
|
|
4011 |
entry.iStatus=DMMTSY_PHONE_CF_ACTIVE;
|
|
4012 |
entry.iNumber.iTelNumber=DMMTSY_PHONE_TEL_NUMBER;
|
|
4013 |
entry.iTimeout=DMMTSY_PHONE_CF_TIMEOUT;
|
|
4014 |
break;
|
|
4015 |
case 2:
|
|
4016 |
entry.iCondition=DMMTSY_PHONE_CF_CONDITION_CFU;
|
|
4017 |
entry.iServiceGroup=DMMTSY_PHONE_CF_SERVICE_GROUP_FAX;
|
|
4018 |
entry.iStatus=DMMTSY_PHONE_CF_ACTIVE;
|
|
4019 |
entry.iNumber.iTelNumber=DMMTSY_PHONE_TEL_NUMBER;
|
|
4020 |
entry.iTimeout=DMMTSY_PHONE_CF_TIMEOUT;
|
|
4021 |
break;
|
|
4022 |
case 3:
|
|
4023 |
default:
|
|
4024 |
entry.iCondition=DMMTSY_PHONE_CF_CONDITION_CFU;
|
|
4025 |
entry.iServiceGroup=DMMTSY_PHONE_CF_SERVICE_GROUP_AUXVOICE;
|
|
4026 |
entry.iStatus=DMMTSY_PHONE_CF_UNKNOWN;
|
|
4027 |
entry.iTimeout=-1;
|
|
4028 |
break;
|
|
4029 |
}
|
|
4030 |
// Add the entry into the list, at the next empty location
|
|
4031 |
if( (servicegroup == DMMTSY_PHONE_CF_SERVICE_GROUP_ALL) || (servicegroup == entry.iServiceGroup) )
|
|
4032 |
list->AddEntryL(entry);
|
|
4033 |
}
|
|
4034 |
|
|
4035 |
// Store the streamed list and the client ID
|
|
4036 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(&(aReqData->iClient),aTsyReqHandle);
|
|
4037 |
CleanupStack::PushL(read);
|
|
4038 |
|
|
4039 |
read->iListBuf = list->StoreLC();
|
|
4040 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
4041 |
|
|
4042 |
iGetCFStatus->AppendL(read);
|
|
4043 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
4044 |
|
|
4045 |
// return the CBufBase’s size to client
|
|
4046 |
*aBufSize=(read->iListBuf)->Size();
|
|
4047 |
|
|
4048 |
// Complete first phase of list retrieval
|
|
4049 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4050 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
4051 |
return KErrNone;
|
|
4052 |
}
|
|
4053 |
|
|
4054 |
|
|
4055 |
TInt CPhoneDMmTsy::GetCallForwardingStatusPhase2(const TTsyReqHandle aTsyReqHandle,
|
|
4056 |
RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
4057 |
{
|
|
4058 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallForwardingStatusPhase2 called"));
|
|
4059 |
CListReadAllAttempt* read=NULL;
|
|
4060 |
// Find the get detected network attempt from this client
|
|
4061 |
for (TInt i=0; i<iGetCFStatus->Count(); ++i)
|
|
4062 |
{
|
|
4063 |
read = iGetCFStatus->At(i);
|
|
4064 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
4065 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
4066 |
{
|
|
4067 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
4068 |
// Copy the streamed list to the client
|
|
4069 |
aBuf->Copy(bufPtr);
|
|
4070 |
delete read;
|
|
4071 |
iGetCFStatus->Delete(i);
|
|
4072 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4073 |
return KErrNone;
|
|
4074 |
}
|
|
4075 |
}
|
|
4076 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
4077 |
return KErrNotFound;
|
|
4078 |
}
|
|
4079 |
|
|
4080 |
TInt CPhoneDMmTsy::GetCallForwardingStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4081 |
{
|
|
4082 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallForwardingStatusCancel called"));
|
|
4083 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4084 |
// Remove the read all attempt from iGetCFStatus
|
|
4085 |
CListReadAllAttempt* read=NULL;
|
|
4086 |
for (TInt i=0; i<iGetCFStatus->Count(); ++i)
|
|
4087 |
{
|
|
4088 |
read = iGetCFStatus->At(i);
|
|
4089 |
if (read->iReqHandle == aTsyReqHandle)
|
|
4090 |
{
|
|
4091 |
delete read;
|
|
4092 |
iGetCFStatus->Delete(i);
|
|
4093 |
break;
|
|
4094 |
}
|
|
4095 |
}
|
|
4096 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4097 |
return KErrNone;
|
|
4098 |
}
|
|
4099 |
|
|
4100 |
TInt CPhoneDMmTsy::NotifyCallForwardingStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCFCondition* aCondition)
|
|
4101 |
{
|
|
4102 |
if(!iNotifyCallForwardingStatusChange++)
|
|
4103 |
{
|
|
4104 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallForwardingStatusChange called"));
|
|
4105 |
*aCondition=DMMTSY_PHONE_CF_CONDITION_ALL;
|
|
4106 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4107 |
}
|
|
4108 |
return KErrNone;
|
|
4109 |
}
|
|
4110 |
|
|
4111 |
TInt CPhoneDMmTsy::NotifyCallForwardingStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4112 |
{
|
|
4113 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallForwardingStatusChangeCancel called"));
|
|
4114 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4115 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4116 |
return KErrNone;
|
|
4117 |
}
|
|
4118 |
|
|
4119 |
TInt CPhoneDMmTsy::SetCallForwardingStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCFCondition* aCondition, RMobilePhone::TMobilePhoneCFChangeV1* aInfo)
|
|
4120 |
{
|
|
4121 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallForwardingStatus called"));
|
|
4122 |
if ((*aCondition!=DMMTSY_PHONE_CF_CONDITION_CFNRy) ||
|
|
4123 |
(aInfo->iServiceGroup!=DMMTSY_PHONE_CF_SERVICE_GROUP_VOICE) ||
|
|
4124 |
(aInfo->iAction!=DMMTSY_PHONE_CF_SETTING) ||
|
|
4125 |
(aInfo->iNumber.iTelNumber!=DMMTSY_PHONE_TEL_NUMBER) ||
|
|
4126 |
(aInfo->iTimeout!=DMMTSY_PHONE_CF_TIMEOUT))
|
|
4127 |
|
|
4128 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4129 |
else
|
|
4130 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4131 |
|
|
4132 |
return KErrNone;
|
|
4133 |
}
|
|
4134 |
|
|
4135 |
TInt CPhoneDMmTsy::SetCallForwardingStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4136 |
{
|
|
4137 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallForwardingStatusCancel called"));
|
|
4138 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4139 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4140 |
return KErrNone;
|
|
4141 |
}
|
|
4142 |
|
|
4143 |
TInt CPhoneDMmTsy::NotifyCallForwardingActive(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobileService* aServiceGroup, RMobilePhone::TMobilePhoneCFActive* aActive)
|
|
4144 |
{
|
|
4145 |
if(!iNotifyCallForwardingActive++)
|
|
4146 |
{
|
|
4147 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallForwardingActive called"));
|
|
4148 |
*aActive=DMMTSY_PHONE_CF_ACTIVE_TYPE;
|
|
4149 |
*aServiceGroup=DMMTSY_PHONE_CF_SERVICE_GROUP_FAX;
|
|
4150 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4151 |
}
|
|
4152 |
return KErrNone;
|
|
4153 |
}
|
|
4154 |
|
|
4155 |
TInt CPhoneDMmTsy::NotifyCallForwardingActiveCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4156 |
{
|
|
4157 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallForwardingActiveCancel called"));
|
|
4158 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4159 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4160 |
return KErrNone;
|
|
4161 |
}
|
|
4162 |
|
|
4163 |
TInt CPhoneDMmTsy::GetIdentityServiceStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TIdServiceAndLocation *aInfo,
|
|
4164 |
RMobilePhone::TMobilePhoneIdServiceStatus* aStatus)
|
|
4165 |
{
|
|
4166 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIdentityServiceStatus called"));
|
|
4167 |
if (aInfo->iLocation != DMMTSY_PHONE_ID_LOCATION || aInfo->iService != DMMTSY_PHONE_ID_SERVICE)
|
|
4168 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4169 |
else
|
|
4170 |
{
|
|
4171 |
*aStatus = DMMTSY_PHONE_ID_STATUS;
|
|
4172 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4173 |
}
|
|
4174 |
return KErrNone;
|
|
4175 |
}
|
|
4176 |
|
|
4177 |
TInt CPhoneDMmTsy::GetIdentityServiceStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4178 |
{
|
|
4179 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIdentityServiceStatusCancel called"));
|
|
4180 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4181 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4182 |
return KErrNone;
|
|
4183 |
}
|
|
4184 |
|
|
4185 |
TInt CPhoneDMmTsy::GetCallBarringPhase1(const TTsyReqHandle aTsyReqHandle,
|
|
4186 |
CRetrieveMobilePhoneCBList::TGetCallBarringRequest* aReqData,
|
|
4187 |
TInt* aBufSize)
|
|
4188 |
{
|
|
4189 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallBarringPhase1 called"));
|
|
4190 |
TInt ret=KErrNone;
|
|
4191 |
|
|
4192 |
if ((aReqData->iCondition!=DMMTSY_PHONE_CB_CONDITION) ||
|
|
4193 |
(aReqData->iLocation!=DMMTSY_PHONE_CB_LOCATION))
|
|
4194 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4195 |
else
|
|
4196 |
{
|
|
4197 |
TInt leaveCode=KErrNone;
|
|
4198 |
TRAP(leaveCode, ret=ProcessGetCallBarringPhase1L(aTsyReqHandle, aReqData, aBufSize));
|
|
4199 |
if (leaveCode != KErrNone)
|
|
4200 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
4201 |
}
|
|
4202 |
return ret;
|
|
4203 |
}
|
|
4204 |
|
|
4205 |
TInt CPhoneDMmTsy::ProcessGetCallBarringPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
4206 |
CRetrieveMobilePhoneCBList::TGetCallBarringRequest* aReqData,
|
|
4207 |
TInt* aBufSize)
|
|
4208 |
{
|
|
4209 |
// retrieve call forwarding status of each line from phone,
|
|
4210 |
// store each CB status response as a list entry,
|
|
4211 |
// stream the list and then return size of this buffer to client
|
|
4212 |
|
|
4213 |
CMobilePhoneCBList* list=CMobilePhoneCBList::NewL();
|
|
4214 |
CleanupStack::PushL(list);
|
|
4215 |
|
|
4216 |
RMobilePhone::TMobilePhoneCBInfoEntryV1 entry;
|
|
4217 |
|
|
4218 |
// fill up an example list
|
|
4219 |
for (TInt index=0; index < DMMTSY_CALL_BARRING_COUNT; index++)
|
|
4220 |
{
|
|
4221 |
switch (index)
|
|
4222 |
{
|
|
4223 |
case 0:
|
|
4224 |
entry.iCondition = DMMTSY_PHONE_CB_CONDITION0;
|
|
4225 |
entry.iServiceGroup = DMMTSY_PHONE_CB_SG0;
|
|
4226 |
entry.iStatus = DMMTSY_PHONE_CB_STATUS0;
|
|
4227 |
break;
|
|
4228 |
case 1:
|
|
4229 |
entry.iCondition = DMMTSY_PHONE_CB_CONDITION1;
|
|
4230 |
entry.iServiceGroup = DMMTSY_PHONE_CB_SG1;
|
|
4231 |
entry.iStatus = DMMTSY_PHONE_CB_STATUS1;
|
|
4232 |
break;
|
|
4233 |
case 2:
|
|
4234 |
entry.iCondition = DMMTSY_PHONE_CB_CONDITION2;
|
|
4235 |
entry.iServiceGroup = DMMTSY_PHONE_CB_SG2;
|
|
4236 |
entry.iStatus = DMMTSY_PHONE_CB_STATUS2;
|
|
4237 |
break;
|
|
4238 |
case 3:
|
|
4239 |
default:
|
|
4240 |
entry.iCondition = DMMTSY_PHONE_CB_CONDITION3;
|
|
4241 |
entry.iServiceGroup = DMMTSY_PHONE_CB_SG3;
|
|
4242 |
entry.iStatus = DMMTSY_PHONE_CB_STATUS3;
|
|
4243 |
break;
|
|
4244 |
}
|
|
4245 |
// Add the entry into the list, at the next empty location
|
|
4246 |
list->AddEntryL(entry);
|
|
4247 |
}
|
|
4248 |
|
|
4249 |
// Store the streamed list and the client ID
|
|
4250 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(&(aReqData->iClient),aTsyReqHandle);
|
|
4251 |
CleanupStack::PushL(read);
|
|
4252 |
|
|
4253 |
read->iListBuf = list->StoreLC();
|
|
4254 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
4255 |
|
|
4256 |
iGetCB->AppendL(read);
|
|
4257 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
4258 |
|
|
4259 |
// return the CBufBase’s size to client
|
|
4260 |
*aBufSize=(read->iListBuf)->Size();
|
|
4261 |
|
|
4262 |
// Complete first phase of list retrieval
|
|
4263 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4264 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
4265 |
return KErrNone;
|
|
4266 |
}
|
|
4267 |
|
|
4268 |
|
|
4269 |
TInt CPhoneDMmTsy::GetCallBarringPhase2(const TTsyReqHandle aTsyReqHandle,
|
|
4270 |
RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
4271 |
{
|
|
4272 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallBarringPhase2 called"));
|
|
4273 |
CListReadAllAttempt* read=NULL;
|
|
4274 |
// Find the get call barring attempt from this client
|
|
4275 |
for (TInt i=0; i<iGetCB->Count(); ++i)
|
|
4276 |
{
|
|
4277 |
read = iGetCB->At(i);
|
|
4278 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
4279 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
4280 |
{
|
|
4281 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
4282 |
// Copy the streamed list to the client
|
|
4283 |
aBuf->Copy(bufPtr);
|
|
4284 |
delete read;
|
|
4285 |
iGetCB->Delete(i);
|
|
4286 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4287 |
return KErrNone;
|
|
4288 |
}
|
|
4289 |
}
|
|
4290 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
4291 |
return KErrNotFound;
|
|
4292 |
}
|
|
4293 |
|
|
4294 |
TInt CPhoneDMmTsy::GetCallBarringCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4295 |
{
|
|
4296 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallBarringCancel called"));
|
|
4297 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4298 |
// Remove the read all attempt from iGetCB
|
|
4299 |
CListReadAllAttempt* read=NULL;
|
|
4300 |
for (TInt i=0; i<iGetCB->Count(); ++i)
|
|
4301 |
{
|
|
4302 |
read = iGetCB->At(i);
|
|
4303 |
if (read->iReqHandle == aTsyReqHandle)
|
|
4304 |
{
|
|
4305 |
delete read;
|
|
4306 |
iGetCB->Delete(i);
|
|
4307 |
break;
|
|
4308 |
}
|
|
4309 |
}
|
|
4310 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4311 |
return KErrNone;
|
|
4312 |
}
|
|
4313 |
|
|
4314 |
TInt CPhoneDMmTsy::SetCallBarringStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCBCondition *aCondition, RMobilePhone::TMobilePhoneCBChangeV1* aInfo)
|
|
4315 |
{
|
|
4316 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallBarringStatus called"));
|
|
4317 |
if (*aCondition != DMMTSY_PHONE_CB_CONDITION || aInfo->iAction != DMMTSY_PHONE_CB_ACTION ||
|
|
4318 |
(aInfo->iPassword.Compare(DMMTSY_PHONE_CB_PASSWORD) != 0))
|
|
4319 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4320 |
else
|
|
4321 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4322 |
return KErrNone;
|
|
4323 |
}
|
|
4324 |
|
|
4325 |
TInt CPhoneDMmTsy::SetCallBarringStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4326 |
{
|
|
4327 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallBarringStatusCancel called"));
|
|
4328 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4329 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4330 |
return KErrNone;
|
|
4331 |
}
|
|
4332 |
|
|
4333 |
TInt CPhoneDMmTsy::NotifyCallBarringStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCBCondition* aCondition)
|
|
4334 |
{
|
|
4335 |
if (!iNotifyCallBarringStatusChange++)
|
|
4336 |
{
|
|
4337 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallBarringStatusChange called"));
|
|
4338 |
*aCondition = DMMTSY_PHONE_CB_CONDITION;
|
|
4339 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4340 |
}
|
|
4341 |
return KErrNone;
|
|
4342 |
}
|
|
4343 |
|
|
4344 |
TInt CPhoneDMmTsy::NotifyCallBarringStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4345 |
{
|
|
4346 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallBarringStatusChangeCancel called"));
|
|
4347 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4348 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4349 |
return KErrNone;
|
|
4350 |
}
|
|
4351 |
|
|
4352 |
TInt CPhoneDMmTsy::SetCallBarringPassword(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePasswordChangeV1* aPassword)
|
|
4353 |
{
|
|
4354 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallBarringPassword called"));
|
|
4355 |
if ((aPassword->iOldPassword.Compare(DMMTSY_PHONE_CB_PASSWORD) != 0) ||
|
|
4356 |
(aPassword->iNewPassword.Compare(DMMTSY_PHONE_CB_NEW_PASSWORD) != 0))
|
|
4357 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4358 |
else
|
|
4359 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4360 |
return KErrNone;
|
|
4361 |
}
|
|
4362 |
|
|
4363 |
TInt CPhoneDMmTsy::SetCallBarringPasswordCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4364 |
{
|
|
4365 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallBarringPasswordCancel called"));
|
|
4366 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4367 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4368 |
return KErrNone;
|
|
4369 |
}
|
|
4370 |
|
|
4371 |
TInt CPhoneDMmTsy::SetSSPassword(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePasswordChangeV2* aPassword, TInt* aService)
|
|
4372 |
{
|
|
4373 |
LOGTEXT(_L8("CPhoneDMmTsy::SetSSPassword called"));
|
|
4374 |
if ((aPassword->iOldPassword.Compare(DMMTSY_PHONE_CB_PASSWORD) != 0) ||
|
|
4375 |
(aPassword->iNewPassword.Compare(DMMTSY_PHONE_CB_NEW_PASSWORD) != 0) ||
|
|
4376 |
(aPassword->iVerifiedPassword.Compare(DMMTSY_PHONE_CB_VERIFIED_PASSWORD) != 0) &&
|
|
4377 |
aService != DMMTSY_PHONE_CB_ALL_SERVICES )
|
|
4378 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4379 |
else
|
|
4380 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4381 |
return KErrNone;
|
|
4382 |
}
|
|
4383 |
|
|
4384 |
TInt CPhoneDMmTsy::SetSSPasswordCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4385 |
{
|
|
4386 |
LOGTEXT(_L8("CPhoneDMmTsy::SetSSPasswordCancel called"));
|
|
4387 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4388 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4389 |
return KErrNone;
|
|
4390 |
}
|
|
4391 |
|
|
4392 |
|
|
4393 |
|
|
4394 |
TInt CPhoneDMmTsy::GetCallWaitingPhase1(const TTsyReqHandle aTsyReqHandle,
|
|
4395 |
CRetrieveMobilePhoneCWList::TGetCallWaitingRequest* aReqData,
|
|
4396 |
TInt* aBufSize)
|
|
4397 |
{
|
|
4398 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallWaitingPhase1 called"));
|
|
4399 |
TInt ret=KErrNone;
|
|
4400 |
|
|
4401 |
if (aReqData->iLocation!=DMMTSY_PHONE_CW_LOCATION)
|
|
4402 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4403 |
else
|
|
4404 |
{
|
|
4405 |
TInt leaveCode=KErrNone;
|
|
4406 |
TRAP(leaveCode, ret=ProcessGetCallWaitingPhase1L(aTsyReqHandle, aReqData, aBufSize));
|
|
4407 |
if (leaveCode != KErrNone)
|
|
4408 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
4409 |
}
|
|
4410 |
return ret;
|
|
4411 |
}
|
|
4412 |
|
|
4413 |
TInt CPhoneDMmTsy::ProcessGetCallWaitingPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
4414 |
CRetrieveMobilePhoneCWList::TGetCallWaitingRequest* aReqData,
|
|
4415 |
TInt* aBufSize)
|
|
4416 |
{
|
|
4417 |
// retrieve call forwarding status of each line from phone,
|
|
4418 |
// store each CW status response as a list entry,
|
|
4419 |
// stream the list and then return size of this buffer to client
|
|
4420 |
|
|
4421 |
CMobilePhoneCWList* list=CMobilePhoneCWList::NewL();
|
|
4422 |
CleanupStack::PushL(list);
|
|
4423 |
|
|
4424 |
RMobilePhone::TMobilePhoneCWInfoEntryV1 entry;
|
|
4425 |
|
|
4426 |
// fill up an example list
|
|
4427 |
for (TInt index=0; index < DMMTSY_CW_ENTRY_COUNT; index++)
|
|
4428 |
{
|
|
4429 |
switch (index)
|
|
4430 |
{
|
|
4431 |
case 0:
|
|
4432 |
entry.iServiceGroup = DMMTSY_PHONE_CW_SG0;
|
|
4433 |
entry.iStatus = DMMTSY_PHONE_CW_STATUS0;
|
|
4434 |
break;
|
|
4435 |
case 1:
|
|
4436 |
entry.iServiceGroup = DMMTSY_PHONE_CW_SG1;
|
|
4437 |
entry.iStatus = DMMTSY_PHONE_CW_STATUS1;
|
|
4438 |
break;
|
|
4439 |
case 2:
|
|
4440 |
entry.iServiceGroup = DMMTSY_PHONE_CW_SG2;
|
|
4441 |
entry.iStatus = DMMTSY_PHONE_CW_STATUS2;
|
|
4442 |
break;
|
|
4443 |
case 3:
|
|
4444 |
default:
|
|
4445 |
entry.iServiceGroup = DMMTSY_PHONE_CW_SG3;
|
|
4446 |
entry.iStatus = DMMTSY_PHONE_CW_STATUS3;
|
|
4447 |
break;
|
|
4448 |
}
|
|
4449 |
// Add the entry into the list, at the next empty location
|
|
4450 |
list->AddEntryL(entry);
|
|
4451 |
}
|
|
4452 |
|
|
4453 |
// Store the streamed list and the client ID
|
|
4454 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(&(aReqData->iClient),aTsyReqHandle);
|
|
4455 |
CleanupStack::PushL(read);
|
|
4456 |
|
|
4457 |
read->iListBuf = list->StoreLC();
|
|
4458 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
4459 |
|
|
4460 |
iGetCWStatus->AppendL(read);
|
|
4461 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
4462 |
|
|
4463 |
// return the CBufBase’s size to client
|
|
4464 |
*aBufSize=(read->iListBuf)->Size();
|
|
4465 |
|
|
4466 |
// Complete first phase of list retrieval
|
|
4467 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4468 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
4469 |
return KErrNone;
|
|
4470 |
}
|
|
4471 |
|
|
4472 |
|
|
4473 |
TInt CPhoneDMmTsy::GetCallWaitingPhase2(const TTsyReqHandle aTsyReqHandle,
|
|
4474 |
RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
4475 |
{
|
|
4476 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallWaitingPhase2 called"));
|
|
4477 |
CListReadAllAttempt* read=NULL;
|
|
4478 |
// Find the get call waiting attempt from this client
|
|
4479 |
for (TInt i=0; i<iGetCWStatus->Count(); ++i)
|
|
4480 |
{
|
|
4481 |
read = iGetCWStatus->At(i);
|
|
4482 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
4483 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
4484 |
{
|
|
4485 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
4486 |
// Copy the streamed list to the client
|
|
4487 |
aBuf->Copy(bufPtr);
|
|
4488 |
delete read;
|
|
4489 |
iGetCWStatus->Delete(i);
|
|
4490 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4491 |
return KErrNone;
|
|
4492 |
}
|
|
4493 |
}
|
|
4494 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
4495 |
return KErrNotFound;
|
|
4496 |
}
|
|
4497 |
|
|
4498 |
TInt CPhoneDMmTsy::GetCallWaitingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4499 |
{
|
|
4500 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallWaitingCancel called"));
|
|
4501 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4502 |
// Remove the read all attempt from iGetCWStatus
|
|
4503 |
CListReadAllAttempt* read=NULL;
|
|
4504 |
for (TInt i=0; i<iGetCWStatus->Count(); ++i)
|
|
4505 |
{
|
|
4506 |
read = iGetCWStatus->At(i);
|
|
4507 |
if (read->iReqHandle == aTsyReqHandle)
|
|
4508 |
{
|
|
4509 |
delete read;
|
|
4510 |
iGetCWStatus->Delete(i);
|
|
4511 |
break;
|
|
4512 |
}
|
|
4513 |
}
|
|
4514 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4515 |
return KErrNone;
|
|
4516 |
}
|
|
4517 |
|
|
4518 |
|
|
4519 |
TInt CPhoneDMmTsy::SetCallWaitingStatus(const TTsyReqHandle aTsyReqHandle,
|
|
4520 |
RMobilePhone::TMobileService* aServiceGroup,
|
|
4521 |
RMobilePhone::TMobilePhoneServiceAction *aAction)
|
|
4522 |
{
|
|
4523 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallWaitingStatus called"));
|
|
4524 |
if ((*aAction != DMMTSY_PHONE_CW_SET_STATUS_ACTION) ||
|
|
4525 |
(*aServiceGroup != DMMTSY_PHONE_CW_SG0))
|
|
4526 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4527 |
else
|
|
4528 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4529 |
return KErrNone;
|
|
4530 |
}
|
|
4531 |
|
|
4532 |
TInt CPhoneDMmTsy::SetCallWaitingStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4533 |
{
|
|
4534 |
LOGTEXT(_L8("CPhoneDMmTsy::SetCallWaitingStatusCancel called"));
|
|
4535 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4536 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4537 |
return KErrNone;
|
|
4538 |
}
|
|
4539 |
|
|
4540 |
TInt CPhoneDMmTsy::NotifyCallWaitingStatusChange(const TTsyReqHandle aTsyReqHandle, TDes8* aCWStatus)
|
|
4541 |
{
|
|
4542 |
if (!iNotifyCallWaitingStatusChange++)
|
|
4543 |
{
|
|
4544 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallWaitingStatusChange called"));
|
|
4545 |
RMobilePhone::TMobilePhoneCWInfoEntryV1Pckg *cwInfoPckg = STATIC_CAST(RMobilePhone::TMobilePhoneCWInfoEntryV1Pckg*,aCWStatus);
|
|
4546 |
RMobilePhone::TMobilePhoneCWInfoEntryV1 &cwInfo = (*cwInfoPckg)();
|
|
4547 |
cwInfo.iServiceGroup = DMMTSY_PHONE_CW_SG0;
|
|
4548 |
cwInfo.iStatus = DMMTSY_PHONE_CW_STATUS0;
|
|
4549 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4550 |
}
|
|
4551 |
return KErrNone;
|
|
4552 |
}
|
|
4553 |
|
|
4554 |
TInt CPhoneDMmTsy::NotifyCallWaitingStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4555 |
{
|
|
4556 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCallWaitingStatusChangeCancel called"));
|
|
4557 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4558 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4559 |
return KErrNone;
|
|
4560 |
}
|
|
4561 |
|
|
4562 |
TInt CPhoneDMmTsy::GetCCBSStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCCBSStatus* aCcbsStatus, RMobilePhone::TMobileInfoLocation* aLocation)
|
|
4563 |
{
|
|
4564 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCCBSStatus called"));
|
|
4565 |
if (*aLocation != DMMTSY_PHONE_CCC_LOCATION)
|
|
4566 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4567 |
else
|
|
4568 |
{
|
|
4569 |
*aCcbsStatus = DMMTSY_PHONE_CCC_STATUS;
|
|
4570 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4571 |
}
|
|
4572 |
return KErrNone;
|
|
4573 |
}
|
|
4574 |
|
|
4575 |
TInt CPhoneDMmTsy::GetCCBSStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4576 |
{
|
|
4577 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCCBSStatusCancel called"));
|
|
4578 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4579 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4580 |
return KErrNone;
|
|
4581 |
}
|
|
4582 |
|
|
4583 |
TInt CPhoneDMmTsy::NotifyCCBSStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCCBSStatus* aCcbsStatus)
|
|
4584 |
{
|
|
4585 |
if (!iNotifyCCBSStatusChange++)
|
|
4586 |
{
|
|
4587 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCCBSStatusChange called"));
|
|
4588 |
*aCcbsStatus = DMMTSY_PHONE_CCC_STATUS;
|
|
4589 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4590 |
}
|
|
4591 |
return KErrNone;
|
|
4592 |
}
|
|
4593 |
|
|
4594 |
TInt CPhoneDMmTsy::NotifyCCBSStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4595 |
{
|
|
4596 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCCBSStatusChangeCancel called"));
|
|
4597 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4598 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4599 |
return KErrNone;
|
|
4600 |
}
|
|
4601 |
|
|
4602 |
TInt CPhoneDMmTsy::NotifyCCBSRecall(const TTsyReqHandle aTsyReqHandle, TDes8* aCCBSEntry)
|
|
4603 |
{
|
|
4604 |
// _asm{int 3};
|
|
4605 |
if (!iNotifyCCBSRecall++)
|
|
4606 |
{
|
|
4607 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCCBSRecall called"));
|
|
4608 |
|
|
4609 |
RMobilePhone::TMobilePhoneCCBSEntryV1Pckg* ccbsPckg = STATIC_CAST(RMobilePhone::TMobilePhoneCCBSEntryV1Pckg*,aCCBSEntry);
|
|
4610 |
RMobilePhone::TMobilePhoneCCBSEntryV1& ccbs = (*ccbsPckg)();
|
|
4611 |
|
|
4612 |
ccbs.iCcbsIndex=DMMTSY_PHONE_CCC_INDEX1;
|
|
4613 |
ccbs.iServiceGroup=DMMTSY_PHONE_CCC_SERVICE_GROUP0;
|
|
4614 |
ccbs.iDestination.iNumberPlan=DMMTSY_PHONE_CCC_DESTINATION_NP0;
|
|
4615 |
ccbs.iDestination.iTelNumber= DMMTSY_PHONE_CCC_DESTINATION_NUM0;
|
|
4616 |
ccbs.iDestination.iTypeOfNumber = DMMTSY_PHONE_CCC_DESTINATION_TON0;
|
|
4617 |
|
|
4618 |
if(ccbs.ExtensionId()==KETelExtMultimodeV2)
|
|
4619 |
{
|
|
4620 |
RMobilePhone::TMobilePhoneCCBSEntryV2Pckg* ccbsPckgV2 = STATIC_CAST(RMobilePhone::TMobilePhoneCCBSEntryV2Pckg*,aCCBSEntry);
|
|
4621 |
RMobilePhone::TMobilePhoneCCBSEntryV2& ccbs2 = (*ccbsPckgV2)();
|
|
4622 |
|
|
4623 |
// Set that the network has informed us that the CCBS request can proceed
|
|
4624 |
ccbs2.iEvent = DMMTSY_PHONE_CCC_DESTINATION_CCBS_RECEIVED;
|
|
4625 |
//reset for multiple complete V1
|
|
4626 |
iNotifyCCBSRecall = 0;
|
|
4627 |
}
|
|
4628 |
|
|
4629 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4630 |
}
|
|
4631 |
else
|
|
4632 |
{
|
|
4633 |
// reset for the V2 test
|
|
4634 |
iNotifyCCBSRecall=0;
|
|
4635 |
}
|
|
4636 |
return KErrNone;
|
|
4637 |
}
|
|
4638 |
|
|
4639 |
TInt CPhoneDMmTsy::NotifyCCBSRecallCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4640 |
{
|
|
4641 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCCBSRecallCancel called"));
|
|
4642 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4643 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4644 |
return KErrNone;
|
|
4645 |
}
|
|
4646 |
|
|
4647 |
TInt CPhoneDMmTsy::AcceptCCBSRecall(const TTsyReqHandle aTsyReqHandle, TInt* aIndex, TDes* aCallName)
|
|
4648 |
{
|
|
4649 |
LOGTEXT(_L8("CPhoneDMmTsy::AcceptCCBSRecall called"));
|
|
4650 |
if(*aIndex!=DMMTSY_PHONE_CCC_INDEX1)
|
|
4651 |
return KErrCorrupt;
|
|
4652 |
*aCallName = DMMTSY_PHONE_CCC_CALLNAME0;
|
|
4653 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4654 |
return KErrNone;
|
|
4655 |
}
|
|
4656 |
|
|
4657 |
TInt CPhoneDMmTsy::AcceptCCBSRecallCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4658 |
{
|
|
4659 |
LOGTEXT(_L8("CPhoneDMmTsy::AcceptCCBSRecallCancel called"));
|
|
4660 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4661 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4662 |
return KErrNone;
|
|
4663 |
}
|
|
4664 |
|
|
4665 |
TInt CPhoneDMmTsy::RefuseCCBSRecall(const TTsyReqHandle aTsyReqHandle, TInt* aIndex)
|
|
4666 |
{
|
|
4667 |
LOGTEXT(_L8("CPhoneDMmTsy::RefuseCCBSRecall called"));
|
|
4668 |
if(*aIndex!=DMMTSY_PHONE_CCC_INDEX1)
|
|
4669 |
return KErrCorrupt;
|
|
4670 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4671 |
return KErrNone;
|
|
4672 |
}
|
|
4673 |
|
|
4674 |
|
|
4675 |
TInt CPhoneDMmTsy::DeactivateCCBS(const TTsyReqHandle aTsyReqHandle, TInt* aIndex)
|
|
4676 |
{
|
|
4677 |
if (*aIndex== -1) //-1 means deactivate all
|
|
4678 |
return KErrEtelCallNotActive;
|
|
4679 |
if(*aIndex!=DMMTSY_PHONE_CCC_INDEX1)
|
|
4680 |
return KErrCorrupt;
|
|
4681 |
|
|
4682 |
LOGTEXT(_L8("CPhoneDMmTsy::DeactivateAllCCBS called"));
|
|
4683 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4684 |
return KErrNone;
|
|
4685 |
}
|
|
4686 |
|
|
4687 |
TInt CPhoneDMmTsy::DeactivateCCBSCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4688 |
{
|
|
4689 |
LOGTEXT(_L8("CPhoneDMmTsy::DeactivateAllCCBSCancel called"));
|
|
4690 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4691 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4692 |
return KErrNone;
|
|
4693 |
}
|
|
4694 |
|
|
4695 |
TInt CPhoneDMmTsy::GetCallCompletionPhase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aReqData, TInt* aBufSize)
|
|
4696 |
{
|
|
4697 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallCompletionPhase1 called"));
|
|
4698 |
TInt ret = KErrNone;
|
|
4699 |
|
|
4700 |
TRAPD(leaveCode, ret=ProcessGetCallCompletionPhase1L(aTsyReqHandle, aReqData, aBufSize));
|
|
4701 |
if (leaveCode != KErrNone)
|
|
4702 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
4703 |
return ret;
|
|
4704 |
}
|
|
4705 |
|
|
4706 |
TInt CPhoneDMmTsy::ProcessGetCallCompletionPhase1L(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClientId, TInt* aBufSize)
|
|
4707 |
{
|
|
4708 |
CMobilePhoneCcbsList* list=CMobilePhoneCcbsList::NewL();
|
|
4709 |
CleanupStack::PushL(list);
|
|
4710 |
|
|
4711 |
RMobilePhone::TMobilePhoneCCBSEntryV1 entry;
|
|
4712 |
|
|
4713 |
// fill up an example list
|
|
4714 |
for (TInt index=0; index < DMMTSY_PHONE_CCC_ENTRY_COUNT; index++)
|
|
4715 |
{
|
|
4716 |
switch (index)
|
|
4717 |
{
|
|
4718 |
case 0:
|
|
4719 |
entry.iServiceGroup = DMMTSY_PHONE_CCC_SERVICE_GROUP0;
|
|
4720 |
entry.iCcbsIndex = DMMTSY_PHONE_CCC_INDEX0;
|
|
4721 |
entry.iDestination.iTypeOfNumber = DMMTSY_PHONE_CCC_DESTINATION_TON0;
|
|
4722 |
entry.iDestination.iNumberPlan = DMMTSY_PHONE_CCC_DESTINATION_NP0;
|
|
4723 |
entry.iDestination.iTelNumber = DMMTSY_PHONE_CCC_DESTINATION_NUM0;
|
|
4724 |
break;
|
|
4725 |
case 1:
|
|
4726 |
entry.iServiceGroup = DMMTSY_PHONE_CCC_SERVICE_GROUP1;
|
|
4727 |
entry.iCcbsIndex = DMMTSY_PHONE_CCC_INDEX1;
|
|
4728 |
entry.iDestination.iTypeOfNumber = DMMTSY_PHONE_CCC_DESTINATION_TON1;
|
|
4729 |
entry.iDestination.iNumberPlan = DMMTSY_PHONE_CCC_DESTINATION_NP1;
|
|
4730 |
entry.iDestination.iTelNumber = DMMTSY_PHONE_CCC_DESTINATION_NUM1;
|
|
4731 |
break;
|
|
4732 |
case 2:
|
|
4733 |
entry.iServiceGroup = DMMTSY_PHONE_CCC_SERVICE_GROUP2;
|
|
4734 |
entry.iCcbsIndex = DMMTSY_PHONE_CCC_INDEX2;
|
|
4735 |
entry.iDestination.iTypeOfNumber = DMMTSY_PHONE_CCC_DESTINATION_TON2;
|
|
4736 |
entry.iDestination.iNumberPlan = DMMTSY_PHONE_CCC_DESTINATION_NP2;
|
|
4737 |
entry.iDestination.iTelNumber = DMMTSY_PHONE_CCC_DESTINATION_NUM2;
|
|
4738 |
break;
|
|
4739 |
case 3:
|
|
4740 |
entry.iServiceGroup = DMMTSY_PHONE_CCC_SERVICE_GROUP3;
|
|
4741 |
entry.iCcbsIndex = DMMTSY_PHONE_CCC_INDEX3;
|
|
4742 |
entry.iDestination.iTypeOfNumber = DMMTSY_PHONE_CCC_DESTINATION_TON3;
|
|
4743 |
entry.iDestination.iNumberPlan = DMMTSY_PHONE_CCC_DESTINATION_NP3;
|
|
4744 |
entry.iDestination.iTelNumber = DMMTSY_PHONE_CCC_DESTINATION_NUM3;
|
|
4745 |
default:
|
|
4746 |
break;
|
|
4747 |
}
|
|
4748 |
// Add the entry into the list, at the next empty location
|
|
4749 |
list->AddEntryL(entry);
|
|
4750 |
}
|
|
4751 |
|
|
4752 |
// Store the streamed list and the client ID
|
|
4753 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClientId,aTsyReqHandle);
|
|
4754 |
CleanupStack::PushL(read);
|
|
4755 |
|
|
4756 |
read->iListBuf = list->StoreLC();
|
|
4757 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
4758 |
|
|
4759 |
iGetCcbsRequests->AppendL(read);
|
|
4760 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
4761 |
|
|
4762 |
// return the CBufBase’s size to client
|
|
4763 |
*aBufSize=(read->iListBuf)->Size();
|
|
4764 |
|
|
4765 |
// Complete first phase of list retrieval
|
|
4766 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4767 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
4768 |
return KErrNone;
|
|
4769 |
}
|
|
4770 |
|
|
4771 |
TInt CPhoneDMmTsy::GetCallCompletionPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
4772 |
{
|
|
4773 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallCompletionPhase2 called"));
|
|
4774 |
CListReadAllAttempt* read=NULL;
|
|
4775 |
|
|
4776 |
for (TInt i=0; i<iGetCcbsRequests->Count(); ++i)
|
|
4777 |
{
|
|
4778 |
read = iGetCcbsRequests->At(i);
|
|
4779 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
4780 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
4781 |
{
|
|
4782 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
4783 |
// Copy the streamed list to the client
|
|
4784 |
aBuf->Copy(bufPtr);
|
|
4785 |
delete read;
|
|
4786 |
iGetCcbsRequests->Delete(i);
|
|
4787 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4788 |
return KErrNone;
|
|
4789 |
}
|
|
4790 |
}
|
|
4791 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
4792 |
return KErrNotFound;
|
|
4793 |
}
|
|
4794 |
|
|
4795 |
TInt CPhoneDMmTsy::GetCallCompletionCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4796 |
{
|
|
4797 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallWaitingCancel called"));
|
|
4798 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4799 |
// Remove the read all attempt from iGetCcbsRequests
|
|
4800 |
CListReadAllAttempt* read=NULL;
|
|
4801 |
for (TInt i=0; i<iGetCcbsRequests->Count(); ++i)
|
|
4802 |
{
|
|
4803 |
read = iGetCcbsRequests->At(i);
|
|
4804 |
if (read->iReqHandle == aTsyReqHandle)
|
|
4805 |
{
|
|
4806 |
delete read;
|
|
4807 |
iGetCcbsRequests->Delete(i);
|
|
4808 |
break;
|
|
4809 |
}
|
|
4810 |
}
|
|
4811 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4812 |
return KErrNone;
|
|
4813 |
}
|
|
4814 |
|
|
4815 |
TInt CPhoneDMmTsy::GetAlternatingCallCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
4816 |
{
|
|
4817 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAlternatingCallCaps called"));
|
|
4818 |
|
|
4819 |
*aCaps = DMMTSY_PHONE_ALTERNATING_CALL_CAPS;
|
|
4820 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4821 |
return KErrNone;
|
|
4822 |
}
|
|
4823 |
|
|
4824 |
TInt CPhoneDMmTsy::NotifyAlternatingCallCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
4825 |
{
|
|
4826 |
if (!iNotifyAlternatingCallCapsChange++)
|
|
4827 |
{
|
|
4828 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAlternatingCallCapsChange called"));
|
|
4829 |
*aCaps = DMMTSY_PHONE_ALTERNATING_CALL_CAPS;
|
|
4830 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4831 |
}
|
|
4832 |
return KErrNone;
|
|
4833 |
}
|
|
4834 |
|
|
4835 |
TInt CPhoneDMmTsy::NotifyAlternatingCallCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4836 |
{
|
|
4837 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAlternatingCallCapsChangeCancel called"));
|
|
4838 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4839 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4840 |
return KErrNone;
|
|
4841 |
}
|
|
4842 |
|
|
4843 |
TInt CPhoneDMmTsy::GetAlternatingCallMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneAlternatingCallMode* aMode, RMobilePhone::TMobileService* aFirstService)
|
|
4844 |
{
|
|
4845 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAlternatingCallMode called"));
|
|
4846 |
*aMode = DMMTSY_PHONE_ALTERNATING_CALL_MODE;
|
|
4847 |
*aFirstService = DMMTSY_PHONE_ALTERNATING_CALL_SERVICE;
|
|
4848 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4849 |
return KErrNone;
|
|
4850 |
}
|
|
4851 |
|
|
4852 |
TInt CPhoneDMmTsy::SetAlternatingCallMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneAlternatingCallMode* aMode, RMobilePhone::TMobileService* aFirstService)
|
|
4853 |
{
|
|
4854 |
LOGTEXT(_L8("CPhoneDMmTsy::SetAlternatingCallMode called"));
|
|
4855 |
if (*aMode != DMMTSY_PHONE_ALTERNATING_CALL_MODE || *aFirstService != DMMTSY_PHONE_ALTERNATING_CALL_SERVICE)
|
|
4856 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4857 |
else
|
|
4858 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4859 |
return KErrNone;
|
|
4860 |
}
|
|
4861 |
|
|
4862 |
TInt CPhoneDMmTsy::SetAlternatingCallModeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4863 |
{
|
|
4864 |
LOGTEXT(_L8("CPhoneDMmTsy::SetAlternatingCallModeCancel called"));
|
|
4865 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4866 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4867 |
return KErrNone;
|
|
4868 |
}
|
|
4869 |
|
|
4870 |
TInt CPhoneDMmTsy::NotifyAlternatingCallModeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneAlternatingCallMode* aMode,RMobilePhone::TMobileService* aFirstService)
|
|
4871 |
{
|
|
4872 |
if (!iNotifyAlternatingCallModeChange++)
|
|
4873 |
{
|
|
4874 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAlternatingCallModeChange called"));
|
|
4875 |
*aMode = DMMTSY_PHONE_ALTERNATING_CALL_MODE;
|
|
4876 |
*aFirstService = DMMTSY_PHONE_ALTERNATING_CALL_SERVICE;
|
|
4877 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4878 |
}
|
|
4879 |
return KErrNone;
|
|
4880 |
}
|
|
4881 |
|
|
4882 |
TInt CPhoneDMmTsy::NotifyAlternatingCallModeChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4883 |
{
|
|
4884 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAlternatingCallModeChangeCancel called"));
|
|
4885 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4886 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4887 |
return KErrNone;
|
|
4888 |
}
|
|
4889 |
|
|
4890 |
TInt CPhoneDMmTsy::GetALSLine(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneALSLine* aALSLine)
|
|
4891 |
{
|
|
4892 |
LOGTEXT(_L8("CPhoneDMmTsy::GetALSLine called"));
|
|
4893 |
*aALSLine = DMMTSY_PHONE_ALS_LINE;
|
|
4894 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4895 |
return KErrNone;
|
|
4896 |
}
|
|
4897 |
|
|
4898 |
TInt CPhoneDMmTsy::SetALSLine(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneALSLine* aALSLine)
|
|
4899 |
{
|
|
4900 |
LOGTEXT(_L8("CPhoneDMmTsy::SetALSLine called"));
|
|
4901 |
if (*aALSLine != DMMTSY_PHONE_ALS_LINE)
|
|
4902 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4903 |
else
|
|
4904 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4905 |
return KErrNone;
|
|
4906 |
}
|
|
4907 |
|
|
4908 |
TInt CPhoneDMmTsy::SetALSLineCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4909 |
{
|
|
4910 |
LOGTEXT(_L8("CPhoneDMmTsy::SetALSLineCancel called"));
|
|
4911 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4912 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4913 |
return KErrNone;
|
|
4914 |
}
|
|
4915 |
|
|
4916 |
|
|
4917 |
TInt CPhoneDMmTsy::NotifyALSLineChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneALSLine* aALSLine)
|
|
4918 |
{
|
|
4919 |
if (!iNotifyALSLineChange++)
|
|
4920 |
{
|
|
4921 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyALSLineChange called"));
|
|
4922 |
*aALSLine = DMMTSY_PHONE_ALS_LINE;
|
|
4923 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4924 |
}
|
|
4925 |
return KErrNone;
|
|
4926 |
}
|
|
4927 |
|
|
4928 |
TInt CPhoneDMmTsy::NotifyALSLineChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4929 |
{
|
|
4930 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyALSLineChangeCancel called"));
|
|
4931 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4932 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4933 |
return KErrNone;
|
|
4934 |
}
|
|
4935 |
|
|
4936 |
TInt CPhoneDMmTsy::GetCostCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
4937 |
{
|
|
4938 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCostCaps called"));
|
|
4939 |
*aCaps = DMMTSY_PHONE_COST_CAPS;
|
|
4940 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
4941 |
return KErrNone;
|
|
4942 |
}
|
|
4943 |
|
|
4944 |
TInt CPhoneDMmTsy::NotifyCostCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
4945 |
{
|
|
4946 |
if (!iNotifyCostCapsChange++)
|
|
4947 |
{
|
|
4948 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCostCapsChange called"));
|
|
4949 |
*aCaps = DMMTSY_PHONE_COST_CAPS;
|
|
4950 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4951 |
}
|
|
4952 |
return KErrNone;
|
|
4953 |
}
|
|
4954 |
|
|
4955 |
TInt CPhoneDMmTsy::NotifyCostCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4956 |
{
|
|
4957 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCostCapsChangeCancel called"));
|
|
4958 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4959 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4960 |
return KErrNone;
|
|
4961 |
}
|
|
4962 |
|
|
4963 |
TInt CPhoneDMmTsy::ClearCostMeter(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneCostMeters* aMeters)
|
|
4964 |
{
|
|
4965 |
LOGTEXT(_L8("CPhoneDMmTsy::ClearCostMeter called"));
|
|
4966 |
if (*aMeters != DMMTSY_PHONE_COST_METER)
|
|
4967 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4968 |
else
|
|
4969 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4970 |
return KErrNone;
|
|
4971 |
}
|
|
4972 |
|
|
4973 |
TInt CPhoneDMmTsy::ClearCostMeterCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4974 |
{
|
|
4975 |
LOGTEXT(_L8("CPhoneDMmTsy::ClearCostMeterCancel called"));
|
|
4976 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4977 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4978 |
return KErrNone;
|
|
4979 |
}
|
|
4980 |
|
|
4981 |
TInt CPhoneDMmTsy::SetMaxCostMeter(const TTsyReqHandle aTsyReqHandle, TUint *aUnits)
|
|
4982 |
{
|
|
4983 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMaxCostMeter called"));
|
|
4984 |
if (*aUnits != DMMTSY_PHONE_COST_UNITS)
|
|
4985 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
4986 |
else
|
|
4987 |
AddDelayedReq(aTsyReqHandle,this);
|
|
4988 |
return KErrNone;
|
|
4989 |
}
|
|
4990 |
|
|
4991 |
TInt CPhoneDMmTsy::SetMaxCostMeterCancel(const TTsyReqHandle aTsyReqHandle)
|
|
4992 |
{
|
|
4993 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMaxCostMeterCancel called"));
|
|
4994 |
RemoveDelayedReq(aTsyReqHandle);
|
|
4995 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
4996 |
return KErrNone;
|
|
4997 |
}
|
|
4998 |
|
|
4999 |
TInt CPhoneDMmTsy::SetPuct(const TTsyReqHandle aTsyReqHandle, TDes8* aPuct)
|
|
5000 |
{
|
|
5001 |
LOGTEXT(_L8("CPhoneDMmTsy::SetPuct called"));
|
|
5002 |
RMobilePhone::TMobilePhonePuctV1Pckg* puctPckg = STATIC_CAST(RMobilePhone::TMobilePhonePuctV1Pckg*,aPuct);
|
|
5003 |
RMobilePhone::TMobilePhonePuctV1& puct = (*puctPckg)();
|
|
5004 |
|
|
5005 |
if ((puct.iCurrencyName.Compare(DMMTSY_PHONE_COST_PUCT_CNAME) != 0) ||
|
|
5006 |
(puct.iPricePerUnit != DMMTSY_PHONE_COST_PUCT_PPU))
|
|
5007 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5008 |
else
|
|
5009 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5010 |
|
|
5011 |
return KErrNone;
|
|
5012 |
}
|
|
5013 |
|
|
5014 |
TInt CPhoneDMmTsy::SetPuctCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5015 |
{
|
|
5016 |
LOGTEXT(_L8("CPhoneDMmTsy::SetPuctCancel called"));
|
|
5017 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5018 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5019 |
return KErrNone;
|
|
5020 |
}
|
|
5021 |
|
|
5022 |
TInt CPhoneDMmTsy::GetCostInfo(const TTsyReqHandle aTsyReqHandle, TDes8* aCostInfo)
|
|
5023 |
{
|
|
5024 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCostInfo called"));
|
|
5025 |
RMobilePhone::TMobilePhoneCostInfoV1Pckg* ciPckg = STATIC_CAST(RMobilePhone::TMobilePhoneCostInfoV1Pckg*,aCostInfo);
|
|
5026 |
RMobilePhone::TMobilePhoneCostInfoV1& ci = (*ciPckg)();
|
|
5027 |
|
|
5028 |
ci.iService = DMMTSY_PHONE_COST_SERVICE;
|
|
5029 |
ci.iCCM = DMMTSY_PHONE_COST_CCM;
|
|
5030 |
ci.iACM = DMMTSY_PHONE_COST_ACM;
|
|
5031 |
ci.iACMmax = DMMTSY_PHONE_COST_ACMMAX;
|
|
5032 |
ci.iPuct.iCurrencyName = DMMTSY_PHONE_COST_PUCT_CNAME;
|
|
5033 |
ci.iPuct.iPricePerUnit = DMMTSY_PHONE_COST_PUCT_PPU;
|
|
5034 |
|
|
5035 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5036 |
return KErrNone;
|
|
5037 |
}
|
|
5038 |
|
|
5039 |
TInt CPhoneDMmTsy::GetCostInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5040 |
{
|
|
5041 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCostInfoCancel called"));
|
|
5042 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5043 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5044 |
return KErrNone;
|
|
5045 |
}
|
|
5046 |
|
|
5047 |
TInt CPhoneDMmTsy::NotifyCostInfoChange(const TTsyReqHandle aTsyReqHandle, TDes8* aCostInfo)
|
|
5048 |
{
|
|
5049 |
if (!iNotifyCostInfoChange++)
|
|
5050 |
{
|
|
5051 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCostInfoChange called"));
|
|
5052 |
RMobilePhone::TMobilePhoneCostInfoV1Pckg* ciPckg = STATIC_CAST(RMobilePhone::TMobilePhoneCostInfoV1Pckg*,aCostInfo);
|
|
5053 |
RMobilePhone::TMobilePhoneCostInfoV1& ci = (*ciPckg)();
|
|
5054 |
|
|
5055 |
ci.iService = DMMTSY_PHONE_COST_SERVICE;
|
|
5056 |
ci.iCCM = DMMTSY_PHONE_COST_CCM;
|
|
5057 |
ci.iACM = DMMTSY_PHONE_COST_ACM;
|
|
5058 |
ci.iACMmax = DMMTSY_PHONE_COST_ACMMAX;
|
|
5059 |
ci.iPuct.iCurrencyName = DMMTSY_PHONE_COST_PUCT_CNAME;
|
|
5060 |
ci.iPuct.iPricePerUnit = DMMTSY_PHONE_COST_PUCT_PPU;
|
|
5061 |
|
|
5062 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5063 |
}
|
|
5064 |
return KErrNone;
|
|
5065 |
}
|
|
5066 |
|
|
5067 |
TInt CPhoneDMmTsy::NotifyCostInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5068 |
{
|
|
5069 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCostInfoChangeCancel called"));
|
|
5070 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5071 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5072 |
return KErrNone;
|
|
5073 |
}
|
|
5074 |
|
|
5075 |
TInt CPhoneDMmTsy::GetSecurityCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
5076 |
{
|
|
5077 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSecurityCaps called"));
|
|
5078 |
*aCaps = DMMTSY_PHONE_SECURITY_CAPS;
|
|
5079 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
5080 |
return KErrNone;
|
|
5081 |
}
|
|
5082 |
|
|
5083 |
TInt CPhoneDMmTsy::NotifySecurityCapsChange(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
5084 |
{
|
|
5085 |
if (!iNotifySecurityCapsChange++)
|
|
5086 |
{
|
|
5087 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySecurityCapsChange called"));
|
|
5088 |
*aCaps = DMMTSY_PHONE_SECURITY_CAPS;
|
|
5089 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5090 |
}
|
|
5091 |
return KErrNone;
|
|
5092 |
}
|
|
5093 |
|
|
5094 |
TInt CPhoneDMmTsy::NotifySecurityCapsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5095 |
{
|
|
5096 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySecurityCapsChangeCancel called"));
|
|
5097 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5098 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5099 |
return KErrNone;
|
|
5100 |
}
|
|
5101 |
|
|
5102 |
TInt CPhoneDMmTsy::GetLockInfo(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneLock *aLock, TDes8* aLockInfo)
|
|
5103 |
{
|
|
5104 |
LOGTEXT(_L8("CPhoneDMmTsy::GetLockInfo called"));
|
|
5105 |
if (*aLock != DMMTSY_PHONE_SECURITY_LOCK)
|
|
5106 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5107 |
else
|
|
5108 |
{
|
|
5109 |
RMobilePhone::TMobilePhoneLockInfoV1Pckg* liPckg = STATIC_CAST(RMobilePhone::TMobilePhoneLockInfoV1Pckg*,aLockInfo);
|
|
5110 |
RMobilePhone::TMobilePhoneLockInfoV1& li = (*liPckg)();
|
|
5111 |
li.iStatus = DMMTSY_PHONE_SECURITY_STATUS;
|
|
5112 |
li.iSetting = DMMTSY_PHONE_SECURITY_SETTING;
|
|
5113 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5114 |
}
|
|
5115 |
return KErrNone;
|
|
5116 |
}
|
|
5117 |
|
|
5118 |
TInt CPhoneDMmTsy::GetLockInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5119 |
{
|
|
5120 |
LOGTEXT(_L8("CPhoneDMmTsy::GetLockInfoCancel called"));
|
|
5121 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5122 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5123 |
return KErrNone;
|
|
5124 |
}
|
|
5125 |
|
|
5126 |
TInt CPhoneDMmTsy::NotifyLockInfoChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneLock* aLock, TDes8* aLockInfo)
|
|
5127 |
{
|
|
5128 |
if (!iNotifyLockInfoChange++)
|
|
5129 |
{
|
|
5130 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyLockInfoChange called"));
|
|
5131 |
RMobilePhone::TMobilePhoneLockInfoV1Pckg* liPckg = STATIC_CAST(RMobilePhone::TMobilePhoneLockInfoV1Pckg*,aLockInfo);
|
|
5132 |
RMobilePhone::TMobilePhoneLockInfoV1& li = (*liPckg)();
|
|
5133 |
li.iStatus = DMMTSY_PHONE_SECURITY_STATUS;
|
|
5134 |
li.iSetting = DMMTSY_PHONE_SECURITY_SETTING;
|
|
5135 |
*aLock = DMMTSY_PHONE_SECURITY_LOCK;
|
|
5136 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5137 |
}
|
|
5138 |
return KErrNone;
|
|
5139 |
}
|
|
5140 |
|
|
5141 |
TInt CPhoneDMmTsy::NotifyLockInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5142 |
{
|
|
5143 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyLockInfoChangeCancel called"));
|
|
5144 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5145 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5146 |
return KErrNone;
|
|
5147 |
}
|
|
5148 |
|
|
5149 |
|
|
5150 |
TInt CPhoneDMmTsy::SetLockSetting(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneLock *aLock, RMobilePhone::TMobilePhoneLockSetting *aLockSetting)
|
|
5151 |
{
|
|
5152 |
LOGTEXT(_L8("CPhoneDMmTsy::SetLockSetting called"));
|
|
5153 |
if (*aLock != DMMTSY_PHONE_SECURITY_SC_LOCK ||
|
|
5154 |
*aLockSetting != DMMTSY_PHONE_SECURITY_SC_SETTING)
|
|
5155 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5156 |
else
|
|
5157 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5158 |
|
|
5159 |
return KErrNone;
|
|
5160 |
}
|
|
5161 |
|
|
5162 |
TInt CPhoneDMmTsy::SetLockSettingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5163 |
{
|
|
5164 |
LOGTEXT(_L8("CPhoneDMmTsy::SetLockSettingCancel called"));
|
|
5165 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5166 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5167 |
return KErrNone;
|
|
5168 |
}
|
|
5169 |
|
|
5170 |
TInt CPhoneDMmTsy::ChangeSecurityCode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *aType, RMobilePhone::TMobilePhonePasswordChangeV1 *aChange)
|
|
5171 |
{
|
|
5172 |
LOGTEXT(_L8("CPhoneDMmTsy::ChangeSecurityCode called"));
|
|
5173 |
if ((*aType != DMMTSY_PHONE_SECURITY_CODE) ||
|
|
5174 |
(aChange->iOldPassword.Compare(DMMTSY_PHONE_SECURITY_OLD_PASS) != 0) ||
|
|
5175 |
(aChange->iNewPassword.Compare(DMMTSY_PHONE_SECURITY_NEW_PASS) != 0))
|
|
5176 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5177 |
else
|
|
5178 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5179 |
|
|
5180 |
return KErrNone;
|
|
5181 |
}
|
|
5182 |
|
|
5183 |
TInt CPhoneDMmTsy::ChangeSecurityCodeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5184 |
{
|
|
5185 |
LOGTEXT(_L8("CPhoneDMmTsy::ChangeSecurityCodeCancel called"));
|
|
5186 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5187 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5188 |
return KErrNone;
|
|
5189 |
}
|
|
5190 |
|
|
5191 |
TInt CPhoneDMmTsy::GetSecurityCodeInfo(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *aSecurityCode, TDes8* aSecurityCodeInfo)
|
|
5192 |
{
|
|
5193 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSecurityCodeInfo called"));
|
|
5194 |
if (*aSecurityCode != DMMTSY_PHONE_SECURITY_CODE)
|
|
5195 |
ReqCompleted(aTsyReqHandle,KErrNotFound);
|
|
5196 |
else
|
|
5197 |
{
|
|
5198 |
RMobilePhone::TMobilePhoneSecurityCodeInfoV5Pckg* infoPckg = STATIC_CAST(RMobilePhone::TMobilePhoneSecurityCodeInfoV5Pckg*,aSecurityCodeInfo);
|
|
5199 |
RMobilePhone::TMobilePhoneSecurityCodeInfoV5& info = (*infoPckg)();
|
|
5200 |
info.iRemainingEntryAttempts = DMMTSY_PHONE_SECURITY_REMAINING_ATTEMPTS;
|
|
5201 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5202 |
}
|
|
5203 |
return KErrNone;
|
|
5204 |
}
|
|
5205 |
|
|
5206 |
TInt CPhoneDMmTsy::GetSecurityCodeInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5207 |
{
|
|
5208 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSecurityCodeInfoCancel called"));
|
|
5209 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5210 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5211 |
return KErrNone;
|
|
5212 |
}
|
|
5213 |
|
|
5214 |
TInt CPhoneDMmTsy::NotifySecurityCodeInfoChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode* aSecurityCode,TDes8* aSecurityCodeInfo)
|
|
5215 |
{
|
|
5216 |
if (!iNotifySecurityCodeInfoChange++)
|
|
5217 |
{
|
|
5218 |
LOGTEXT(_L8("CPhoneDMmTsy::SecurityCodeInfoChange called"));
|
|
5219 |
RMobilePhone::TMobilePhoneSecurityCodeInfoV5Pckg* infoPckg = STATIC_CAST(RMobilePhone::TMobilePhoneSecurityCodeInfoV5Pckg*,aSecurityCodeInfo);
|
|
5220 |
RMobilePhone::TMobilePhoneSecurityCodeInfoV5& info = (*infoPckg)();
|
|
5221 |
info.iRemainingEntryAttempts = DMMTSY_PHONE_SECURITY_REMAINING_ATTEMPTS;
|
|
5222 |
*aSecurityCode = DMMTSY_PHONE_SECURITY_CODE;
|
|
5223 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5224 |
}
|
|
5225 |
return KErrNone;
|
|
5226 |
}
|
|
5227 |
|
|
5228 |
TInt CPhoneDMmTsy::NotifySecurityCodeInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5229 |
{
|
|
5230 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySecurityCodeInfoChangeCancel called"));
|
|
5231 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5232 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5233 |
return KErrNone;
|
|
5234 |
}
|
|
5235 |
|
|
5236 |
TInt CPhoneDMmTsy::NotifyOnSecurityEvent(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityEvent* aEvent)
|
|
5237 |
{
|
|
5238 |
if (!iNotifyOnSecurityEvent++)
|
|
5239 |
{
|
|
5240 |
LOGTEXT(_L8("CPhoneDMmTsy::Notify On Security Event called"));
|
|
5241 |
*aEvent = DMMTSY_PHONE_SECURITY_EVENT;
|
|
5242 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5243 |
}
|
|
5244 |
return KErrNone;
|
|
5245 |
}
|
|
5246 |
|
|
5247 |
TInt CPhoneDMmTsy::NotifyOnSecurityEventCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5248 |
{
|
|
5249 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyOnSecurityEventCancel called"));
|
|
5250 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5251 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5252 |
return KErrNone;
|
|
5253 |
}
|
|
5254 |
|
|
5255 |
TInt CPhoneDMmTsy::VerifySecurityCode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *aType, RMobilePhone::TCodeAndUnblockCode* aData)
|
|
5256 |
{
|
|
5257 |
LOGTEXT(_L8("CPhoneDMmTsy::Verify Security Code called"));
|
|
5258 |
|
|
5259 |
if ((*aType != DMMTSY_PHONE_SECURITY_CODE) ||
|
|
5260 |
(aData->iCode.Compare(DMMTSY_PHONE_SECURITY_OLD_PASS) != 0) ||
|
|
5261 |
(aData->iUnblockCode.Compare(DMMTSY_PHONE_SECURITY_NEW_PASS) != 0))
|
|
5262 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5263 |
else
|
|
5264 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5265 |
|
|
5266 |
return KErrNone;
|
|
5267 |
}
|
|
5268 |
|
|
5269 |
TInt CPhoneDMmTsy::VerifySecurityCodeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5270 |
{
|
|
5271 |
LOGTEXT(_L8("CPhoneDMmTsy::VerifySecurityCodeCancel called"));
|
|
5272 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5273 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5274 |
return KErrNone;
|
|
5275 |
}
|
|
5276 |
|
|
5277 |
TInt CPhoneDMmTsy::AbortSecurityCode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneSecurityCode *aType)
|
|
5278 |
{
|
|
5279 |
LOGTEXT(_L8("CPhoneDMmTsy::AbortSecurityCode called"));
|
|
5280 |
if (*aType != DMMTSY_PHONE_SECURITY_CODE)
|
|
5281 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5282 |
else
|
|
5283 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
5284 |
return KErrNone;
|
|
5285 |
}
|
|
5286 |
|
|
5287 |
|
|
5288 |
TInt CPhoneDMmTsy::NotifyMessageWaiting(const TTsyReqHandle aTsyReqHandle, TInt* aCount)
|
|
5289 |
{
|
|
5290 |
if (!iNotifyMessageWaiting++)
|
|
5291 |
{
|
|
5292 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMessageWaiting called"));
|
|
5293 |
*aCount = DMMTSY_PHONE_MW_COUNT;
|
|
5294 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5295 |
}
|
|
5296 |
return KErrNone;
|
|
5297 |
}
|
|
5298 |
|
|
5299 |
TInt CPhoneDMmTsy::NotifyMessageWaitingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5300 |
{
|
|
5301 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMessageWaitingCanel called"));
|
|
5302 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5303 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5304 |
return KErrNone;
|
|
5305 |
}
|
|
5306 |
|
|
5307 |
TInt CPhoneDMmTsy::GetIccMessageWaitingIndicators(const TTsyReqHandle aTsyReqHandle, TDes8* aMsgIndicators)
|
|
5308 |
{
|
|
5309 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIccMessageWaitingIndicators called"));
|
|
5310 |
RMobilePhone::TMobilePhoneMessageWaitingV1Pckg* indPckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV1Pckg*,aMsgIndicators);
|
|
5311 |
RMobilePhone::TMobilePhoneMessageWaitingV1& indicators = (*indPckg)();
|
|
5312 |
indicators.iDisplayStatus=DMMTSY_PHONE_DISPLAYSTATUS;
|
|
5313 |
indicators.iVoiceMsgs=DMMTSY_PHONE_VOICEMSGS;
|
|
5314 |
indicators.iAuxVoiceMsgs=DMMTSY_PHONE_AUXVOICEMSGS;
|
|
5315 |
indicators.iDataMsgs=DMMTSY_PHONE_DATAMSGS;
|
|
5316 |
indicators.iFaxMsgs=DMMTSY_PHONE_FAXMSGS;
|
|
5317 |
indicators.iEmailMsgs=DMMTSY_PHONE_EMAILMSGS;
|
|
5318 |
indicators.iOtherMsgs=DMMTSY_PHONE_OTHERMSGS;
|
|
5319 |
|
|
5320 |
if(indicators.ExtensionId() == KEtelExtMultimodeV8 )
|
|
5321 |
{
|
|
5322 |
RMobilePhone::TMobilePhoneMessageWaitingV8Pckg* indV8Pckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV8Pckg*,aMsgIndicators);
|
|
5323 |
RMobilePhone::TMobilePhoneMessageWaitingV8& indicatorsV8 = (*indV8Pckg)();
|
|
5324 |
indicatorsV8.iVideoMsgs=DMMTSY_PHONE_VIDEOMSGS1;
|
|
5325 |
}
|
|
5326 |
|
|
5327 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5328 |
return KErrNone;
|
|
5329 |
}
|
|
5330 |
|
|
5331 |
TInt CPhoneDMmTsy::GetIccMessageWaitingIndicatorsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5332 |
{
|
|
5333 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIccMessageWaitingIndicators called"));
|
|
5334 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5335 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5336 |
return KErrNone;
|
|
5337 |
}
|
|
5338 |
|
|
5339 |
TInt CPhoneDMmTsy::SetIccMessageWaitingIndicators(const TTsyReqHandle aTsyReqHandle, TDes8* aMsgIndicators)
|
|
5340 |
{
|
|
5341 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIccMessageWaitingIndicators called"));
|
|
5342 |
RMobilePhone::TMobilePhoneMessageWaitingV1Pckg* indPckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV1Pckg*,aMsgIndicators);
|
|
5343 |
RMobilePhone::TMobilePhoneMessageWaitingV1& indicators = (*indPckg)();
|
|
5344 |
if ((indicators.iDisplayStatus!=DMMTSY_PHONE_DISPLAYSTATUS) ||
|
|
5345 |
(indicators.iVoiceMsgs != DMMTSY_PHONE_VOICEMSGS2) ||
|
|
5346 |
(indicators.iAuxVoiceMsgs != DMMTSY_PHONE_AUXVOICEMSGS2) ||
|
|
5347 |
(indicators.iDataMsgs != DMMTSY_PHONE_DATAMSGS2) ||
|
|
5348 |
(indicators.iFaxMsgs != DMMTSY_PHONE_FAXMSGS2) ||
|
|
5349 |
(indicators.iEmailMsgs != DMMTSY_PHONE_EMAILMSGS2) ||
|
|
5350 |
(indicators.iOtherMsgs != DMMTSY_PHONE_OTHERMSGS2))
|
|
5351 |
{
|
|
5352 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5353 |
}
|
|
5354 |
|
|
5355 |
if(indicators.ExtensionId() == KEtelExtMultimodeV8 )
|
|
5356 |
{
|
|
5357 |
RMobilePhone::TMobilePhoneMessageWaitingV8Pckg* indV8Pckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV8Pckg*,aMsgIndicators);
|
|
5358 |
RMobilePhone::TMobilePhoneMessageWaitingV8& indicatorsV8 = (*indV8Pckg)();
|
|
5359 |
if (indicatorsV8.iVideoMsgs != DMMTSY_PHONE_VIDEOMSGS2)
|
|
5360 |
{
|
|
5361 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5362 |
}
|
|
5363 |
}
|
|
5364 |
|
|
5365 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5366 |
return KErrNone;
|
|
5367 |
}
|
|
5368 |
|
|
5369 |
TInt CPhoneDMmTsy::SetIccMessageWaitingIndicatorsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5370 |
{
|
|
5371 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIccMessageWaitingIndicators called"));
|
|
5372 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5373 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5374 |
return KErrNone;
|
|
5375 |
}
|
|
5376 |
|
|
5377 |
TInt CPhoneDMmTsy::NotifyIccMessageWaitingIndicatorsChange(const TTsyReqHandle aTsyReqHandle, TDes8* aMsgIndicators)
|
|
5378 |
{
|
|
5379 |
if (!iNotifyIccMessageWaitingChange++)
|
|
5380 |
{
|
|
5381 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIccMessageWaitingIndicatorsChange called"));
|
|
5382 |
RMobilePhone::TMobilePhoneMessageWaitingV1Pckg* indPckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV1Pckg*,aMsgIndicators);
|
|
5383 |
RMobilePhone::TMobilePhoneMessageWaitingV1& indicators = (*indPckg)();
|
|
5384 |
|
|
5385 |
indicators.iDisplayStatus=DMMTSY_PHONE_DISPLAYSTATUS;
|
|
5386 |
indicators.iVoiceMsgs=DMMTSY_PHONE_VOICEMSGS2;
|
|
5387 |
indicators.iAuxVoiceMsgs=DMMTSY_PHONE_AUXVOICEMSGS2;
|
|
5388 |
indicators.iDataMsgs=DMMTSY_PHONE_DATAMSGS2;
|
|
5389 |
indicators.iFaxMsgs=DMMTSY_PHONE_FAXMSGS2;
|
|
5390 |
indicators.iEmailMsgs=DMMTSY_PHONE_EMAILMSGS2;
|
|
5391 |
indicators.iOtherMsgs=DMMTSY_PHONE_OTHERMSGS2;
|
|
5392 |
|
|
5393 |
if(indicators.ExtensionId() == KEtelExtMultimodeV8)
|
|
5394 |
{
|
|
5395 |
RMobilePhone::TMobilePhoneMessageWaitingV8Pckg* indV8Pckg = STATIC_CAST(RMobilePhone::TMobilePhoneMessageWaitingV8Pckg*,aMsgIndicators);
|
|
5396 |
RMobilePhone::TMobilePhoneMessageWaitingV8& indicatorsV8 = (*indV8Pckg)();
|
|
5397 |
indicatorsV8.iVideoMsgs=DMMTSY_PHONE_VIDEOMSGS2;
|
|
5398 |
iNotifyIccMessageWaitingChange = 0;
|
|
5399 |
}
|
|
5400 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5401 |
}
|
|
5402 |
else
|
|
5403 |
{
|
|
5404 |
//reset for multiple complete test
|
|
5405 |
iNotifyIccMessageWaitingChange = 0;
|
|
5406 |
}
|
|
5407 |
return KErrNone;
|
|
5408 |
}
|
|
5409 |
|
|
5410 |
TInt CPhoneDMmTsy::NotifyIccMessageWaitingIndicatorsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5411 |
{
|
|
5412 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIccMessageWaitingIndicatorsChange called"));
|
|
5413 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5414 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5415 |
return KErrNone;
|
|
5416 |
}
|
|
5417 |
|
|
5418 |
TInt CPhoneDMmTsy::GetFdnStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneFdnStatus* aFdnStatus)
|
|
5419 |
{
|
|
5420 |
LOGTEXT(_L8("CPhoneDMmTsy::GetFdnStatus called"));
|
|
5421 |
*aFdnStatus = DMMTSY_PHONE_FDN_STATUS;
|
|
5422 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5423 |
return KErrNone;
|
|
5424 |
}
|
|
5425 |
|
|
5426 |
TInt CPhoneDMmTsy::GetFdnStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5427 |
{
|
|
5428 |
LOGTEXT(_L8("CPhoneDMmTsy::GetFdnStatusCancel called"));
|
|
5429 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5430 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5431 |
return KErrNone;
|
|
5432 |
}
|
|
5433 |
|
|
5434 |
TInt CPhoneDMmTsy::SetFdnSetting(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneFdnSetting *aFdnSetting)
|
|
5435 |
{
|
|
5436 |
LOGTEXT(_L8("CPhoneDMmTsy::SetFdnSetting called"));
|
|
5437 |
if (*aFdnSetting != DMMTSY_PHONE_FDN_SETTING)
|
|
5438 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
5439 |
else
|
|
5440 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5441 |
return KErrNone;
|
|
5442 |
}
|
|
5443 |
|
|
5444 |
TInt CPhoneDMmTsy::SetFdnSettingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5445 |
{
|
|
5446 |
LOGTEXT(_L8("CPhoneDMmTsy::SetFdnSettingCancel called"));
|
|
5447 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5448 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5449 |
return KErrNone;
|
|
5450 |
}
|
|
5451 |
|
|
5452 |
TInt CPhoneDMmTsy::NotifyFdnStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneFdnStatus* aFdnStatus)
|
|
5453 |
{
|
|
5454 |
if (!iNotifyFdnStatusChange++)
|
|
5455 |
{
|
|
5456 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyFdnStatusChange called"));
|
|
5457 |
*aFdnStatus = DMMTSY_PHONE_FDN_STATUS;
|
|
5458 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5459 |
}
|
|
5460 |
return KErrNone;
|
|
5461 |
}
|
|
5462 |
|
|
5463 |
TInt CPhoneDMmTsy::NotifyFdnStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5464 |
{
|
|
5465 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyFdnStatusChangeCancel called"));
|
|
5466 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5467 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5468 |
return KErrNone;
|
|
5469 |
}
|
|
5470 |
|
|
5471 |
TInt CPhoneDMmTsy::GetMulticallParams(const TTsyReqHandle aTsyReqHandle, TDes8* aMulticallParams)
|
|
5472 |
{
|
|
5473 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMulticallParams called"));
|
|
5474 |
|
|
5475 |
RMobilePhone::TMobilePhoneMulticallSettingsV1Pckg *multicallParamsPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneMulticallSettingsV1Pckg *, aMulticallParams);
|
|
5476 |
RMobilePhone::TMobilePhoneMulticallSettingsV1 &multicallParams = (*multicallParamsPckg)();
|
|
5477 |
|
|
5478 |
multicallParams.iUserMaxBearers = DMMTSY_PHONE_USER_MAX_BEARERS1;
|
|
5479 |
multicallParams.iServiceProviderMaxBearers = DMMTSY_PHONE_PROVIDER_MAX_BEARERS1;
|
|
5480 |
multicallParams.iNetworkSupportedMaxBearers = DMMTSY_PHONE_NETWORK_MAX_BEARERS1;
|
|
5481 |
multicallParams.iUESupportedMaxBearers = DMMTSY_PHONE_UE_MAX_BEARERS1;
|
|
5482 |
|
|
5483 |
AddDelayedReq(aTsyReqHandle, this);
|
|
5484 |
return KErrNone;
|
|
5485 |
}
|
|
5486 |
|
|
5487 |
TInt CPhoneDMmTsy::SetMulticallParams(const TTsyReqHandle aTsyReqHandle, TInt* aUserMaxBearers)
|
|
5488 |
{
|
|
5489 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMulticallParams called"));
|
|
5490 |
|
|
5491 |
if (*aUserMaxBearers != DMMTSY_PHONE_USER_MAX_BEARERS1)
|
|
5492 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5493 |
else
|
|
5494 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5495 |
return KErrNone;
|
|
5496 |
}
|
|
5497 |
|
|
5498 |
TInt CPhoneDMmTsy::GetMulticallParamsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5499 |
{
|
|
5500 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMulticallParamsCancel called"));
|
|
5501 |
|
|
5502 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5503 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5504 |
return KErrNone;
|
|
5505 |
}
|
|
5506 |
|
|
5507 |
TInt CPhoneDMmTsy::SetMulticallParamsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5508 |
{
|
|
5509 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMulticallParamsCancel called"));
|
|
5510 |
|
|
5511 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5512 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5513 |
return KErrNone;
|
|
5514 |
}
|
|
5515 |
|
|
5516 |
TInt CPhoneDMmTsy::NotifyMulticallParamsChange(const TTsyReqHandle aTsyReqHandle, TDes8* aMulticallParams)
|
|
5517 |
{
|
|
5518 |
if (!iNotifyMulticallParamsChange++)
|
|
5519 |
{
|
|
5520 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMulticallParamsChange called"));
|
|
5521 |
|
|
5522 |
RMobilePhone::TMobilePhoneMulticallSettingsV1Pckg *multicallParamsPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneMulticallSettingsV1Pckg *, aMulticallParams);
|
|
5523 |
RMobilePhone::TMobilePhoneMulticallSettingsV1 &multicallParams = (*multicallParamsPckg)();
|
|
5524 |
|
|
5525 |
multicallParams.iUserMaxBearers = DMMTSY_PHONE_USER_MAX_BEARERS2;
|
|
5526 |
multicallParams.iServiceProviderMaxBearers = DMMTSY_PHONE_PROVIDER_MAX_BEARERS2;
|
|
5527 |
multicallParams.iNetworkSupportedMaxBearers = DMMTSY_PHONE_NETWORK_MAX_BEARERS2;
|
|
5528 |
multicallParams.iUESupportedMaxBearers = DMMTSY_PHONE_UE_MAX_BEARERS2;
|
|
5529 |
|
|
5530 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5531 |
}
|
|
5532 |
return KErrNone;
|
|
5533 |
}
|
|
5534 |
|
|
5535 |
TInt CPhoneDMmTsy::NotifyMulticallParamsChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5536 |
{
|
|
5537 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMulticallParamsChangeCancel called"));
|
|
5538 |
|
|
5539 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5540 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5541 |
return KErrNone;
|
|
5542 |
}
|
|
5543 |
|
|
5544 |
TInt CPhoneDMmTsy::GetIncomingCallType(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIncomingCallType* aCallType, TDes8* aDataParams)
|
|
5545 |
{
|
|
5546 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIncomingCallType called"));
|
|
5547 |
|
|
5548 |
RMobileCall::TMobileDataCallParamsV1Pckg *dataParamsPckgV1 = REINTERPRET_CAST(RMobileCall::TMobileDataCallParamsV1Pckg*, aDataParams);
|
|
5549 |
RMobileCall::TMobileDataCallParamsV1 &dataParamsV1 = (*dataParamsPckgV1)();
|
|
5550 |
|
|
5551 |
dataParamsV1.iService = DMMTSY_DATA_CALL_SERVICE;
|
|
5552 |
dataParamsV1.iSpeed = DMMTSY_DATA_CALL_SPEED;
|
|
5553 |
dataParamsV1.iProtocol = DMMTSY_DATA_CALL_PROTOCOL;
|
|
5554 |
dataParamsV1.iQoS = DMMTSY_DATA_CALL_QOS;
|
|
5555 |
dataParamsV1.iRLPVersion = DMMTSY_DATA_CALL_RLP;
|
|
5556 |
dataParamsV1.iV42bisReq = DMMTSY_DATA_CALL_V42BIS;
|
|
5557 |
dataParamsV1.iUseEdge = DMMTSY_DATA_CALL_EGPRS_REQUIRED;
|
|
5558 |
|
|
5559 |
*aCallType = DMMTSY_PHONE_INCOMING_CALL_TYPES;
|
|
5560 |
|
|
5561 |
AddDelayedReq(aTsyReqHandle, this);
|
|
5562 |
return KErrNone;
|
|
5563 |
}
|
|
5564 |
|
|
5565 |
TInt CPhoneDMmTsy::GetIncomingCallTypeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5566 |
{
|
|
5567 |
LOGTEXT(_L8("CPhoneDMmTsy::GetIncomingCallTypeCancel called"));
|
|
5568 |
|
|
5569 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5570 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5571 |
return KErrNone;
|
|
5572 |
|
|
5573 |
}
|
|
5574 |
|
|
5575 |
TInt CPhoneDMmTsy::SetIncomingCallType(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIncomingCallType* aCallType, TDes8* aDataParams)
|
|
5576 |
{
|
|
5577 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIncomingCallType called"));
|
|
5578 |
|
|
5579 |
RMobileCall::TMobileDataCallParamsV1Pckg *dataParamsPckgV1 = REINTERPRET_CAST(RMobileCall::TMobileDataCallParamsV1Pckg*, aDataParams);
|
|
5580 |
RMobileCall::TMobileDataCallParamsV1 &dataParamsV1 = (*dataParamsPckgV1)();
|
|
5581 |
|
|
5582 |
if ((*aCallType != DMMTSY_PHONE_INCOMING_CALL_TYPES) ||
|
|
5583 |
(dataParamsV1.iService != DMMTSY_DATA_CALL_SERVICE) ||
|
|
5584 |
(dataParamsV1.iSpeed != DMMTSY_DATA_CALL_SPEED) ||
|
|
5585 |
(dataParamsV1.iProtocol != DMMTSY_DATA_CALL_PROTOCOL) ||
|
|
5586 |
(dataParamsV1.iQoS != DMMTSY_DATA_CALL_QOS) ||
|
|
5587 |
(dataParamsV1.iRLPVersion != DMMTSY_DATA_CALL_RLP) ||
|
|
5588 |
(dataParamsV1.iV42bisReq != DMMTSY_DATA_CALL_V42BIS) ||
|
|
5589 |
(dataParamsV1.iUseEdge != DMMTSY_DATA_CALL_EGPRS_REQUIRED))
|
|
5590 |
|
|
5591 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5592 |
else
|
|
5593 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5594 |
return KErrNone;
|
|
5595 |
}
|
|
5596 |
|
|
5597 |
TInt CPhoneDMmTsy::SetIncomingCallTypeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5598 |
{
|
|
5599 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIncomingCallTypeCancel called"));
|
|
5600 |
|
|
5601 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5602 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5603 |
return KErrNone;
|
|
5604 |
|
|
5605 |
}
|
|
5606 |
|
|
5607 |
TInt CPhoneDMmTsy::NotifyIncomingCallTypeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIncomingCallType* aCallType, TDes8* aDataParams)
|
|
5608 |
{
|
|
5609 |
if (!iNotifyIncomingCallTypeChange++)
|
|
5610 |
{
|
|
5611 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIncomingCallTypeChange called"));
|
|
5612 |
|
|
5613 |
RMobileCall::TMobileDataCallParamsV1Pckg *dataParamsPckg = REINTERPRET_CAST(RMobileCall::TMobileDataCallParamsV1Pckg*, aDataParams);
|
|
5614 |
RMobileCall::TMobileDataCallParamsV1 &dataParams = (*dataParamsPckg)();
|
|
5615 |
|
|
5616 |
if(dataParams.ExtensionId() == RMobileCall::KETelMobileDataCallParamsV2)
|
|
5617 |
{
|
|
5618 |
RMobileCall::TMobileDataCallParamsV2Pckg *dataParamsPckgV2 = REINTERPRET_CAST(RMobileCall::TMobileDataCallParamsV2Pckg*, aDataParams);
|
|
5619 |
RMobileCall::TMobileDataCallParamsV2 &dataParamsV2 = (*dataParamsPckgV2)();
|
|
5620 |
dataParamsV2.iBearerMode = DMMTSY_PHONE_MULTICALLBEARERMODE_NOTSUPPORTED;
|
|
5621 |
//reset for V1
|
|
5622 |
iNotifyIncomingCallTypeChange = 0;
|
|
5623 |
}
|
|
5624 |
dataParams.iService = DMMTSY_DATA_CALL_SERVICE1;
|
|
5625 |
dataParams.iSpeed = DMMTSY_DATA_CALL_SPEED1;
|
|
5626 |
dataParams.iProtocol = DMMTSY_DATA_CALL_PROTOCOL1;
|
|
5627 |
dataParams.iQoS = DMMTSY_DATA_CALL_QOS1;
|
|
5628 |
dataParams.iRLPVersion = DMMTSY_DATA_CALL_RLP1;
|
|
5629 |
dataParams.iV42bisReq = DMMTSY_DATA_CALL_V42BIS1;
|
|
5630 |
dataParams.iUseEdge = DMMTSY_DATA_CALL_EGPRS_NOTREQUIRED;
|
|
5631 |
|
|
5632 |
*aCallType = DMMTSY_PHONE_INCOMING_CALL_TYPES1;
|
|
5633 |
|
|
5634 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5635 |
}
|
|
5636 |
else
|
|
5637 |
{
|
|
5638 |
//reset for multiple complete test
|
|
5639 |
iNotifyIncomingCallTypeChange = 0;
|
|
5640 |
}
|
|
5641 |
return KErrNone;
|
|
5642 |
}
|
|
5643 |
|
|
5644 |
TInt CPhoneDMmTsy::NotifyIncomingCallTypeChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5645 |
{
|
|
5646 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIncomingCallTypeChangeCancel called"));
|
|
5647 |
|
|
5648 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5649 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5650 |
return KErrNone;
|
|
5651 |
}
|
|
5652 |
|
|
5653 |
TInt CPhoneDMmTsy::GetUUSSetting(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneUUSSetting* aSetting)
|
|
5654 |
{
|
|
5655 |
LOGTEXT(_L8("CPhoneDMmTsy::GetUUSSetting called"));
|
|
5656 |
|
|
5657 |
*aSetting = DMMTSY_PHONE_UUS_SETTING1;
|
|
5658 |
|
|
5659 |
AddDelayedReq(aTsyReqHandle, this);
|
|
5660 |
return KErrNone;
|
|
5661 |
}
|
|
5662 |
|
|
5663 |
TInt CPhoneDMmTsy::GetUUSSettingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5664 |
{
|
|
5665 |
LOGTEXT(_L8("CPhoneDMmTsy::GetUUSSettingCancel called"));
|
|
5666 |
|
|
5667 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5668 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5669 |
return KErrNone;
|
|
5670 |
}
|
|
5671 |
|
|
5672 |
TInt CPhoneDMmTsy::SetUUSSetting(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneUUSSetting* aSetting)
|
|
5673 |
{
|
|
5674 |
LOGTEXT(_L8("CPhoneDMmTsy::SetUUSSetting called"));
|
|
5675 |
|
|
5676 |
if(*aSetting != DMMTSY_PHONE_UUS_SETTING2)
|
|
5677 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5678 |
else
|
|
5679 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5680 |
return KErrNone;
|
|
5681 |
}
|
|
5682 |
|
|
5683 |
TInt CPhoneDMmTsy::SetUUSSettingCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5684 |
{
|
|
5685 |
LOGTEXT(_L8("CPhoneDMmTsy::SetUUSSettingCancel called"));
|
|
5686 |
|
|
5687 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5688 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5689 |
return KErrNone;
|
|
5690 |
}
|
|
5691 |
|
|
5692 |
TInt CPhoneDMmTsy::NotifyUUSSettingChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneUUSSetting* aSetting)
|
|
5693 |
{
|
|
5694 |
if (!iNotifyUUSSettingChange++)
|
|
5695 |
{
|
|
5696 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUUSSettingChange called"));
|
|
5697 |
|
|
5698 |
*aSetting = DMMTSY_PHONE_UUS_SETTING2;
|
|
5699 |
|
|
5700 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5701 |
}
|
|
5702 |
return KErrNone;
|
|
5703 |
}
|
|
5704 |
|
|
5705 |
TInt CPhoneDMmTsy::NotifyUUSSettingChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5706 |
{
|
|
5707 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUUSSettingChangeCancel called"));
|
|
5708 |
|
|
5709 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5710 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5711 |
return KErrNone;
|
|
5712 |
}
|
|
5713 |
|
|
5714 |
TInt CPhoneDMmTsy::GetMultimediaCallPreference(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneMultimediaSettings* aSetting)
|
|
5715 |
{
|
|
5716 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMultimediaCallPreference called"));
|
|
5717 |
|
|
5718 |
*aSetting = DMMTSY_PHONE_MM_SETTING;
|
|
5719 |
|
|
5720 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5721 |
return KErrNone;
|
|
5722 |
}
|
|
5723 |
|
|
5724 |
TInt CPhoneDMmTsy::SetMultimediaCallPreference(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneMultimediaSettings* aSetting)
|
|
5725 |
{
|
|
5726 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMultimediaCallPreference called"));
|
|
5727 |
|
|
5728 |
if(*aSetting != DMMTSY_PHONE_MM_SETTING)
|
|
5729 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5730 |
else
|
|
5731 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5732 |
return KErrNone;
|
|
5733 |
}
|
|
5734 |
|
|
5735 |
TInt CPhoneDMmTsy::SetMultimediaCallPreferenceCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5736 |
{
|
|
5737 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMultimediaCallPreferenceCancel called"));
|
|
5738 |
|
|
5739 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5740 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5741 |
return KErrNone;
|
|
5742 |
}
|
|
5743 |
|
|
5744 |
TInt CPhoneDMmTsy::NotifyMultimediaCallPreferenceChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneMultimediaSettings* aSetting)
|
|
5745 |
{
|
|
5746 |
if (!iNotifyMmCallPrefChange++)
|
|
5747 |
{
|
|
5748 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMultimediaCallPreferenceChange called"));
|
|
5749 |
|
|
5750 |
*aSetting = DMMTSY_PHONE_MM_SETTING_2;
|
|
5751 |
|
|
5752 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5753 |
}
|
|
5754 |
return KErrNone;
|
|
5755 |
}
|
|
5756 |
|
|
5757 |
TInt CPhoneDMmTsy::NotifyMultimediaCallPreferenceChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5758 |
{
|
|
5759 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMultimediaCallPreferenceChangeCancel called"));
|
|
5760 |
|
|
5761 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5762 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5763 |
return KErrNone;
|
|
5764 |
}
|
|
5765 |
|
|
5766 |
TInt CPhoneDMmTsy::GetNetworkSecurityLevel(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkSecurity* aSecurity)
|
|
5767 |
{
|
|
5768 |
|
|
5769 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkSecurityLevel called"));
|
|
5770 |
|
|
5771 |
*aSecurity = DMMTSY_PHONE_NET_SECURITY;
|
|
5772 |
|
|
5773 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5774 |
return KErrNone;
|
|
5775 |
}
|
|
5776 |
|
|
5777 |
TInt CPhoneDMmTsy::GetNetworkSecurityLevelCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5778 |
{
|
|
5779 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkSecurityLevelCancel called"));
|
|
5780 |
|
|
5781 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5782 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5783 |
return KErrNone;
|
|
5784 |
}
|
|
5785 |
|
|
5786 |
TInt CPhoneDMmTsy::NotifyNetworkSecurityLevelChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkSecurity* aSecurity)
|
|
5787 |
{
|
|
5788 |
|
|
5789 |
if (!iNotifyNetworkSecurityChange++)
|
|
5790 |
{
|
|
5791 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkSecurityLevelChange called"));
|
|
5792 |
|
|
5793 |
*aSecurity = DMMTSY_PHONE_NET_SECURITY;
|
|
5794 |
|
|
5795 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5796 |
}
|
|
5797 |
return KErrNone;
|
|
5798 |
}
|
|
5799 |
|
|
5800 |
TInt CPhoneDMmTsy::NotifyNetworkSecurityLevelChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5801 |
{
|
|
5802 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkSecurityLevelChangeCancel called"));
|
|
5803 |
|
|
5804 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5805 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5806 |
return KErrNone;
|
|
5807 |
}
|
|
5808 |
|
|
5809 |
TInt CPhoneDMmTsy::EnumerateUSimApplications(const TTsyReqHandle aTsyReqHandle, TInt* aCount, RMobilePhone::TAID* aActiveAID)
|
|
5810 |
{
|
|
5811 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateUSimApplications called"));
|
|
5812 |
|
|
5813 |
*aCount = DMMTSY_PHONE_USIM_COUNT;
|
|
5814 |
aActiveAID->Copy(DMMTSY_PHONE_USIM_AID);
|
|
5815 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5816 |
return KErrNone;
|
|
5817 |
}
|
|
5818 |
|
|
5819 |
TInt CPhoneDMmTsy::EnumerateUSimApplicationsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5820 |
{
|
|
5821 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateUSimApplicationsCancel called"));
|
|
5822 |
|
|
5823 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5824 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5825 |
return KErrNone;
|
|
5826 |
}
|
|
5827 |
|
|
5828 |
TInt CPhoneDMmTsy::SetUSimApplicationStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAID* aAID, RMobilePhone::TUSimAppAction* aAction)
|
|
5829 |
{
|
|
5830 |
LOGTEXT(_L8("CPhoneDMmTsy::SetUSimApplicationStatus called"));
|
|
5831 |
|
|
5832 |
if ((*aAction != DMMTSY_PHONE_USIM_ACTIVATE) ||
|
|
5833 |
(aAID->Compare(DMMTSY_PHONE_USIM_AID) !=0 ))
|
|
5834 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5835 |
else
|
|
5836 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5837 |
return KErrNone;
|
|
5838 |
}
|
|
5839 |
|
|
5840 |
TInt CPhoneDMmTsy::SetUSimApplicationStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5841 |
{
|
|
5842 |
LOGTEXT(_L8("CPhoneDMmTsy::SetUSimApplicationStatusCancel called"));
|
|
5843 |
|
|
5844 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5845 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5846 |
return KErrNone;
|
|
5847 |
}
|
|
5848 |
|
|
5849 |
|
|
5850 |
TInt CPhoneDMmTsy::GetUSimApplicationInfo(const TTsyReqHandle aTsyReqHandle, TInt* aIndex, RMobilePhone::TUSimApplicationInfoV2* aInfo)
|
|
5851 |
{
|
|
5852 |
|
|
5853 |
LOGTEXT(_L8("CPhoneDMmTsy::GetUSimApplicationInfo called"));
|
|
5854 |
|
|
5855 |
if(*aIndex != DMMTSY_PHONE_USIM_APPINDEX)
|
|
5856 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5857 |
else
|
|
5858 |
{
|
|
5859 |
aInfo->iLabel.Copy(DMMTSY_PHONE_USIM_APPLABEL);
|
|
5860 |
aInfo->iAID.Copy(DMMTSY_PHONE_USIM_AID);
|
|
5861 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5862 |
}
|
|
5863 |
return KErrNone;
|
|
5864 |
}
|
|
5865 |
|
|
5866 |
TInt CPhoneDMmTsy::GetUSimApplicationInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5867 |
{
|
|
5868 |
LOGTEXT(_L8("CPhoneDMmTsy::GetUSimApplicationInfoCancel called"));
|
|
5869 |
|
|
5870 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5871 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5872 |
return KErrNone;
|
|
5873 |
}
|
|
5874 |
|
|
5875 |
TInt CPhoneDMmTsy::NotifyUSimApplicationsInfoChange(const TTsyReqHandle aTsyReqHandle, TInt* aCount, RMobilePhone::TAID* aActiveAID)
|
|
5876 |
{
|
|
5877 |
if (!iNotifyUSimApplicationsInfoChange++)
|
|
5878 |
{
|
|
5879 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUSimApplicationsInfoChange called"));
|
|
5880 |
|
|
5881 |
aActiveAID->Copy(DMMTSY_PHONE_USIM_AID);
|
|
5882 |
*aCount = DMMTSY_PHONE_USIM_COUNT;
|
|
5883 |
|
|
5884 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5885 |
}
|
|
5886 |
return KErrNone;
|
|
5887 |
}
|
|
5888 |
|
|
5889 |
TInt CPhoneDMmTsy::NotifyUSimApplicationsInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5890 |
{
|
|
5891 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUSimApplicationsInfoChangeCancel called"));
|
|
5892 |
|
|
5893 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5894 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5895 |
return KErrNone;
|
|
5896 |
}
|
|
5897 |
|
|
5898 |
TInt CPhoneDMmTsy::GetUSimAppsSelectionMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TUSimSelectionMode* aMode)
|
|
5899 |
{
|
|
5900 |
LOGTEXT(_L8("CPhoneDMmTsy::GetUSimAppsSelectionMode called"));
|
|
5901 |
|
|
5902 |
*aMode = DMMTSY_PHONE_USIM_SELMODE;
|
|
5903 |
|
|
5904 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5905 |
return KErrNone;
|
|
5906 |
}
|
|
5907 |
|
|
5908 |
TInt CPhoneDMmTsy::SetUSimAppsSelectionMode(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TUSimSelectionMode* aMode)
|
|
5909 |
{
|
|
5910 |
LOGTEXT(_L8("CPhoneDMmTsy::SetUSimAppsSelectionMode called"));
|
|
5911 |
|
|
5912 |
if(*aMode != DMMTSY_PHONE_USIM_SELMODE)
|
|
5913 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
5914 |
else
|
|
5915 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5916 |
return KErrNone;
|
|
5917 |
}
|
|
5918 |
|
|
5919 |
TInt CPhoneDMmTsy::NotifyUSimAppsSelectionModeChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TUSimSelectionMode* aMode)
|
|
5920 |
{
|
|
5921 |
if (!iNotifyUSimAppsSelectionModeChange++)
|
|
5922 |
{
|
|
5923 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUSimAppsSelectionModeChange called"));
|
|
5924 |
|
|
5925 |
*aMode = DMMTSY_PHONE_USIM_SELMODE;
|
|
5926 |
|
|
5927 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5928 |
}
|
|
5929 |
return KErrNone;
|
|
5930 |
}
|
|
5931 |
|
|
5932 |
TInt CPhoneDMmTsy::NotifyUSimAppsSelectionModeChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5933 |
{
|
|
5934 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyUSimAppsSelectionModeChangeCancel called"));
|
|
5935 |
|
|
5936 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5937 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5938 |
return KErrNone;
|
|
5939 |
}
|
|
5940 |
|
|
5941 |
TInt CPhoneDMmTsy::GetMailboxNumbers(const TTsyReqHandle aTsyReqHandle, TDes8 *aMailBox)
|
|
5942 |
{
|
|
5943 |
RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg *mailboxPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg*, aMailBox);
|
|
5944 |
RMobilePhone::TMobilePhoneVoicemailIdsV3 &mailbox = (*mailboxPckg)();
|
|
5945 |
|
|
5946 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMailboxNumbers called"));
|
|
5947 |
mailbox.iVoice = DMMTSY_PHONE_MAILBOXNUMBER_VOICE;
|
|
5948 |
mailbox.iData = DMMTSY_PHONE_MAILBOXNUMBER_DATA;
|
|
5949 |
mailbox.iFax = DMMTSY_PHONE_MAILBOXNUMBER_FAX;
|
|
5950 |
mailbox.iOther = DMMTSY_PHONE_MAILBOXNUMBER_OTHER;
|
|
5951 |
|
|
5952 |
if(mailbox.ExtensionId() == KEtelExtMultimodeV8 )
|
|
5953 |
{
|
|
5954 |
RMobilePhone::TMobilePhoneVoicemailIdsV8Pckg *mailboxV8Pckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneVoicemailIdsV8Pckg*, aMailBox);
|
|
5955 |
RMobilePhone::TMobilePhoneVoicemailIdsV8 &mailboxV8 = (*mailboxV8Pckg)();
|
|
5956 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMailboxNumbers V8 class is called"));
|
|
5957 |
mailboxV8.iVideo = DMMTSY_PHONE_MAILBOXNUMBER_VIDEO;
|
|
5958 |
}
|
|
5959 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5960 |
return KErrNone;
|
|
5961 |
}
|
|
5962 |
|
|
5963 |
|
|
5964 |
TInt CPhoneDMmTsy::GetMailboxNumbersCancel(const TTsyReqHandle aTsyReqHandle)
|
|
5965 |
{
|
|
5966 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMailboxNumbersCancel called"));
|
|
5967 |
RemoveDelayedReq(aTsyReqHandle);
|
|
5968 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
5969 |
return KErrNone;
|
|
5970 |
}
|
|
5971 |
|
|
5972 |
TInt CPhoneDMmTsy::NotifyMailboxNumbersChange(const TTsyReqHandle aTsyReqHandle, TDes8 *aMailBox)
|
|
5973 |
|
|
5974 |
{
|
|
5975 |
RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg *mailboxPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneVoicemailIdsV3Pckg*, aMailBox);
|
|
5976 |
RMobilePhone::TMobilePhoneVoicemailIdsV3 &mailbox = (*mailboxPckg)();
|
|
5977 |
|
|
5978 |
if (!iNotifyMailBoxNumbersChange++)
|
|
5979 |
{
|
|
5980 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMailboxNumbersChange called"));
|
|
5981 |
mailbox.iVoice = DMMTSY_PHONE_MAILBOXNUMBER_VOICE;
|
|
5982 |
mailbox.iData = DMMTSY_PHONE_MAILBOXNUMBER_DATA;
|
|
5983 |
mailbox.iFax = DMMTSY_PHONE_MAILBOXNUMBER_FAX;
|
|
5984 |
mailbox.iOther = DMMTSY_PHONE_MAILBOXNUMBER_OTHER;
|
|
5985 |
|
|
5986 |
if(mailbox.ExtensionId() == KEtelExtMultimodeV8)
|
|
5987 |
{
|
|
5988 |
RMobilePhone::TMobilePhoneVoicemailIdsV8Pckg *mailboxPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneVoicemailIdsV8Pckg*, aMailBox);
|
|
5989 |
RMobilePhone::TMobilePhoneVoicemailIdsV8 &mailbox = (*mailboxPckg)();
|
|
5990 |
mailbox.iVideo = DMMTSY_PHONE_MAILBOXNUMBER_VIDEO;
|
|
5991 |
iNotifyMailBoxNumbersChange=0;
|
|
5992 |
}
|
|
5993 |
AddDelayedReq(aTsyReqHandle,this);
|
|
5994 |
}
|
|
5995 |
else
|
|
5996 |
{
|
|
5997 |
iNotifyMailBoxNumbersChange=0;
|
|
5998 |
}
|
|
5999 |
|
|
6000 |
return KErrNone;
|
|
6001 |
}
|
|
6002 |
|
|
6003 |
TInt CPhoneDMmTsy::NotifyMailboxNumbersChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6004 |
{
|
|
6005 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMailboxNumbersChangeCancel called"));
|
|
6006 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6007 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6008 |
return KErrNone;
|
|
6009 |
}
|
|
6010 |
|
|
6011 |
TInt CPhoneDMmTsy::NotifyMmsUpdate(const TTsyReqHandle aTsyReqHandle, TDes8 *aNotification)
|
|
6012 |
{
|
|
6013 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMmsUpdate called"));
|
|
6014 |
|
|
6015 |
RMobilePhone::TMmsNotificationV3Pckg *mmsPckg = REINTERPRET_CAST(RMobilePhone::TMmsNotificationV3Pckg *, aNotification);
|
|
6016 |
RMobilePhone::TMmsNotificationV3 &mms = (*mmsPckg)();
|
|
6017 |
|
|
6018 |
if (!iNotifyMmsUpdate++)
|
|
6019 |
{
|
|
6020 |
mms.iSpace = DMMTSY_PHONE_MMS_UPDATE_SPACE;
|
|
6021 |
mms.iNotification = DMMTSY_PHONE_MMS_UPDATE_NOTIFICATION;
|
|
6022 |
mms.iMmsStatus = DMMTSY_PHONE_MMS_UPDATE_STATUS;
|
|
6023 |
mms.iImplementation = DMMTSY_PHONE_MMS_UPDATE_IMPLEMENTATION;
|
|
6024 |
mms.iNotify = DMMTSY_PHONE_MMS_UPDATE_NOTIFY;
|
|
6025 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6026 |
}
|
|
6027 |
return KErrNone;
|
|
6028 |
}
|
|
6029 |
|
|
6030 |
TInt CPhoneDMmTsy::GetAirTimeDuration(const TTsyReqHandle aTsyReqHandle, TTimeIntervalSeconds* aTime)
|
|
6031 |
{
|
|
6032 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAirTimeDuration called"));
|
|
6033 |
*aTime=DMMTSY_AIR_TIME_DURATION1;
|
|
6034 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6035 |
return KErrNone;
|
|
6036 |
}
|
|
6037 |
|
|
6038 |
TInt CPhoneDMmTsy::NotifyAirTimeDurationChange(const TTsyReqHandle aTsyReqHandle, TTimeIntervalSeconds* aTime)
|
|
6039 |
{
|
|
6040 |
if (!iNotifyAirTimeChangeChange++)
|
|
6041 |
{
|
|
6042 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAirTimeDurationChange called"));
|
|
6043 |
*aTime=DMMTSY_AIR_TIME_DURATION2;
|
|
6044 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6045 |
}
|
|
6046 |
return KErrNone;
|
|
6047 |
}
|
|
6048 |
|
|
6049 |
TInt CPhoneDMmTsy::NotifyAirTimeDurationChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6050 |
{
|
|
6051 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAirTimeDurationChangeCancel called"));
|
|
6052 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6053 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6054 |
return KErrNone;
|
|
6055 |
}
|
|
6056 |
|
|
6057 |
TInt CPhoneDMmTsy::TerminateAllCalls(const TTsyReqHandle aTsyReqHandle)
|
|
6058 |
{
|
|
6059 |
LOGTEXT(_L8("CPhoneDMmTsy::TerminateAllCalls called"));
|
|
6060 |
if (!iTerminateAllCalls++)
|
|
6061 |
{
|
|
6062 |
//Just return KErrNone
|
|
6063 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6064 |
}
|
|
6065 |
return KErrNone;
|
|
6066 |
}
|
|
6067 |
|
|
6068 |
TInt CPhoneDMmTsy::TerminateAllCallsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6069 |
{
|
|
6070 |
LOGTEXT(_L8("CPhoneDMmTsy::TerminateAllCallsCancel called"));
|
|
6071 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6072 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6073 |
return KErrNone;
|
|
6074 |
}
|
|
6075 |
|
|
6076 |
TInt CPhoneDMmTsy::TerminateActiveCalls(const TTsyReqHandle aTsyReqHandle)
|
|
6077 |
{
|
|
6078 |
LOGTEXT(_L8("CPhoneDMmTsy::TerminateActiveCalls called"));
|
|
6079 |
if (!iTerminateActiveCalls++)
|
|
6080 |
{
|
|
6081 |
//Just return KErrNone
|
|
6082 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6083 |
}
|
|
6084 |
return KErrNone;
|
|
6085 |
}
|
|
6086 |
|
|
6087 |
TInt CPhoneDMmTsy::TerminateActiveCallsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6088 |
{
|
|
6089 |
LOGTEXT(_L8("CPhoneDMmTsy::TerminateActiveCallsCancel called"));
|
|
6090 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6091 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6092 |
return KErrNone;
|
|
6093 |
}
|
|
6094 |
|
|
6095 |
TInt CPhoneDMmTsy::NotifySendNetworkServiceRequest(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, TDes8* aRequestComplete)
|
|
6096 |
{
|
|
6097 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySendNetworkServiceRequest called"));
|
|
6098 |
if (!iNotifySendNetworkServiceRequest++)
|
|
6099 |
{
|
|
6100 |
RMobilePhone::TMobilePhoneSendSSRequestV3Pckg* ssRequestPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneSendSSRequestV3Pckg*,aRequestComplete);
|
|
6101 |
RMobilePhone::TMobilePhoneSendSSRequestV3& ssRequest = (*ssRequestPckg)();
|
|
6102 |
|
|
6103 |
if(*aOperation!=DMMTSY_PHONE_NOTIFY_SERVICEREQUEST ||
|
|
6104 |
ssRequest.ExtensionId()!=KETelExtMultimodeV3)
|
|
6105 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6106 |
else
|
|
6107 |
{
|
|
6108 |
ssRequest.iOpCode = DMMTSY_PHONE_NOTIFY_OPCODE;
|
|
6109 |
ssRequest.iAdditionalInfo = DMMTSY_PHONE_NOTIFY_ADDINFO;
|
|
6110 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6111 |
}
|
|
6112 |
}
|
|
6113 |
return KErrNone;
|
|
6114 |
}
|
|
6115 |
|
|
6116 |
TInt CPhoneDMmTsy::NotifySendNetworkServiceRequestCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6117 |
{
|
|
6118 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySendNetworkServiceRequestCancel called"));
|
|
6119 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6120 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6121 |
return KErrNone;
|
|
6122 |
}
|
|
6123 |
|
|
6124 |
TInt CPhoneDMmTsy::NotifyAllSendNetworkServiceRequest(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNotifySendSSOperation* aOperation, TDes8* aRequestComplete)
|
|
6125 |
{
|
|
6126 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAllSendNetworkServiceRequest called"));
|
|
6127 |
|
|
6128 |
RMobilePhone::TMobilePhoneSendSSRequestV3Pckg* ssRequestPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneSendSSRequestV3Pckg*,aRequestComplete);
|
|
6129 |
RMobilePhone::TMobilePhoneSendSSRequestV3& ssRequest = (*ssRequestPckg)();
|
|
6130 |
|
|
6131 |
if(ssRequest.ExtensionId()!=KETelExtMultimodeV3)
|
|
6132 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6133 |
else
|
|
6134 |
{
|
|
6135 |
//Return the error for some Invoke operation, like received from network.
|
|
6136 |
*aOperation = DMMTSY_PHONE_NOTIFY_SERVICEREQUEST_ERROR;
|
|
6137 |
//Return result problem code (return Mistyped Parameter)
|
|
6138 |
ssRequest.iOpCode = DMMTSY_PHONE_NOTIFY_RETURN_ERROR_PROBLEM_CODE;
|
|
6139 |
ssRequest.iAdditionalInfo = DMMTSY_PHONE_NOTIFY_ADDINFO;
|
|
6140 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6141 |
}
|
|
6142 |
|
|
6143 |
return KErrNone;
|
|
6144 |
}
|
|
6145 |
|
|
6146 |
TInt CPhoneDMmTsy::NotifyAllSendNetworkServiceRequestCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6147 |
{
|
|
6148 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAllSendNetworkServiceRequestCancel called"));
|
|
6149 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6150 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6151 |
return KErrNone;
|
|
6152 |
}
|
|
6153 |
|
|
6154 |
TInt CPhoneDMmTsy::ClearBlacklist(const TTsyReqHandle aTsyReqHandle)
|
|
6155 |
{
|
|
6156 |
LOGTEXT(_L8("CPhoneDMmTsy::ClearBlacklist called"));
|
|
6157 |
if (!iClearBlacklist++)
|
|
6158 |
{
|
|
6159 |
//Just return KErrNone
|
|
6160 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6161 |
}
|
|
6162 |
return KErrNone;
|
|
6163 |
}
|
|
6164 |
|
|
6165 |
TInt CPhoneDMmTsy::ClearBlacklistCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6166 |
{
|
|
6167 |
LOGTEXT(_L8("CPhoneDMmTsy::ClearBlacklistCancel called"));
|
|
6168 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6169 |
return KErrNone;
|
|
6170 |
}
|
|
6171 |
|
|
6172 |
TInt CPhoneDMmTsy::NotifyDTMFEvent(const TTsyReqHandle aTsyReqHandle,RMobilePhone::TMobilePhoneDTMFEvent* aEvent)
|
|
6173 |
{
|
|
6174 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDTMFEvent called"));
|
|
6175 |
if (!iNotifyDTMFEvent++)
|
|
6176 |
{
|
|
6177 |
*aEvent = DMMTSY_PHONE_NOTIFY_DTMFEVENT_ON;
|
|
6178 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6179 |
}
|
|
6180 |
return KErrNone;
|
|
6181 |
}
|
|
6182 |
|
|
6183 |
TInt CPhoneDMmTsy::NotifyDTMFEventCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6184 |
{
|
|
6185 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyDTMFEventCancel called"));
|
|
6186 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6187 |
return KErrNone;
|
|
6188 |
}
|
|
6189 |
|
|
6190 |
TInt CPhoneDMmTsy::GetPersonalisationCaps(const TTsyReqHandle aTsyReqHandle, TUint32* aCaps)
|
|
6191 |
{
|
|
6192 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPersonalisationCaps called"));
|
|
6193 |
*aCaps = (DMMTSY_PHONE_PERS_CAPS_SERV_PROV | DMMTSY_PHONE_PERS_CAPS_NETWORK);
|
|
6194 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6195 |
return KErrNone;
|
|
6196 |
}
|
|
6197 |
|
|
6198 |
TInt CPhoneDMmTsy::GetPersonalisationCapsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6199 |
{
|
|
6200 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPersonalisationCapsCancel called"));
|
|
6201 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6202 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6203 |
return KErrNone;
|
|
6204 |
}
|
|
6205 |
|
|
6206 |
TInt CPhoneDMmTsy::GetPersonalisationStatus(const TTsyReqHandle aTsyReqHandle, TUint32* aPersSchemes)
|
|
6207 |
{
|
|
6208 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPersonalisationStatus called"));
|
|
6209 |
*aPersSchemes = (DMMTSY_PHONE_PERS_GET_NETWORK_SUB | DMMTSY_PHONE_PERS_GET_CORPORATE);
|
|
6210 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6211 |
return KErrNone;
|
|
6212 |
}
|
|
6213 |
|
|
6214 |
TInt CPhoneDMmTsy::GetPersonalisationStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6215 |
{
|
|
6216 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPersonalisationStatusCancel called"));
|
|
6217 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6218 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6219 |
return KErrNone;
|
|
6220 |
}
|
|
6221 |
|
|
6222 |
TInt CPhoneDMmTsy::SetPersonalisationStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhonePersonalisation* aPersSchemes, TDes* aPersCode)
|
|
6223 |
{
|
|
6224 |
LOGTEXT(_L8("CPhoneDMmTsy::SetPersonalisationStatus called"));
|
|
6225 |
if((*aPersSchemes == DMMTSY_PHONE_PERS_SET_USIM) &&
|
|
6226 |
(*aPersCode == DMMTSY_PHONE_PERS_SET_CODE))
|
|
6227 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6228 |
else
|
|
6229 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6230 |
return KErrNone;
|
|
6231 |
}
|
|
6232 |
|
|
6233 |
TInt CPhoneDMmTsy::SetPersonalisationStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6234 |
{
|
|
6235 |
LOGTEXT(_L8("CPhoneDMmTsy::SetPersonalisationStatusCancel called"));
|
|
6236 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6237 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6238 |
return KErrNone;
|
|
6239 |
}
|
|
6240 |
|
|
6241 |
TInt CPhoneDMmTsy::GetCurrentNetworkName(const TTsyReqHandle aTsyReqHandle, TDes8* aNetworkName, TDes8* aLocInfo)
|
|
6242 |
{
|
|
6243 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetworkName called"));
|
|
6244 |
|
|
6245 |
RMobilePhone::TMobilePhoneNetworkNameV3Pckg* networkNamePckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneNetworkNameV3Pckg*,aNetworkName);
|
|
6246 |
RMobilePhone::TMobilePhoneNetworkNameV3& networkName = (*networkNamePckg)();
|
|
6247 |
|
|
6248 |
RMobilePhone::TMobilePhoneOPlmnV3Pckg* plmnPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneOPlmnV3Pckg*,aLocInfo);
|
|
6249 |
RMobilePhone::TMobilePhoneOPlmnV3& plmn = (*plmnPckg)();
|
|
6250 |
|
|
6251 |
if(networkName.ExtensionId() != KETelExtMultimodeV3 ||
|
|
6252 |
plmn.ExtensionId() != KETelExtMultimodeV3)
|
|
6253 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6254 |
else
|
|
6255 |
{
|
|
6256 |
//Fill TMobilePhoneNetworkNameV3
|
|
6257 |
networkName.iLongName = DMMTSY_PHONE_HOME_NETWORK_LONG_NAME;
|
|
6258 |
networkName.iShortName = DMMTSY_PHONE_HOME_NETWORK_SHORT_NAME;
|
|
6259 |
networkName.iOtherNames = DMMTSY_PHONE_HOME_NETWORK_OTHER_NAMES;
|
|
6260 |
//Fill TMobilePhoneOPlmnV3
|
|
6261 |
plmn.iCountryCode = DMMTSY_PHONE_COUNTRY_ID;
|
|
6262 |
plmn.iNetworkId = DMMTSY_PHONE_NETWORK_ID;
|
|
6263 |
plmn.iPNNid = DMMTSY_PHONE_HOME_NETWORK_NAME_LOC_ID;
|
|
6264 |
plmn.iFirstLocationAreaCode = DMMTSY_PHONE_HOME_NETWORK_FIRST_ID;
|
|
6265 |
plmn.iLastLocationAreaCode = DMMTSY_PHONE_HOME_NETWORK_LAST_ID;
|
|
6266 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6267 |
}
|
|
6268 |
return KErrNone;
|
|
6269 |
}
|
|
6270 |
|
|
6271 |
TInt CPhoneDMmTsy::GetCurrentNetworkNameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6272 |
{
|
|
6273 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentNetworkNameCancel called"));
|
|
6274 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6275 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6276 |
return KErrNone;
|
|
6277 |
}
|
|
6278 |
|
|
6279 |
TInt CPhoneDMmTsy::GetPreferredNetworksPhase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
6280 |
{
|
|
6281 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredNetworksPhase1 called"));
|
|
6282 |
TInt ret=KErrNone;
|
|
6283 |
TInt leaveCode=KErrNone;
|
|
6284 |
TRAP(leaveCode, ret=ProcessGetPreferredNetworksPhase1L(aTsyReqHandle, aClient, aBufSize););
|
|
6285 |
if (leaveCode != KErrNone)
|
|
6286 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
6287 |
return ret;
|
|
6288 |
}
|
|
6289 |
|
|
6290 |
TInt CPhoneDMmTsy::ProcessGetPreferredNetworksPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
6291 |
RMobilePhone::TClientId* aClient,
|
|
6292 |
TInt* aBufSize)
|
|
6293 |
{
|
|
6294 |
// retrieve stored networks from USIM,
|
|
6295 |
// store each entry.
|
|
6296 |
// stream the list and then return size of this buffer to client
|
|
6297 |
CMobilePhoneStoredNetworkList* list=CMobilePhoneStoredNetworkList::NewL();
|
|
6298 |
CleanupStack::PushL(list);
|
|
6299 |
|
|
6300 |
RMobilePhone::TMobilePreferredNetworkEntryV3 entry;
|
|
6301 |
|
|
6302 |
// fill up an example list
|
|
6303 |
for (TInt index=0; index < DMMTSY_PHONE_NTWK_LIST_ENTRIES; index++)
|
|
6304 |
{
|
|
6305 |
switch (index)
|
|
6306 |
{
|
|
6307 |
case 0:
|
|
6308 |
entry.iAccess = DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_GSM;
|
|
6309 |
entry.iUserDefined = DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_FALSE;
|
|
6310 |
entry.iCountryCode = DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID1;
|
|
6311 |
entry.iNetworkId = DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1;
|
|
6312 |
break;
|
|
6313 |
case 1:
|
|
6314 |
entry.iAccess = DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_GSMC;
|
|
6315 |
entry.iUserDefined = DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_FALSE;
|
|
6316 |
entry.iCountryCode = DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2;
|
|
6317 |
entry.iNetworkId = DMMTSY_PHONE_NTWK_LIST_NETWORK_ID2;
|
|
6318 |
break;
|
|
6319 |
case 2:
|
|
6320 |
default:
|
|
6321 |
entry.iAccess = DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_UTRAN;
|
|
6322 |
entry.iUserDefined = DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_TRUE;
|
|
6323 |
entry.iCountryCode = DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2;
|
|
6324 |
entry.iNetworkId = DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1;
|
|
6325 |
break;
|
|
6326 |
case 3:
|
|
6327 |
entry.iAccess = DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_WLAN;
|
|
6328 |
entry.iUserDefined = DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_TRUE;
|
|
6329 |
entry.iCountryCode = DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2;
|
|
6330 |
entry.iNetworkId = DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1;
|
|
6331 |
break;
|
|
6332 |
|
|
6333 |
}
|
|
6334 |
// Add the entry into the list, at the next empty location
|
|
6335 |
list->AddEntryL(entry);
|
|
6336 |
}
|
|
6337 |
|
|
6338 |
// Store the streamed list and the client ID
|
|
6339 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
6340 |
CleanupStack::PushL(read);
|
|
6341 |
|
|
6342 |
read->iListBuf = list->StoreLC();
|
|
6343 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
6344 |
|
|
6345 |
iGetPreferredNetworks->AppendL(read);
|
|
6346 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
6347 |
|
|
6348 |
// return the CBufBase’s size to client
|
|
6349 |
*aBufSize=(read->iListBuf)->Size();
|
|
6350 |
|
|
6351 |
// Complete first phase of list retrieval
|
|
6352 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6353 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
6354 |
return KErrNone;
|
|
6355 |
}
|
|
6356 |
|
|
6357 |
|
|
6358 |
|
|
6359 |
TInt CPhoneDMmTsy::GetPreferredNetworksPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
6360 |
{
|
|
6361 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredNetworksPhase2 called"));
|
|
6362 |
CListReadAllAttempt* read=NULL;
|
|
6363 |
// Find the get detected network attempt from this client
|
|
6364 |
for (TInt i=0; i<iGetPreferredNetworks->Count(); ++i)
|
|
6365 |
{
|
|
6366 |
read = iGetPreferredNetworks->At(i);
|
|
6367 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
6368 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
6369 |
{
|
|
6370 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
6371 |
// Copy the streamed list to the client
|
|
6372 |
aBuf->Copy(bufPtr);
|
|
6373 |
delete read;
|
|
6374 |
iGetPreferredNetworks->Delete(i);
|
|
6375 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
6376 |
return KErrNone;
|
|
6377 |
}
|
|
6378 |
}
|
|
6379 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
6380 |
return KErrNotFound;
|
|
6381 |
}
|
|
6382 |
|
|
6383 |
TInt CPhoneDMmTsy::GetPreferredNetworksCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6384 |
{
|
|
6385 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredNetworksPhaseCancel called"));
|
|
6386 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6387 |
// Remove the read all attempt from iGetPreferredNetworks
|
|
6388 |
CListReadAllAttempt* read=NULL;
|
|
6389 |
for (TInt i=0; i<iGetPreferredNetworks->Count(); ++i)
|
|
6390 |
{
|
|
6391 |
read = iGetPreferredNetworks->At(i);
|
|
6392 |
if (read->iReqHandle == aTsyReqHandle)
|
|
6393 |
{
|
|
6394 |
delete read;
|
|
6395 |
iGetPreferredNetworks->Delete(i);
|
|
6396 |
break;
|
|
6397 |
}
|
|
6398 |
}
|
|
6399 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6400 |
return KErrNone;
|
|
6401 |
}
|
|
6402 |
|
|
6403 |
TInt CPhoneDMmTsy::NotifyMmsUpdateCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6404 |
{
|
|
6405 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMmsUpdateCancel called"));
|
|
6406 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6407 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6408 |
return KErrNone;
|
|
6409 |
}
|
|
6410 |
|
|
6411 |
TInt CPhoneDMmTsy::SetMmsUserConnParams(const TTsyReqHandle aTsyReqHandle, TDes8* aConnectivity)
|
|
6412 |
{
|
|
6413 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMmsUserConnParams called"));
|
|
6414 |
if(aConnectivity->Compare(DMMTSY_PHONE_MMS_USER_CONN_PARAMS) == 0 )
|
|
6415 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6416 |
else
|
|
6417 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
6418 |
return KErrNone;
|
|
6419 |
}
|
|
6420 |
|
|
6421 |
TInt CPhoneDMmTsy::SetMmsUserConnParamsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6422 |
{
|
|
6423 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMmsUserConnParamsCancel called"));
|
|
6424 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6425 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6426 |
return KErrNone;
|
|
6427 |
}
|
|
6428 |
|
|
6429 |
TInt CPhoneDMmTsy::SetMmsUserPreferences(const TTsyReqHandle aTsyReqHandle, TDes8* aPreferences)
|
|
6430 |
{
|
|
6431 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMmsUserPreferences called"));
|
|
6432 |
if(aPreferences->Compare(DMMTSY_PHONE_MMS_USER_PREF_PARAMS) == 0 )
|
|
6433 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6434 |
else
|
|
6435 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
6436 |
return KErrNone;
|
|
6437 |
}
|
|
6438 |
|
|
6439 |
TInt CPhoneDMmTsy::SetMmsUserPreferencesCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6440 |
{
|
|
6441 |
LOGTEXT(_L8("CPhoneDMmTsy::SetMmsUserPreferencesCancel called"));
|
|
6442 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6443 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6444 |
return KErrNone;
|
|
6445 |
}
|
|
6446 |
|
|
6447 |
TInt CPhoneDMmTsy::GetMmsConfig(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMmsConnParams aType, TDes8* aConnectivity)
|
|
6448 |
|
|
6449 |
{
|
|
6450 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMmsConfig called"));
|
|
6451 |
if (aType == DMMTSY_PHONE_MMS_USER_CONN_PARAMS_TYPE )
|
|
6452 |
{
|
|
6453 |
*aConnectivity = DMMTSY_PHONE_MMS_USER_CONN_PARAMS;
|
|
6454 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6455 |
}
|
|
6456 |
else
|
|
6457 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
6458 |
return KErrNone;
|
|
6459 |
}
|
|
6460 |
|
|
6461 |
TInt CPhoneDMmTsy::GetMmsConfigCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6462 |
{
|
|
6463 |
LOGTEXT(_L8("CPhoneDMmTsy::GetMmsConfigCancel called"));
|
|
6464 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6465 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6466 |
return KErrNone;
|
|
6467 |
}
|
|
6468 |
|
|
6469 |
TInt CPhoneDMmTsy::NotifyMmsConfig(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMmsConnParams aType, TDes8* aConnectivity)
|
|
6470 |
|
|
6471 |
{
|
|
6472 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMmsConfig called"));
|
|
6473 |
if(!iNotifyMmsConfig++)
|
|
6474 |
{
|
|
6475 |
if (aType == DMMTSY_PHONE_MMS_USER_CONN_PARAMS_TYPE )
|
|
6476 |
{
|
|
6477 |
*aConnectivity = DMMTSY_PHONE_MMS_USER_CONN_PARAMS;
|
|
6478 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6479 |
}
|
|
6480 |
else
|
|
6481 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
6482 |
}
|
|
6483 |
return KErrNone;
|
|
6484 |
}
|
|
6485 |
|
|
6486 |
TInt CPhoneDMmTsy::NotifyMmsConfigCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6487 |
{
|
|
6488 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMmsConfigCancel called"));
|
|
6489 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6490 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6491 |
return KErrNone;
|
|
6492 |
}
|
|
6493 |
|
|
6494 |
TInt CPhoneDMmTsy::GetHomeNetworkSearchPeriod(const TTsyReqHandle aTsyReqHandle, TInt* aSearchIntv)
|
|
6495 |
{
|
|
6496 |
LOGTEXT(_L8("CPhoneDMmTsy::GetHomeNetworkSearchPeriod called"));
|
|
6497 |
*aSearchIntv = DMMTSY_PHONE_HOME_NETWORK_SEARCHINTV;
|
|
6498 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6499 |
return KErrNone;
|
|
6500 |
|
|
6501 |
}
|
|
6502 |
|
|
6503 |
TInt CPhoneDMmTsy::GetHomeNetworkSearchPeriodCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6504 |
{
|
|
6505 |
LOGTEXT(_L8("CPhoneDMmTsy::GetHomeNetworkSearchPeriodCancel called"));
|
|
6506 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6507 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6508 |
return KErrNone;
|
|
6509 |
}
|
|
6510 |
|
|
6511 |
TInt CPhoneDMmTsy::GetLastUsedAccessTechnology(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneNetworkAccess* aAccessTech)
|
|
6512 |
{
|
|
6513 |
LOGTEXT(_L8("CPhoneDMmTsy::GetLastUsedAccessTechnology called"));
|
|
6514 |
*aAccessTech = DMMTSY_PHONE_LAST_USED_ACCESS_TECH;
|
|
6515 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6516 |
return KErrNone;
|
|
6517 |
}
|
|
6518 |
|
|
6519 |
TInt CPhoneDMmTsy::GetLastUsedAccessTechnologyCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6520 |
{
|
|
6521 |
LOGTEXT(_L8("CPhoneDMmTsy::GetLastUsedAccessTechnologyCancel called"));
|
|
6522 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6523 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6524 |
return KErrNone;
|
|
6525 |
}
|
|
6526 |
|
|
6527 |
TInt CPhoneDMmTsy::GetNetworkInvScanSetting(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneInvestigationScan* aSetting)
|
|
6528 |
{
|
|
6529 |
LOGTEXT(_L8("CPhoneDMmTsy::GetNetworkInvScanSetting called"));
|
|
6530 |
*aSetting = DMMTSY_PHONE_NETWORK_INV_SCAN;
|
|
6531 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6532 |
return KErrNone;
|
|
6533 |
}
|
|
6534 |
|
|
6535 |
TInt CPhoneDMmTsy::NotifyNetworkInvScanChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneInvestigationScan* aSetting)
|
|
6536 |
{
|
|
6537 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkInvScanChange called"));
|
|
6538 |
if(!iNotifyNetworkInvScanChange++)
|
|
6539 |
{
|
|
6540 |
*aSetting = DMMTSY_PHONE_NETWORK_INV_SCAN;
|
|
6541 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6542 |
}
|
|
6543 |
return KErrNone;
|
|
6544 |
}
|
|
6545 |
|
|
6546 |
TInt CPhoneDMmTsy::NotifyNetworkInvScanChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6547 |
{
|
|
6548 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkInvScanChangeCancel called"));
|
|
6549 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6550 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6551 |
return KErrNone;
|
|
6552 |
}
|
|
6553 |
|
|
6554 |
TInt CPhoneDMmTsy::NotifyNetworkInvScanEvent(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneInvestigationScanEvent* aEvent)
|
|
6555 |
{
|
|
6556 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkInvScanEvent called"));
|
|
6557 |
if(!iNotifyNetworkInvScanEvent++)
|
|
6558 |
{
|
|
6559 |
*aEvent = DMMTSY_PHONE_NETWORK_INV_SCAN_EVENT;
|
|
6560 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6561 |
}
|
|
6562 |
return KErrNone;
|
|
6563 |
}
|
|
6564 |
|
|
6565 |
TInt CPhoneDMmTsy::NotifyNetworkInvScanEventCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6566 |
{
|
|
6567 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyNetworkInvScanEventCancel called"));
|
|
6568 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6569 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6570 |
return KErrNone;
|
|
6571 |
}
|
|
6572 |
|
|
6573 |
TInt CPhoneDMmTsy::GetCallForwardingIndicator(const TTsyReqHandle aTsyReqHandle, TDes8* aIndicator)
|
|
6574 |
{
|
|
6575 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallForwardingIndicator called"));
|
|
6576 |
|
|
6577 |
RMobilePhone::TMobilePhoneCFUIndicatorV3Pckg* indicatorPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFUIndicatorV3Pckg*, aIndicator);
|
|
6578 |
RMobilePhone::TMobilePhoneCFUIndicatorV3& indicator = (*indicatorPckg)();
|
|
6579 |
if( indicator.ExtensionId() == KETelExtMultimodeV3 )
|
|
6580 |
{
|
|
6581 |
indicator.iIndicator = DMMTSY_PHONE_CFU_INDICATOR;
|
|
6582 |
}
|
|
6583 |
else if(indicator.ExtensionId() == KEtelExtMultimodeV6 )
|
|
6584 |
{
|
|
6585 |
RMobilePhone::TMobilePhoneCFUIndicatorV6Pckg* indicatorPckg = REINTERPRET_CAST(RMobilePhone::TMobilePhoneCFUIndicatorV6Pckg*, aIndicator);
|
|
6586 |
RMobilePhone::TMobilePhoneCFUIndicatorV6& indicator = (*indicatorPckg)();
|
|
6587 |
indicator.iIndicator = DMMTSY_PHONE_CFU_INDICATOR1;
|
|
6588 |
indicator.iCFNumber.iTypeOfNumber = DMMTSY_PHONE_CFU_TON;
|
|
6589 |
indicator.iCFNumber.iNumberPlan = DMMTSY_PHONE_CFU_NPI;
|
|
6590 |
indicator.iCFNumber.iTelNumber = DMMTSY_PHONE_CFU_TELNUMBER;
|
|
6591 |
indicator.iMultipleSubscriberProfileID = DMMTSY_PHONE_CFU_MSP;
|
|
6592 |
}
|
|
6593 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6594 |
return KErrNone;
|
|
6595 |
}
|
|
6596 |
|
|
6597 |
TInt CPhoneDMmTsy::GetCallForwardingIndicatorCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6598 |
{
|
|
6599 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCallForwardingIndicatorCancel called"));
|
|
6600 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6601 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6602 |
return KErrNone;
|
|
6603 |
}
|
|
6604 |
|
|
6605 |
TInt CPhoneDMmTsy::GetCompMethodName(const TTsyReqHandle aTsyReqHandle, TUint aCmi, TDes* aAlphaTag)
|
|
6606 |
{
|
|
6607 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCompMethodName called"));
|
|
6608 |
if(aCmi != DMMTSY_PHONE_CB_COMP_METHOD_ID)
|
|
6609 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6610 |
else
|
|
6611 |
{
|
|
6612 |
*aAlphaTag = DMMTSY_PHONE_CB_ALPHA_TAG;
|
|
6613 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6614 |
}
|
|
6615 |
return KErrNone;
|
|
6616 |
}
|
|
6617 |
TInt CPhoneDMmTsy::GetCompMethodNameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6618 |
{
|
|
6619 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCompMethodNameCancel called"));
|
|
6620 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6621 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6622 |
return KErrNone;
|
|
6623 |
}
|
|
6624 |
|
|
6625 |
TInt CPhoneDMmTsy::EnumerateAPNEntries(const TTsyReqHandle aTsyReqHandle, TUint32* aIndex)
|
|
6626 |
{
|
|
6627 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateAPNEntries called"));
|
|
6628 |
*aIndex = DMMTSY_PHONE_APN_ENUMERATE;
|
|
6629 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6630 |
return KErrNone;
|
|
6631 |
}
|
|
6632 |
|
|
6633 |
TInt CPhoneDMmTsy::EnumerateAPNEntriesCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6634 |
{
|
|
6635 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateAPNEntriesCancel called"));
|
|
6636 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6637 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6638 |
return KErrNone;
|
|
6639 |
}
|
|
6640 |
|
|
6641 |
TInt CPhoneDMmTsy::GetAPNname(const TTsyReqHandle aTsyReqHandle, TUint32 aIndex, TDes8* aAPN)
|
|
6642 |
{
|
|
6643 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAPNname called"));
|
|
6644 |
|
|
6645 |
RMobilePhone::TAPNEntryV3Pckg* entryPckg = REINTERPRET_CAST(RMobilePhone::TAPNEntryV3Pckg*, aAPN);
|
|
6646 |
RMobilePhone::TAPNEntryV3& entry = (*entryPckg)();
|
|
6647 |
|
|
6648 |
switch(aIndex)
|
|
6649 |
{
|
|
6650 |
case 0:
|
|
6651 |
{
|
|
6652 |
entry.iApn.Append(DMMTSY_PHONE_APN_ENTRY1);
|
|
6653 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6654 |
}
|
|
6655 |
break;
|
|
6656 |
case 1:
|
|
6657 |
{
|
|
6658 |
entry.iApn.Append(DMMTSY_PHONE_APN_ENTRY2);
|
|
6659 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6660 |
}
|
|
6661 |
break;
|
|
6662 |
case 2:
|
|
6663 |
{
|
|
6664 |
entry.iApn.Append(DMMTSY_PHONE_APN_ENTRY3);
|
|
6665 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6666 |
}
|
|
6667 |
break;
|
|
6668 |
default:
|
|
6669 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6670 |
break;
|
|
6671 |
}
|
|
6672 |
return KErrNone;
|
|
6673 |
}
|
|
6674 |
|
|
6675 |
TInt CPhoneDMmTsy::GetAPNnameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6676 |
{
|
|
6677 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAPNnameCancel called"));
|
|
6678 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6679 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6680 |
return KErrNone;
|
|
6681 |
}
|
|
6682 |
|
|
6683 |
TInt CPhoneDMmTsy::AppendAPNName(const TTsyReqHandle aTsyReqHandle, TDes8* aAPN)
|
|
6684 |
{
|
|
6685 |
LOGTEXT(_L8("CPhoneDMmTsy::AppendAPNName called"));
|
|
6686 |
|
|
6687 |
RMobilePhone::TAPNEntryV3Pckg* entryPckg = REINTERPRET_CAST(RMobilePhone::TAPNEntryV3Pckg*, aAPN);
|
|
6688 |
RMobilePhone::TAPNEntryV3& entry = (*entryPckg)();
|
|
6689 |
|
|
6690 |
if ((entry.iApn.Length() > RMobilePhone::KMaxApnName) ||
|
|
6691 |
(entry.iApn != DMMTSY_PHONE_APN_ENTRY_TO_APPEND))
|
|
6692 |
{
|
|
6693 |
// Checking that the entry passed in is equal to DMMTSY_PHONE_APN_ENTRY_TO_APPEND
|
|
6694 |
// confirms that the APN entry has made it from the client to the TSY properly,
|
|
6695 |
// i.e the packaging etc. works.
|
|
6696 |
ReqCompleted(aTsyReqHandle, KErrBadName);
|
|
6697 |
}
|
|
6698 |
else
|
|
6699 |
{
|
|
6700 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6701 |
}
|
|
6702 |
return KErrNone;
|
|
6703 |
}
|
|
6704 |
|
|
6705 |
TInt CPhoneDMmTsy::AppendAPNNameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6706 |
{
|
|
6707 |
LOGTEXT(_L8("CPhoneDMmTsy::AppendAPNNameCancel called"));
|
|
6708 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6709 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6710 |
return KErrNone;
|
|
6711 |
}
|
|
6712 |
|
|
6713 |
TInt CPhoneDMmTsy::DeleteAPNName(const TTsyReqHandle aTsyReqHandle, TUint32 aIndex)
|
|
6714 |
{
|
|
6715 |
LOGTEXT(_L8("CPhoneDMmTsy::DeleteAPNName called"));
|
|
6716 |
if (aIndex > (DMMTSY_PHONE_APN_ENUMERATE-1))
|
|
6717 |
{
|
|
6718 |
ReqCompleted(aTsyReqHandle, KErrTooBig);
|
|
6719 |
}
|
|
6720 |
else
|
|
6721 |
{
|
|
6722 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6723 |
}
|
|
6724 |
return KErrNone;
|
|
6725 |
}
|
|
6726 |
|
|
6727 |
TInt CPhoneDMmTsy::DeleteAPNNameCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6728 |
{
|
|
6729 |
LOGTEXT(_L8("CPhoneDMmTsy::DeleteAPNNameCancel called"));
|
|
6730 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6731 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6732 |
return KErrNone;
|
|
6733 |
}
|
|
6734 |
|
|
6735 |
TInt CPhoneDMmTsy::NotifyAPNListChanged(const TTsyReqHandle aTsyReqHandle)
|
|
6736 |
{
|
|
6737 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAPNListChanged called"));
|
|
6738 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6739 |
return KErrNone;
|
|
6740 |
}
|
|
6741 |
|
|
6742 |
TInt CPhoneDMmTsy::NotifyAPNListChangedCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6743 |
{
|
|
6744 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAPNListChangedCancel called"));
|
|
6745 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6746 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6747 |
return KErrNone;
|
|
6748 |
}
|
|
6749 |
|
|
6750 |
TInt CPhoneDMmTsy::SetAPNControlListServiceStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAPNControlListServiceStatus aAPNControlListServiceStatus)
|
|
6751 |
{
|
|
6752 |
if ((aAPNControlListServiceStatus != DMMTSY_PHONE_APN_CONTROL_LIST_SERVICE_ENABLED) &&
|
|
6753 |
(aAPNControlListServiceStatus != DMMTSY_PHONE_APN_CONTROL_LIST_SERVICE_DISABLED))
|
|
6754 |
{
|
|
6755 |
ReqCompleted(aTsyReqHandle, KErrArgument);
|
|
6756 |
}
|
|
6757 |
else
|
|
6758 |
{
|
|
6759 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6760 |
}
|
|
6761 |
return KErrNone;
|
|
6762 |
}
|
|
6763 |
|
|
6764 |
TInt CPhoneDMmTsy::SetAPNControlListServiceStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6765 |
{
|
|
6766 |
LOGTEXT(_L8("CPhoneDMmTsy::SetAPNControlListServiceStatusCancel called"));
|
|
6767 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6768 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6769 |
return KErrNone;
|
|
6770 |
}
|
|
6771 |
|
|
6772 |
TInt CPhoneDMmTsy::GetAPNControlListServiceStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus)
|
|
6773 |
{
|
|
6774 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAPNControlListServiceStatus called"));
|
|
6775 |
*aAPNControlListServiceStatus = DMMTSY_PHONE_APN_CONTROL_LIST_SERVICE_DISABLED;
|
|
6776 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6777 |
return KErrNone;
|
|
6778 |
}
|
|
6779 |
|
|
6780 |
TInt CPhoneDMmTsy::GetAPNControlListServiceStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6781 |
{
|
|
6782 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAPNControlListServiceStatusCancel called"));
|
|
6783 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6784 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6785 |
return KErrNone;
|
|
6786 |
}
|
|
6787 |
|
|
6788 |
TInt CPhoneDMmTsy::NotifyAPNControlListServiceStatusChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus)
|
|
6789 |
{
|
|
6790 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAPNControlListServiceStatusChange called"));
|
|
6791 |
*aAPNControlListServiceStatus = DMMTSY_PHONE_APN_CONTROL_LIST_SERVICE_ENABLED;
|
|
6792 |
AddDelayedReq(aTsyReqHandle, this);
|
|
6793 |
return KErrNone;
|
|
6794 |
}
|
|
6795 |
|
|
6796 |
TInt CPhoneDMmTsy::NotifyAPNControlListServiceStatusChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
6797 |
{
|
|
6798 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAPNControlListServiceStatusChangeCancel called"));
|
|
6799 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6800 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
6801 |
return KErrNone;
|
|
6802 |
}
|
|
6803 |
|
|
6804 |
TInt CPhoneDMmTsy::StorePreferredNetworksList(const TTsyReqHandle aTsyReqHandle, TDes8* aBuffer)
|
|
6805 |
{
|
|
6806 |
LOGTEXT(_L8("CSmsMessagingDMmTsy::StorePreferredNetworksList called"));
|
|
6807 |
TInt ret=KErrNone;
|
|
6808 |
TInt leaveCode=KErrNone;
|
|
6809 |
TRAP(leaveCode, ret=ProcessStorePreferredNetworksListL(aTsyReqHandle, aBuffer););
|
|
6810 |
if (leaveCode != KErrNone)
|
|
6811 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
6812 |
return ret;
|
|
6813 |
};
|
|
6814 |
|
|
6815 |
TInt CPhoneDMmTsy::ProcessStorePreferredNetworksListL(TTsyReqHandle aTsyReqHandle, TDes8* aBuffer)
|
|
6816 |
{
|
|
6817 |
CMobilePhoneStoredNetworkList* list=CMobilePhoneStoredNetworkList::NewL();
|
|
6818 |
CleanupStack::PushL(list);
|
|
6819 |
|
|
6820 |
list->RestoreL(*aBuffer);
|
|
6821 |
|
|
6822 |
RMobilePhone::TMobilePreferredNetworkEntryV3 entry;
|
|
6823 |
|
|
6824 |
if (list->Enumerate() != DMMTSY_PHONE_NTWK_LIST_ENTRIES)
|
|
6825 |
{
|
|
6826 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6827 |
CleanupStack::PopAndDestroy(); // list
|
|
6828 |
return KErrNone;
|
|
6829 |
}
|
|
6830 |
|
|
6831 |
TInt error=KErrNone;
|
|
6832 |
TInt ret;
|
|
6833 |
for (TInt i=0; i<DMMTSY_PHONE_NTWK_LIST_ENTRIES; ++i)
|
|
6834 |
{
|
|
6835 |
TRAP(ret,entry=list->GetEntryL(i));
|
|
6836 |
if (ret != KErrNone)
|
|
6837 |
break;
|
|
6838 |
switch(i)
|
|
6839 |
{
|
|
6840 |
case 0:
|
|
6841 |
{
|
|
6842 |
if(entry.iAccess != DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_WLAN ||
|
|
6843 |
entry.iUserDefined != DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_TRUE ||
|
|
6844 |
entry.iCountryCode != DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2 ||
|
|
6845 |
entry.iNetworkId != DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1)
|
|
6846 |
error = KErrCorrupt;
|
|
6847 |
}
|
|
6848 |
|
|
6849 |
break;
|
|
6850 |
case 1:
|
|
6851 |
{
|
|
6852 |
if(entry.iAccess != DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_UTRAN ||
|
|
6853 |
entry.iUserDefined != DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_TRUE ||
|
|
6854 |
entry.iCountryCode != DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2 ||
|
|
6855 |
entry.iNetworkId != DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1)
|
|
6856 |
error = KErrCorrupt;
|
|
6857 |
}
|
|
6858 |
|
|
6859 |
break;
|
|
6860 |
case 2:
|
|
6861 |
{
|
|
6862 |
if(entry.iAccess != DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_GSMC ||
|
|
6863 |
entry.iUserDefined != DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_FALSE ||
|
|
6864 |
entry.iCountryCode != DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID2 ||
|
|
6865 |
entry.iNetworkId != DMMTSY_PHONE_NTWK_LIST_NETWORK_ID2)
|
|
6866 |
error = KErrCorrupt;
|
|
6867 |
}
|
|
6868 |
break;
|
|
6869 |
case 3:
|
|
6870 |
default:
|
|
6871 |
{
|
|
6872 |
if(entry.iAccess != DMMTSY_PHONE_NTWK_LIST_ACCESS_CAPS_GSM ||
|
|
6873 |
entry.iUserDefined != DMMTSY_PHONE_NTWK_LIST_USER_DEFINED_FALSE ||
|
|
6874 |
entry.iCountryCode != DMMTSY_PHONE_NTWK_LIST_COUNTRY_ID1 ||
|
|
6875 |
entry.iNetworkId != DMMTSY_PHONE_NTWK_LIST_NETWORK_ID1)
|
|
6876 |
error = KErrCorrupt;
|
|
6877 |
}
|
|
6878 |
break;
|
|
6879 |
}
|
|
6880 |
}
|
|
6881 |
if(error==KErrNone)
|
|
6882 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6883 |
else
|
|
6884 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6885 |
CleanupStack::PopAndDestroy(); // list
|
|
6886 |
return KErrNone;
|
|
6887 |
}
|
|
6888 |
|
|
6889 |
TInt CPhoneDMmTsy::StorePreferredNetworksListCancel(TTsyReqHandle aTsyReqHandle)
|
|
6890 |
{
|
|
6891 |
LOGTEXT(_L8("CSmspStoreDMmTsy::StorePreferredNetworksListCancel called"));
|
|
6892 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6893 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6894 |
return KErrNone;
|
|
6895 |
}
|
|
6896 |
|
|
6897 |
TInt CPhoneDMmTsy::NotifyStorePreferredNetworksListChange(TTsyReqHandle aTsyReqHandle)
|
|
6898 |
{
|
|
6899 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyStorePreferredNetworksListChange called"));
|
|
6900 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6901 |
return KErrNone;
|
|
6902 |
}
|
|
6903 |
|
|
6904 |
TInt CPhoneDMmTsy::NotifyStorePreferredNetworksListChangeCancel(TTsyReqHandle aTsyReqHandle)
|
|
6905 |
{
|
|
6906 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyStorePreferredNetworksListChangeCancel called"));
|
|
6907 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6908 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6909 |
return KErrNone;
|
|
6910 |
}
|
|
6911 |
|
|
6912 |
TInt CPhoneDMmTsy::GetCipheringIndicatorStatus(TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobileCallCipheringIndicator& aIndicatorStatus)
|
|
6913 |
{
|
|
6914 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCipheringIndicatorStatus called"));
|
|
6915 |
aIndicatorStatus = DMMTSY_PHONE_NET_CIPHER_IND;
|
|
6916 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6917 |
return KErrNone;
|
|
6918 |
}
|
|
6919 |
|
|
6920 |
TInt CPhoneDMmTsy::GetCipheringIndicatorStatusCancel(TTsyReqHandle aTsyReqHandle)
|
|
6921 |
{
|
|
6922 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCipheringIndicatorStatusCancel called"));
|
|
6923 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6924 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6925 |
return KErrNone;
|
|
6926 |
}
|
|
6927 |
|
|
6928 |
TInt CPhoneDMmTsy::NotifyCipheringIndicatorStatus(TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobileCallCipheringIndicator& aIndicatorStatus)
|
|
6929 |
{
|
|
6930 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCipheringIndicatorStatus called"));
|
|
6931 |
if (!iNotifyCipheringIndicatorStatus++)
|
|
6932 |
{
|
|
6933 |
aIndicatorStatus = DMMTSY_PHONE_NET_CIPHER_IND;
|
|
6934 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6935 |
}
|
|
6936 |
return KErrNone;
|
|
6937 |
}
|
|
6938 |
|
|
6939 |
TInt CPhoneDMmTsy::NotifyCipheringIndicatorStatusCancel(TTsyReqHandle aTsyReqHandle)
|
|
6940 |
{
|
|
6941 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyCipheringIndicatorStatusCancel called"));
|
|
6942 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6943 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6944 |
return KErrNone;
|
|
6945 |
}
|
|
6946 |
|
|
6947 |
TInt CPhoneDMmTsy::SetIdentityServiceStatus(TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIdService aService, RMobilePhone::TMobilePhoneIdServiceSetting aSetting)
|
|
6948 |
{
|
|
6949 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIdentityServiceStatus called"));
|
|
6950 |
if(aService != DMMTSY_PHONE_ID_SERVICE || aSetting != DMMTSY_PHONE_ID_SETTING)
|
|
6951 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6952 |
else
|
|
6953 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6954 |
|
|
6955 |
return KErrNone;
|
|
6956 |
}
|
|
6957 |
|
|
6958 |
TInt CPhoneDMmTsy::SetIdentityServiceStatusCancel(TTsyReqHandle aTsyReqHandle)
|
|
6959 |
{
|
|
6960 |
LOGTEXT(_L8("CPhoneDMmTsy::SetIdentityServiceStatusCancel called"));
|
|
6961 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6962 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6963 |
return KErrNone;
|
|
6964 |
}
|
|
6965 |
|
|
6966 |
TInt CPhoneDMmTsy::NotifyIdentityServiceStatus(TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneIdService aService, RMobilePhone::TMobilePhoneIdServiceStatus* aStatus)
|
|
6967 |
{
|
|
6968 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIdentityServiceStatus called"));
|
|
6969 |
if (!iNotifyIdentityServiceStatus++)
|
|
6970 |
{
|
|
6971 |
if(aService!=DMMTSY_PHONE_ID_SERVICE)
|
|
6972 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
6973 |
else
|
|
6974 |
{
|
|
6975 |
*aStatus = DMMTSY_PHONE_ID_STATUS;
|
|
6976 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6977 |
}
|
|
6978 |
}
|
|
6979 |
return KErrNone;
|
|
6980 |
}
|
|
6981 |
TInt CPhoneDMmTsy::NotifyIdentityServiceStatusCancel(TTsyReqHandle aTsyReqHandle)
|
|
6982 |
{
|
|
6983 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIdentityServiceStatusCancel called"));
|
|
6984 |
RemoveDelayedReq(aTsyReqHandle);
|
|
6985 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
6986 |
return KErrNone;
|
|
6987 |
}
|
|
6988 |
|
|
6989 |
TInt CPhoneDMmTsy::NotifyIdentitySuppressionRejected(TTsyReqHandle aTsyReqHandle)
|
|
6990 |
{
|
|
6991 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIdentitySuppressionRejected called"));
|
|
6992 |
if (!iNotifyIdentitySuppressionRejected++)
|
|
6993 |
{
|
|
6994 |
AddDelayedReq(aTsyReqHandle,this);
|
|
6995 |
}
|
|
6996 |
return KErrNone;
|
|
6997 |
}
|
|
6998 |
TInt CPhoneDMmTsy::NotifyIdentitySuppressionRejectedCancel(TTsyReqHandle aTsyReqHandle)
|
|
6999 |
{
|
|
7000 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyIdentitySuppressionRejectedCancel called"));
|
|
7001 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7002 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7003 |
return KErrNone;
|
|
7004 |
}
|
|
7005 |
|
|
7006 |
TInt CPhoneDMmTsy::NotifyMulticallIndicatorChange(TTsyReqHandle aTsyReqHandle, RMobilePhone::TMobilePhoneMulticallIndicator* aMulticallIndicator)
|
|
7007 |
{
|
|
7008 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMulticallIndicatorChange called"));
|
|
7009 |
if (!iNotifyMulticallIndicatorChange++)
|
|
7010 |
{
|
|
7011 |
*aMulticallIndicator = DMMTSY_PHONE_MULTICALL_IND;
|
|
7012 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7013 |
}
|
|
7014 |
return KErrNone;
|
|
7015 |
}
|
|
7016 |
|
|
7017 |
TInt CPhoneDMmTsy::NotifyMulticallIndicatorChangeCancel(TTsyReqHandle aTsyReqHandle)
|
|
7018 |
{
|
|
7019 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyMulticallIndicatorChangeCancel called"));
|
|
7020 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7021 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7022 |
return KErrNone;
|
|
7023 |
}
|
|
7024 |
|
|
7025 |
TInt CPhoneDMmTsy::EnumerateSmartCardApplications(const TTsyReqHandle aTsyReqHandle,TUint* aCount)
|
|
7026 |
{
|
|
7027 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateSmartCardApplications called"));
|
|
7028 |
|
|
7029 |
*aCount = DMMTSY_PHONE_SC_COUNT;
|
|
7030 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7031 |
return KErrNone;
|
|
7032 |
}
|
|
7033 |
|
|
7034 |
TInt CPhoneDMmTsy::EnumerateSmartCardApplicationsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7035 |
{
|
|
7036 |
LOGTEXT(_L8("CPhoneDMmTsy::EnumerateSmartCardApplicationsCancel called"));
|
|
7037 |
|
|
7038 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7039 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7040 |
return KErrNone;
|
|
7041 |
}
|
|
7042 |
|
|
7043 |
TInt CPhoneDMmTsy::GetSmartCardApplicationInfo(const TTsyReqHandle aTsyReqHandle,TUint* aAppIndex, TDes8* aInfoBuffer)
|
|
7044 |
{
|
|
7045 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSmartCardApplicationInfo called"));
|
|
7046 |
|
|
7047 |
if(*aAppIndex == DMMTSY_PHONE_SC_APP_INDEX1)
|
|
7048 |
{
|
|
7049 |
RMobilePhone::TSmartCardApplicationInfoV5Pckg *ScAppInfoPckg = REINTERPRET_CAST(RMobilePhone::TSmartCardApplicationInfoV5Pckg *, aInfoBuffer);
|
|
7050 |
RMobilePhone::TSmartCardApplicationInfoV5 &ScAppInfo = (*ScAppInfoPckg)();
|
|
7051 |
|
|
7052 |
if(ScAppInfo.ExtensionId() != KEtelExtMultimodeV5)
|
|
7053 |
{
|
|
7054 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7055 |
}
|
|
7056 |
else
|
|
7057 |
{
|
|
7058 |
ScAppInfo.iAID = DMMTSY_PHONE_SC_AID;
|
|
7059 |
ScAppInfo.iLabel = DMMTSY_PHONE_SC_LABEL;
|
|
7060 |
}
|
|
7061 |
}
|
|
7062 |
else
|
|
7063 |
{
|
|
7064 |
return DMMTSY_PHONE_SC_OUTOFRANGE;
|
|
7065 |
}
|
|
7066 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7067 |
return KErrNone;
|
|
7068 |
}
|
|
7069 |
|
|
7070 |
TInt CPhoneDMmTsy::GetSmartCardApplicationInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7071 |
{
|
|
7072 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSmartCardApplicationInfoCancel called"));
|
|
7073 |
|
|
7074 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7075 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7076 |
return KErrNone;
|
|
7077 |
}
|
|
7078 |
|
|
7079 |
TInt CPhoneDMmTsy::NotifySmartCardApplicationInfoChange(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TSmartCardApplicationEvent* aEvent, RMobilePhone::TAID* aAID)
|
|
7080 |
{
|
|
7081 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySmartCardApplicationInfoChange called"));
|
|
7082 |
if(!iNotifySmartCardApplicationInfoChange++)
|
|
7083 |
{
|
|
7084 |
*aEvent = DMMTSY_PHONE_SC_EVENT_ACTIVATE;
|
|
7085 |
*aAID = DMMTSY_PHONE_SC_AID;
|
|
7086 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7087 |
}
|
|
7088 |
return KErrNone;
|
|
7089 |
}
|
|
7090 |
|
|
7091 |
TInt CPhoneDMmTsy::NotifySmartCardApplicationInfoChangeCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7092 |
{
|
|
7093 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifySmartCardApplicationInfoChange called"));
|
|
7094 |
|
|
7095 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7096 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7097 |
return KErrNone;
|
|
7098 |
}
|
|
7099 |
|
|
7100 |
TInt CPhoneDMmTsy::SetSmartCardApplicationStatus(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAID* aAID, RMobilePhone::TSmartCardApplicationAction aAction)
|
|
7101 |
{
|
|
7102 |
LOGTEXT(_L8("CPhoneDMmTsy::SetSmartCardApplicationStatus called"));
|
|
7103 |
|
|
7104 |
if(*aAID != DMMTSY_PHONE_SC_AID2 || aAction != DMMTSY_PHONE_SC_ACTION_TERMINATE)
|
|
7105 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7106 |
else
|
|
7107 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7108 |
return KErrNone;
|
|
7109 |
}
|
|
7110 |
|
|
7111 |
TInt CPhoneDMmTsy::SetSmartCardApplicationStatusCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7112 |
{
|
|
7113 |
LOGTEXT(_L8("CPhoneDMmTsy::SetSmartCardApplicationStatusCancel called"));
|
|
7114 |
|
|
7115 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7116 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7117 |
return KErrNone;
|
|
7118 |
}
|
|
7119 |
|
|
7120 |
TInt CPhoneDMmTsy::GetScFileInfo(const TTsyReqHandle aTsyReqHandle, const RMobilePhone::TScFilePath& aFilePathId, TDes8* aInfo)
|
|
7121 |
{
|
|
7122 |
LOGTEXT(_L8("CPhoneDMmTsy::GetScFileInfo called"));
|
|
7123 |
|
|
7124 |
if(aFilePathId.iAID != DMMTSY_PHONE_SC_AID || aFilePathId.iPath != DMMTSY_PHONE_SC_PATH_REF)
|
|
7125 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7126 |
else
|
|
7127 |
{
|
|
7128 |
RMobilePhone::TScFileInfoV5Pckg *scFileInfoPckg = REINTERPRET_CAST(RMobilePhone::TScFileInfoV5Pckg*, aInfo);
|
|
7129 |
RMobilePhone::TScFileInfoV5 &scFileInfo = (*scFileInfoPckg)();
|
|
7130 |
|
|
7131 |
if(scFileInfo.ExtensionId() != KEtelExtMultimodeV5)
|
|
7132 |
{
|
|
7133 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7134 |
}
|
|
7135 |
else
|
|
7136 |
{
|
|
7137 |
scFileInfo.iFileID = DMMTSY_PHONE_SC_FILEID;
|
|
7138 |
scFileInfo.iNumberRecords = DMMTSY_PHONE_SC_NORECORDS;
|
|
7139 |
scFileInfo.iRecordLength = DMMTSY_PHONE_SC_RECORD_SIZE;
|
|
7140 |
scFileInfo.iType = DMMTSY_PHONE_SC_TYPE;
|
|
7141 |
scFileInfo.iTotalLength = DMMTSY_PHONE_SC_FILESIZE;
|
|
7142 |
}
|
|
7143 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7144 |
}
|
|
7145 |
return KErrNone;
|
|
7146 |
}
|
|
7147 |
|
|
7148 |
TInt CPhoneDMmTsy::GetScFileInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7149 |
{
|
|
7150 |
LOGTEXT(_L8("CPhoneDMmTsy::GetScFileInfoCancel called"));
|
|
7151 |
|
|
7152 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7153 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7154 |
return KErrNone;
|
|
7155 |
}
|
|
7156 |
|
|
7157 |
TInt CPhoneDMmTsy::ReadScFile(const TTsyReqHandle aTsyReqHandle, const RMobilePhone::TScFilePathWithAccessOffsets& aFilePathOffsets, TDes8* aReadBuffer)
|
|
7158 |
{
|
|
7159 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadScFile called"));
|
|
7160 |
|
|
7161 |
if(aFilePathOffsets.iAID != DMMTSY_PHONE_SC_AID || aFilePathOffsets.iPath != DMMTSY_PHONE_SC_PATH_REF || aFilePathOffsets.iType != DMMTSY_PHONE_SC_TYPE || aFilePathOffsets.iCount != DMMTSY_PHONE_SC_NORECORDS || aFilePathOffsets.iStartOffset != DMMTSY_PHONE_SC_START_OFFSET)
|
|
7162 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7163 |
else
|
|
7164 |
{
|
|
7165 |
aReadBuffer->Zero();
|
|
7166 |
aReadBuffer->Append(DMMTSY_PHONE_SC_RECORD0);
|
|
7167 |
aReadBuffer->Append(DMMTSY_PHONE_SC_RECORD1);
|
|
7168 |
aReadBuffer->Append(DMMTSY_PHONE_SC_RECORD2);
|
|
7169 |
|
|
7170 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7171 |
}
|
|
7172 |
return KErrNone;
|
|
7173 |
}
|
|
7174 |
|
|
7175 |
TInt CPhoneDMmTsy::ReadScFileCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7176 |
{
|
|
7177 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadScFileCancel called"));
|
|
7178 |
|
|
7179 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7180 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7181 |
return KErrNone;
|
|
7182 |
}
|
|
7183 |
|
|
7184 |
TInt CPhoneDMmTsy::UpdateScFile(const TTsyReqHandle aTsyReqHandle, const RMobilePhone::TScFilePathWithAccessOffsets& aFilePathOffsets, TDes8* aWriteBuffer)
|
|
7185 |
{
|
|
7186 |
LOGTEXT(_L8("CPhoneDMmTsy::UpdateScFile called"));
|
|
7187 |
|
|
7188 |
TInt startoffset = 0;
|
|
7189 |
TPtr8 record0(aWriteBuffer->MidTPtr(startoffset,DMMTSY_PHONE_SC_RECORD_SIZE));
|
|
7190 |
startoffset += DMMTSY_PHONE_SC_RECORD_SIZE;
|
|
7191 |
TPtr8 record1(aWriteBuffer->MidTPtr(startoffset,DMMTSY_PHONE_SC_RECORD_SIZE));
|
|
7192 |
startoffset += DMMTSY_PHONE_SC_RECORD_SIZE;
|
|
7193 |
TPtr8 record2(aWriteBuffer->MidTPtr(startoffset,DMMTSY_PHONE_SC_RECORD_SIZE));
|
|
7194 |
|
|
7195 |
if(aFilePathOffsets.iAID != DMMTSY_PHONE_SC_AID || aFilePathOffsets.iPath != DMMTSY_PHONE_SC_PATH_REF || aFilePathOffsets.iType != DMMTSY_PHONE_SC_TYPE || aFilePathOffsets.iCount != DMMTSY_PHONE_SC_NORECORDS || aFilePathOffsets.iStartOffset != DMMTSY_PHONE_SC_START_OFFSET)
|
|
7196 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7197 |
else if(record0 != DMMTSY_PHONE_SC_RECORD0 || record1 != DMMTSY_PHONE_SC_RECORD1 || record2 != DMMTSY_PHONE_SC_RECORD2)
|
|
7198 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7199 |
else
|
|
7200 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7201 |
|
|
7202 |
return KErrNone;
|
|
7203 |
}
|
|
7204 |
|
|
7205 |
TInt CPhoneDMmTsy::UpdateScFileCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7206 |
{
|
|
7207 |
LOGTEXT(_L8("CPhoneDMmTsy::UpdateScFileCancel called"));
|
|
7208 |
|
|
7209 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7210 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7211 |
return KErrNone;
|
|
7212 |
}
|
|
7213 |
|
|
7214 |
TInt CPhoneDMmTsy::GetCurrentActiveUSimApplication(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TAID* aAID)
|
|
7215 |
{
|
|
7216 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentActiveUSimApplication called"));
|
|
7217 |
|
|
7218 |
*aAID = DMMTSY_PHONE_SC_AID;
|
|
7219 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7220 |
return KErrNone;
|
|
7221 |
}
|
|
7222 |
|
|
7223 |
TInt CPhoneDMmTsy::GetCurrentActiveUSimApplicationCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7224 |
{
|
|
7225 |
LOGTEXT(_L8("CPhoneDMmTsy::GetCurrentActiveUSimApplicationCancel called"));
|
|
7226 |
|
|
7227 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7228 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7229 |
return KErrNone;
|
|
7230 |
}
|
|
7231 |
|
|
7232 |
CPhoneDMmTsy* CPhoneDMmTsy::This(TAny* aPtr)
|
|
7233 |
{
|
|
7234 |
return REINTERPRET_CAST(CPhoneDMmTsy*,aPtr);
|
|
7235 |
}
|
|
7236 |
|
|
7237 |
TInt CPhoneDMmTsy::GetAuthorizationInfoPhase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aId, TInt* aBufSize)
|
|
7238 |
{
|
|
7239 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthorizationInfoPhase1 called"));
|
|
7240 |
TInt ret(KErrNone);
|
|
7241 |
TInt leaveCode(KErrNone);
|
|
7242 |
TRAP(leaveCode, ret=ProcessGetAuthorizationInfoPhase1L(aTsyReqHandle, aId, aBufSize););
|
|
7243 |
if (leaveCode != KErrNone)
|
|
7244 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
7245 |
return ret;
|
|
7246 |
};
|
|
7247 |
|
|
7248 |
TInt CPhoneDMmTsy::ProcessGetAuthorizationInfoPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
7249 |
RMobilePhone::TClientId* aClient,
|
|
7250 |
TInt* aBufSize)
|
|
7251 |
{
|
|
7252 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthorizationInfoPhase1 called"));
|
|
7253 |
|
|
7254 |
// Store the streamed list and the client ID
|
|
7255 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
7256 |
CleanupStack::PushL(read);
|
|
7257 |
|
|
7258 |
HBufC8* iBuff=NULL;
|
|
7259 |
iAuthInfo->ExternalizeL(iBuff);
|
|
7260 |
CleanupStack::PushL(iBuff);
|
|
7261 |
|
|
7262 |
CBufFlat* buf=CBufFlat::NewL(iBuff->Length());
|
|
7263 |
CleanupStack::PushL(buf);
|
|
7264 |
buf->InsertL(0,*iBuff);
|
|
7265 |
|
|
7266 |
read->iListBuf = buf;
|
|
7267 |
CleanupStack::Pop(buf);
|
|
7268 |
CleanupStack::PopAndDestroy(iBuff);
|
|
7269 |
|
|
7270 |
iGetAuthorizationData->AppendL(read);
|
|
7271 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
7272 |
|
|
7273 |
// return the CBufBase’s size to client
|
|
7274 |
*aBufSize=(read->iListBuf)->Size();
|
|
7275 |
|
|
7276 |
|
|
7277 |
// Complete first phase of list retrieval
|
|
7278 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7279 |
return KErrNone;
|
|
7280 |
}
|
|
7281 |
TInt CPhoneDMmTsy::GetAuthorizationInfoPhase2(TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuffer)
|
|
7282 |
{
|
|
7283 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthorizationInfoPhase2 called"));
|
|
7284 |
CListReadAllAttempt* read=NULL;
|
|
7285 |
// Find the get detected network attempt from this client
|
|
7286 |
for (TInt i=0; i<iGetAuthorizationData->Count(); ++i)
|
|
7287 |
{
|
|
7288 |
read = iGetAuthorizationData->At(i);
|
|
7289 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
7290 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
7291 |
{
|
|
7292 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
7293 |
// Copy the streamed list to the client
|
|
7294 |
aBuffer->Copy(bufPtr);
|
|
7295 |
delete read;
|
|
7296 |
iGetAuthorizationData->Delete(i);
|
|
7297 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
7298 |
return KErrNone;
|
|
7299 |
}
|
|
7300 |
}
|
|
7301 |
ReqCompleted(aTsyReqHandle,KErrBadHandle);
|
|
7302 |
return KErrNone;
|
|
7303 |
}
|
|
7304 |
|
|
7305 |
|
|
7306 |
TInt CPhoneDMmTsy::GetAuthorizationInfoCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7307 |
{
|
|
7308 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthorizationInfoCancel called"));
|
|
7309 |
|
|
7310 |
// Remove the read all attempt from iGetAuthorizationData
|
|
7311 |
CListReadAllAttempt* read=NULL;
|
|
7312 |
for (TInt i=0; i<iGetAuthorizationData->Count(); ++i)
|
|
7313 |
{
|
|
7314 |
read = iGetAuthorizationData->At(i);
|
|
7315 |
if (read->iReqHandle == aTsyReqHandle)
|
|
7316 |
{
|
|
7317 |
delete read;
|
|
7318 |
iGetAuthorizationData->Delete(i);
|
|
7319 |
break;
|
|
7320 |
}
|
|
7321 |
}
|
|
7322 |
|
|
7323 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7324 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7325 |
return KErrNone;
|
|
7326 |
}
|
|
7327 |
|
|
7328 |
TInt CPhoneDMmTsy::GetAuthenticationData(const TTsyReqHandle aTsyReqHandle,TDes8* aAuthenticationData)
|
|
7329 |
{
|
|
7330 |
LOGTEXT(_L8("CPhoneDMmTsy::AuthentificationData called"));
|
|
7331 |
TInt ret(KErrNone);
|
|
7332 |
User::After(300000); // wait to have KRequestPending
|
|
7333 |
RMobilePhone::TImsAuthenticateDataV5Pckg* authenticateDataPckgd=(RMobilePhone::TImsAuthenticateDataV5Pckg*)aAuthenticationData;
|
|
7334 |
RMobilePhone::TImsAuthenticateDataV5& authenticateData=(*authenticateDataPckgd)();
|
|
7335 |
if(authenticateData.iAUTN!=DMMTSY_PHONE_AUTN_IN || authenticateData.iRAND!=DMMTSY_PHONE_RAND_IN)
|
|
7336 |
{
|
|
7337 |
ret=KErrCorrupt;
|
|
7338 |
ReqCompleted(aTsyReqHandle,ret);
|
|
7339 |
}
|
|
7340 |
else
|
|
7341 |
{
|
|
7342 |
authenticateData.iAUTN=DMMTSY_PHONE_AUTN_OUT;
|
|
7343 |
authenticateData.iRAND=DMMTSY_PHONE_RAND_OUT;
|
|
7344 |
authenticateData.iRES=DMMTSY_PHONE_RES_OUT;
|
|
7345 |
authenticateData.iIK=DMMTSY_PHONE_IK_OUT;
|
|
7346 |
authenticateData.iCK=DMMTSY_PHONE_CK_OUT;
|
|
7347 |
authenticateData.iAUTS=DMMTSY_PHONE_AUTS_OUT;
|
|
7348 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7349 |
}
|
|
7350 |
return KErrNone;
|
|
7351 |
}
|
|
7352 |
|
|
7353 |
TInt CPhoneDMmTsy::GetAuthenticationDataCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7354 |
{
|
|
7355 |
LOGTEXT(_L8("CPhoneDMmTsy::AuthentificationDataCancel called"));
|
|
7356 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7357 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7358 |
return KErrNone;
|
|
7359 |
}
|
|
7360 |
|
|
7361 |
TInt CPhoneDMmTsy::NotifyImsAuthorizationInfoChanged(const TTsyReqHandle aTsyReqHandle)
|
|
7362 |
{
|
|
7363 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyImsAuthorizationInfoChanged called"));
|
|
7364 |
if (!iNotifyImsAuthorizationInfoChange++)
|
|
7365 |
{
|
|
7366 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7367 |
}
|
|
7368 |
return KErrNone;
|
|
7369 |
|
|
7370 |
}
|
|
7371 |
TInt CPhoneDMmTsy::NotifyImsAuthorizationInfoChangedCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7372 |
{
|
|
7373 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyImsAuthorizationInfoChangedCancel called"));
|
|
7374 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7375 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7376 |
return KErrNone;
|
|
7377 |
}
|
|
7378 |
|
|
7379 |
TInt CPhoneDMmTsy::GetSmartCardAuthenticationData(const TTsyReqHandle aTsyReqHandle, TDes8* aSmartCardAuthData, RMobilePhone::TAID* aAID)
|
|
7380 |
{
|
|
7381 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSmartCardAuthenticationData called"));
|
|
7382 |
|
|
7383 |
RMobilePhone::TSmartCardAuthenticateDataV6Pckg *smartCardAuthenticateDataPckg =
|
|
7384 |
reinterpret_cast<RMobilePhone::TSmartCardAuthenticateDataV6Pckg*>(aSmartCardAuthData);
|
|
7385 |
|
|
7386 |
RMobilePhone::TSmartCardAuthenticateDataV6 &smartCardAuthenticateData =
|
|
7387 |
(*smartCardAuthenticateDataPckg)();
|
|
7388 |
|
|
7389 |
if (aAID != NULL)
|
|
7390 |
{
|
|
7391 |
if (*aAID != DMMTSY_PHONE_GBA_AID() &&
|
|
7392 |
*aAID != DMMTSY_PHONE_EAPAPP_AID() &&
|
|
7393 |
*aAID != DMMTSY_PHONE_MBMS_AID())
|
|
7394 |
{
|
|
7395 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
7396 |
return KErrNone;
|
|
7397 |
}
|
|
7398 |
}
|
|
7399 |
// USIM authentication
|
|
7400 |
if(smartCardAuthenticateData.ExtensionId() == KEtelExtMultimodeV6)
|
|
7401 |
{
|
|
7402 |
if(smartCardAuthenticateData.iAUTN != DMMTSY_PHONE_SC_AUTN_IN ||
|
|
7403 |
smartCardAuthenticateData.iRAND != DMMTSY_PHONE_SC_RAND_IN)
|
|
7404 |
{
|
|
7405 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
7406 |
}
|
|
7407 |
else
|
|
7408 |
{
|
|
7409 |
smartCardAuthenticateData.iAUTN=DMMTSY_PHONE_SC_AUTN_OUT;
|
|
7410 |
smartCardAuthenticateData.iRAND=DMMTSY_PHONE_SC_RAND_OUT;
|
|
7411 |
smartCardAuthenticateData.iRES=DMMTSY_PHONE_SC_RES_OUT;
|
|
7412 |
smartCardAuthenticateData.iIK=DMMTSY_PHONE_SC_IK_OUT;
|
|
7413 |
smartCardAuthenticateData.iCK=DMMTSY_PHONE_SC_CK_OUT;
|
|
7414 |
smartCardAuthenticateData.iAUTS=DMMTSY_PHONE_SC_AUTS_OUT;
|
|
7415 |
smartCardAuthenticateData.iKc=DMMTSY_PHONE_SC_KC_OUT;
|
|
7416 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7417 |
}
|
|
7418 |
}
|
|
7419 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileGbaBootstrapAuthDataV8)
|
|
7420 |
{
|
|
7421 |
RMobilePhone::TGbaBootstrapAuthDataV8Pckg *gbaBootstrapAuthenticateDataPckg =
|
|
7422 |
STATIC_CAST(RMobilePhone::TGbaBootstrapAuthDataV8Pckg*,aSmartCardAuthData);
|
|
7423 |
|
|
7424 |
RMobilePhone::TGbaBootstrapAuthDataV8 &gbaBootstrapAuthData =
|
|
7425 |
(*gbaBootstrapAuthenticateDataPckg)();
|
|
7426 |
|
|
7427 |
if(gbaBootstrapAuthData.iAUTN != DMMTSY_PHONE_GBA_AUTN_IN ||
|
|
7428 |
gbaBootstrapAuthData.iRAND != DMMTSY_PHONE_GBA_RAND_IN)
|
|
7429 |
{
|
|
7430 |
iGbaBootstrapAuthDataFail++;
|
|
7431 |
switch(iGbaBootstrapAuthDataFail)
|
|
7432 |
{
|
|
7433 |
case 1:
|
|
7434 |
gbaBootstrapAuthData.iRES=DMMTSY_PHONE_GBA_FAIL_RES_OUT;
|
|
7435 |
gbaBootstrapAuthData.iAUTS=DMMTSY_PHONE_GBA_FAIL_AUTS_OUT;
|
|
7436 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthVerificationFailure);
|
|
7437 |
break;
|
|
7438 |
|
|
7439 |
case 2:
|
|
7440 |
gbaBootstrapAuthData.iRES=DMMTSY_PHONE_GBA_FAIL_RES_OUT;
|
|
7441 |
gbaBootstrapAuthData.iAUTS=DMMTSY_PHONE_GBA_SUCC_AUTS_OUT;
|
|
7442 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthMacInvalid);
|
|
7443 |
break;
|
|
7444 |
|
|
7445 |
case 3:
|
|
7446 |
default:
|
|
7447 |
gbaBootstrapAuthData.iRES=DMMTSY_PHONE_GBA_FAIL_RES_OUT;
|
|
7448 |
gbaBootstrapAuthData.iAUTS=DMMTSY_PHONE_GBA_SUCC_AUTS_OUT;
|
|
7449 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7450 |
iGbaBootstrapAuthDataFail=0;
|
|
7451 |
break;
|
|
7452 |
}
|
|
7453 |
}
|
|
7454 |
else
|
|
7455 |
{
|
|
7456 |
gbaBootstrapAuthData.iRES=DMMTSY_PHONE_GBA_SUCC_RES_OUT;
|
|
7457 |
gbaBootstrapAuthData.iAUTS=DMMTSY_PHONE_GBA_SUCC_AUTS_OUT;
|
|
7458 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7459 |
}
|
|
7460 |
}
|
|
7461 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileGbaNafAuthDataV8)
|
|
7462 |
{
|
|
7463 |
RMobilePhone::TGbaNafAuthDataV8Pckg *gbaNafAuthenticateDataPckg =
|
|
7464 |
STATIC_CAST(RMobilePhone::TGbaNafAuthDataV8Pckg*,aSmartCardAuthData);
|
|
7465 |
|
|
7466 |
RMobilePhone::TGbaNafAuthDataV8 &gbaNafAuthData=
|
|
7467 |
(*gbaNafAuthenticateDataPckg)();
|
|
7468 |
if(gbaNafAuthData.iNafId != DMMTSY_PHONE_GBA_VALID_NAFID ||
|
|
7469 |
gbaNafAuthData.iImpi != DMMTSY_PHONE_GBA_VALID_IMPI)
|
|
7470 |
{
|
|
7471 |
iGbaNafAuthDataFail++;
|
|
7472 |
switch(iGbaNafAuthDataFail)
|
|
7473 |
{
|
|
7474 |
case 1:
|
|
7475 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthKeyNotFound);
|
|
7476 |
break;
|
|
7477 |
|
|
7478 |
case 2:
|
|
7479 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
7480 |
break;
|
|
7481 |
|
|
7482 |
case 3:
|
|
7483 |
default:
|
|
7484 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7485 |
iGbaNafAuthDataFail=0;
|
|
7486 |
break;
|
|
7487 |
}
|
|
7488 |
}
|
|
7489 |
else
|
|
7490 |
{
|
|
7491 |
gbaNafAuthData.iKsExtNaf=DMMTSY_PHONE_GBA_KS_EXTNAF;
|
|
7492 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7493 |
}
|
|
7494 |
}
|
|
7495 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileMbmsMskUpdateDataV8)
|
|
7496 |
{
|
|
7497 |
RMobilePhone::TMbmsMskUpdateDataV8Pckg *mbmsMskUpdateAuthenticateDataPckg =
|
|
7498 |
STATIC_CAST(RMobilePhone::TMbmsMskUpdateDataV8Pckg*,aSmartCardAuthData);
|
|
7499 |
|
|
7500 |
RMobilePhone::TMbmsMskUpdateDataV8 &mbmsMskUpdateAuthData=
|
|
7501 |
(*mbmsMskUpdateAuthenticateDataPckg)();
|
|
7502 |
if(mbmsMskUpdateAuthData.iInputMikey == DMMTSY_PHONE_MBMS_INVALID_IMIKEY)
|
|
7503 |
{
|
|
7504 |
iMbmsMskUpdateAuthDataFail++;
|
|
7505 |
switch(iMbmsMskUpdateAuthDataFail)
|
|
7506 |
{
|
|
7507 |
case 1:
|
|
7508 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthKeyNotFound);
|
|
7509 |
break;
|
|
7510 |
|
|
7511 |
case 2:
|
|
7512 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthKeyInvalid);
|
|
7513 |
break;
|
|
7514 |
|
|
7515 |
case 3:
|
|
7516 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
7517 |
break;
|
|
7518 |
|
|
7519 |
case 4:
|
|
7520 |
default:
|
|
7521 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7522 |
iMbmsMskUpdateAuthDataFail=0;
|
|
7523 |
break;
|
|
7524 |
}
|
|
7525 |
}
|
|
7526 |
else if(mbmsMskUpdateAuthData.iInputMikey == DMMTSY_PHONE_MBMS_VALID_IMIKEY_WO_VBIT)
|
|
7527 |
{
|
|
7528 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7529 |
}
|
|
7530 |
else if (mbmsMskUpdateAuthData.iInputMikey == DMMTSY_PHONE_MBMS_VALID_IMIKEY_W_VBIT)
|
|
7531 |
{
|
|
7532 |
mbmsMskUpdateAuthData.iOutputMikey=DMMTSY_PHONE_MBMS_OMIKEY_FOR_W_VBIT;
|
|
7533 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7534 |
}
|
|
7535 |
}
|
|
7536 |
|
|
7537 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileMbmsMtkGenerateDataV8)
|
|
7538 |
{
|
|
7539 |
RMobilePhone::TMbmsMtkGenerateDataV8Pckg *mbmsMtkGenerateAuthenticateDataPckg =
|
|
7540 |
STATIC_CAST(RMobilePhone::TMbmsMtkGenerateDataV8Pckg*,aSmartCardAuthData);
|
|
7541 |
|
|
7542 |
RMobilePhone::TMbmsMtkGenerateDataV8 &mbmsMtkGenerateAuthData=
|
|
7543 |
(*mbmsMtkGenerateAuthenticateDataPckg)();
|
|
7544 |
|
|
7545 |
if(mbmsMtkGenerateAuthData.iMikey!= DMMTSY_PHONE_MBMS_VALID_IMIKEY)
|
|
7546 |
{
|
|
7547 |
iMbmsMtkGenerateAuthDataFail++;
|
|
7548 |
switch(iMbmsMtkGenerateAuthDataFail)
|
|
7549 |
{
|
|
7550 |
case 1:
|
|
7551 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthKeyNotFound);
|
|
7552 |
break;
|
|
7553 |
|
|
7554 |
case 2:
|
|
7555 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthKeyInvalid);
|
|
7556 |
break;
|
|
7557 |
|
|
7558 |
case 3:
|
|
7559 |
ReqCompleted(aTsyReqHandle, KErrMMEtelAuthMacInvalid);
|
|
7560 |
break;
|
|
7561 |
|
|
7562 |
case 4:
|
|
7563 |
ReqCompleted(aTsyReqHandle, KErrCorrupt);
|
|
7564 |
break;
|
|
7565 |
|
|
7566 |
case 5:
|
|
7567 |
default:
|
|
7568 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7569 |
iMbmsMtkGenerateAuthDataFail=0;
|
|
7570 |
break;
|
|
7571 |
}
|
|
7572 |
}
|
|
7573 |
else
|
|
7574 |
{
|
|
7575 |
mbmsMtkGenerateAuthData.iMtk = DMMTSY_PHONE_MBMS_VALID_MTK;
|
|
7576 |
mbmsMtkGenerateAuthData.iSaltKey = DMMTSY_PHONE_MBMS_VALID_SALTKEY;
|
|
7577 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7578 |
}
|
|
7579 |
}
|
|
7580 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileMbmsMskDeleteDataV8)
|
|
7581 |
{
|
|
7582 |
RMobilePhone::TMbmsMskDeleteDataV8Pckg *mbmsMskDeleteAuthenticateDataPckg =
|
|
7583 |
STATIC_CAST(RMobilePhone::TMbmsMskDeleteDataV8Pckg*,aSmartCardAuthData);
|
|
7584 |
|
|
7585 |
RMobilePhone::TMbmsMskDeleteDataV8 &mbmsMskDeleteAuthData=
|
|
7586 |
(*mbmsMskDeleteAuthenticateDataPckg)();
|
|
7587 |
|
|
7588 |
if((mbmsMskDeleteAuthData.iKeyDomainId!= DMMTSY_PHONE_MBMS_VALID_KEYDMN) ||
|
|
7589 |
(mbmsMskDeleteAuthData.iMskIdKeyGroup != DMMTSY_PHONE_MBMS_VALID_MSKIDGRP))
|
|
7590 |
{
|
|
7591 |
iMbmsMskDeleteAuthDataFail++;
|
|
7592 |
switch(iMbmsMskDeleteAuthDataFail)
|
|
7593 |
{
|
|
7594 |
case 1:
|
|
7595 |
ReqCompleted(aTsyReqHandle, KErrNotFound);
|
|
7596 |
break;
|
|
7597 |
|
|
7598 |
case 2:
|
|
7599 |
default:
|
|
7600 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7601 |
iMbmsMskDeleteAuthDataFail=0;
|
|
7602 |
break;
|
|
7603 |
}
|
|
7604 |
}
|
|
7605 |
else
|
|
7606 |
{
|
|
7607 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7608 |
}
|
|
7609 |
}
|
|
7610 |
else if(smartCardAuthenticateData.ExtensionId() == RMobilePhone::KETelMobileMbmsMukDeleteDataV8)
|
|
7611 |
{
|
|
7612 |
RMobilePhone::TMbmsMukDeleteDataV8Pckg *mbmsMukDeleteAuthenticateDataPckg =
|
|
7613 |
STATIC_CAST(RMobilePhone::TMbmsMukDeleteDataV8Pckg*,aSmartCardAuthData);
|
|
7614 |
|
|
7615 |
RMobilePhone::TMbmsMukDeleteDataV8 &mbmsMukDeleteAuthData=
|
|
7616 |
(*mbmsMukDeleteAuthenticateDataPckg)();
|
|
7617 |
|
|
7618 |
if(mbmsMukDeleteAuthData.iMukIdTlv!= DMMTSY_PHONE_MBMS_VALID_MUKID)
|
|
7619 |
{
|
|
7620 |
iMbmsMukDeleteAuthDataFail++;
|
|
7621 |
switch(iMbmsMukDeleteAuthDataFail)
|
|
7622 |
{
|
|
7623 |
case 1:
|
|
7624 |
ReqCompleted(aTsyReqHandle, KErrNotFound);
|
|
7625 |
break;
|
|
7626 |
|
|
7627 |
case 2:
|
|
7628 |
default:
|
|
7629 |
ReqCompleted(aTsyReqHandle, KErrInUse);
|
|
7630 |
iMbmsMukDeleteAuthDataFail=0;
|
|
7631 |
break;
|
|
7632 |
}
|
|
7633 |
}
|
|
7634 |
else
|
|
7635 |
{
|
|
7636 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7637 |
}
|
|
7638 |
}
|
|
7639 |
return KErrNone;
|
|
7640 |
}
|
|
7641 |
|
|
7642 |
TInt CPhoneDMmTsy::GetSmartCardAuthenticationDataCancel(const TTsyReqHandle aTsyReqHandle)
|
|
7643 |
{
|
|
7644 |
LOGTEXT(_L8("CPhoneDMmTsy::GetSmartCardAuthenticationDataCancel called"));
|
|
7645 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7646 |
ReqCompleted(aTsyReqHandle, KErrCancel);
|
|
7647 |
return KErrNone;
|
|
7648 |
}
|
|
7649 |
|
|
7650 |
TInt CPhoneDMmTsy::SetEmergencyClient(const TTsyReqHandle aTsyReqHandle, TUint32* aEmergencyRequest)
|
|
7651 |
{
|
|
7652 |
LOGTEXT(_L8("CPhoneDMmTsy::SetEmergencyClient called"));
|
|
7653 |
|
|
7654 |
switch (*aEmergencyRequest)
|
|
7655 |
{
|
|
7656 |
case RPhone::EEmergencyLCSRequest:
|
|
7657 |
case RPhone::EEmergencyCSVoiceCallRequest:
|
|
7658 |
case RPhone::EEmergencyLCSRequest | RPhone::EEmergencyCSVoiceCallRequest:
|
|
7659 |
ReqCompleted(aTsyReqHandle, KErrNone);
|
|
7660 |
break;
|
|
7661 |
default:
|
|
7662 |
return KErrCorrupt;
|
|
7663 |
}
|
|
7664 |
|
|
7665 |
return KErrNone;
|
|
7666 |
}
|
|
7667 |
|
|
7668 |
//
|
|
7669 |
// First Ordinal Functions
|
|
7670 |
//
|
|
7671 |
extern "C"
|
|
7672 |
{
|
|
7673 |
IMPORT_C CPhoneFactoryBase* LibEntry(); // Force "Proper Name" export
|
|
7674 |
}
|
|
7675 |
|
|
7676 |
EXPORT_C CPhoneFactoryBase* LibEntry()
|
|
7677 |
{
|
|
7678 |
CPhoneFactoryDMmTsy* factory = NULL;
|
|
7679 |
TRAP_IGNORE(factory = CPhoneFactoryDMmTsy::NewL());
|
|
7680 |
return factory;
|
|
7681 |
}
|
|
7682 |
|
|
7683 |
//
|
|
7684 |
// DMmTsy Phone Factory Functions
|
|
7685 |
//
|
|
7686 |
|
|
7687 |
CPhoneFactoryDMmTsy* CPhoneFactoryDMmTsy::NewL()
|
|
7688 |
{
|
|
7689 |
CPhoneFactoryDMmTsy *This = new (ELeave) CPhoneFactoryDMmTsy;
|
|
7690 |
CleanupStack::PushL(This);
|
|
7691 |
This->ConstructL();
|
|
7692 |
CleanupStack::Pop();
|
|
7693 |
return This;
|
|
7694 |
}
|
|
7695 |
|
|
7696 |
CPhoneFactoryDMmTsy::CPhoneFactoryDMmTsy()
|
|
7697 |
{
|
|
7698 |
iVersion=TVersion( KTsyEtelMajorVersionNumber,
|
|
7699 |
KTsyEtelMinorVersionNumber,
|
|
7700 |
KTsyEtelBuildVersionNumber);
|
|
7701 |
}
|
|
7702 |
|
|
7703 |
CPhoneFactoryDMmTsy::~CPhoneFactoryDMmTsy()
|
|
7704 |
{
|
|
7705 |
LOGDESTROY();
|
|
7706 |
}
|
|
7707 |
|
|
7708 |
CPhoneBase * CPhoneFactoryDMmTsy::NewPhoneL(const TDesC& aName)
|
|
7709 |
{
|
|
7710 |
if (aName.Compare(DMMTSY_PHONE_NAME)==KErrNone)
|
|
7711 |
return CPhoneDMmTsy::NewL(this);
|
|
7712 |
else if (aName.Compare(DMMTSY_PHONE_NAMEAUTH1)==KErrNone)
|
|
7713 |
{
|
|
7714 |
CPhoneDMmTsy* phone=CPhoneDMmTsy::NewL(this);
|
|
7715 |
CleanupStack::PushL(phone);
|
|
7716 |
// it van be initialised in different ways by using name of the phone -
|
|
7717 |
// that's why different names of phones shall be used
|
|
7718 |
phone->iAuthInfo->iIMPI=DMMTSY_PHONE1_IMPI;
|
|
7719 |
phone->iAuthInfo->iIMPUArray.Append(DMMTSY_PHONE1_IMPU0);
|
|
7720 |
phone->iAuthInfo->iHomeNetworkDomainName=DMMTSY_PHONE1_HNDN;
|
|
7721 |
phone->iAuthInfo->iAuthenticationDataSource=DMMTSY_PHONE1_DATASOURCE;
|
|
7722 |
CleanupStack::Pop(phone);
|
|
7723 |
return phone;
|
|
7724 |
}
|
|
7725 |
else if (aName.Compare(DMMTSY_PHONE_NAMEAUTH2)==KErrNone)
|
|
7726 |
{
|
|
7727 |
CPhoneDMmTsy* phone=CPhoneDMmTsy::NewL(this);
|
|
7728 |
CleanupStack::PushL(phone);
|
|
7729 |
// it van be initialised in different ways by using name of the phone -
|
|
7730 |
// that's why different names of phones shall be used
|
|
7731 |
phone->iAuthInfo->iIMPI=DMMTSY_PHONE2_IMPI;
|
|
7732 |
phone->iAuthInfo->iIMPUArray.Append(DMMTSY_PHONE2_IMPU1);
|
|
7733 |
phone->iAuthInfo->iIMPUArray.Append(DMMTSY_PHONE2_IMPU2);
|
|
7734 |
phone->iAuthInfo->iIMPUArray.Append(DMMTSY_PHONE2_IMPU3);
|
|
7735 |
phone->iAuthInfo->iIMPUArray.Append(DMMTSY_PHONE2_IMPU4);
|
|
7736 |
phone->iAuthInfo->iHomeNetworkDomainName=DMMTSY_PHONE2_HNDN;
|
|
7737 |
phone->iAuthInfo->iAuthenticationDataSource=DMMTSY_PHONE2_DATASOURCE;
|
|
7738 |
CleanupStack::Pop(phone);
|
|
7739 |
return phone;
|
|
7740 |
}
|
|
7741 |
else if (aName.Compare(DMMTSY_PHONE_NAMEAUTH3)==KErrNone)
|
|
7742 |
{
|
|
7743 |
CPhoneDMmTsy* phone=CPhoneDMmTsy::NewL(this);
|
|
7744 |
CleanupStack::PushL(phone);
|
|
7745 |
// it van be initialised in different ways by using name of the phone -
|
|
7746 |
// that's why different names of phones shall be used
|
|
7747 |
phone->iAuthInfo->iIMPI=DMMTSY_PHONE3_IMPI;
|
|
7748 |
phone->iAuthInfo->iHomeNetworkDomainName=DMMTSY_PHONE3_HNDN;
|
|
7749 |
phone->iAuthInfo->iAuthenticationDataSource=DMMTSY_PHONE3_DATASOURCE;
|
|
7750 |
CleanupStack::Pop(phone);
|
|
7751 |
return phone;
|
|
7752 |
}
|
|
7753 |
return NULL;
|
|
7754 |
}
|
|
7755 |
|
|
7756 |
TBool CPhoneFactoryDMmTsy::IsSupported(const TInt /*aMixin*/)
|
|
7757 |
{
|
|
7758 |
return EFalse;
|
|
7759 |
}
|
|
7760 |
|
|
7761 |
//
|
|
7762 |
// methods for CActiveListNode
|
|
7763 |
//
|
|
7764 |
|
|
7765 |
CPhoneDMmTsy::CActiveListNode::CActiveListNode(CActive *aActive, const TTsyReqHandle aTsyReqHandle) :
|
|
7766 |
iActive(aActive), iTsyReqHandle(aTsyReqHandle)
|
|
7767 |
{
|
|
7768 |
|
|
7769 |
}
|
|
7770 |
|
|
7771 |
CPhoneDMmTsy::CActiveListNode::~CActiveListNode()
|
|
7772 |
{
|
|
7773 |
delete iActive;
|
|
7774 |
}
|
|
7775 |
|
|
7776 |
//
|
|
7777 |
// methods for the list of aos which corresspond to the outstanding delayed asyncrhonous reqs
|
|
7778 |
//
|
|
7779 |
|
|
7780 |
TInt CPhoneDMmTsy::FindDelayedReq(const TTsyReqHandle aTsyReqHandle, CActiveListNode *& aNode)
|
|
7781 |
{
|
|
7782 |
TInt err = KErrNotFound;
|
|
7783 |
TSglQueIter<CActiveListNode> iter(iActiveRequestObjects);
|
|
7784 |
iter.SetToFirst();
|
|
7785 |
|
|
7786 |
CActiveListNode *node = aNode = NULL;
|
|
7787 |
while ((node = iter++) != NULL)
|
|
7788 |
if (node->iTsyReqHandle == aTsyReqHandle)
|
|
7789 |
break;
|
|
7790 |
|
|
7791 |
if (node != NULL)
|
|
7792 |
{
|
|
7793 |
aNode = node;
|
|
7794 |
err = KErrNone;
|
|
7795 |
}
|
|
7796 |
|
|
7797 |
return err;
|
|
7798 |
}
|
|
7799 |
|
|
7800 |
TInt CPhoneDMmTsy::RemoveDelayedReq(const TTsyReqHandle aTsyReqHandle)
|
|
7801 |
{
|
|
7802 |
CActiveListNode *aNode = NULL;
|
|
7803 |
TInt err = FindDelayedReq(aTsyReqHandle,aNode);
|
|
7804 |
if (err == KErrNone)
|
|
7805 |
{
|
|
7806 |
iActiveRequestObjects.Remove(*aNode);
|
|
7807 |
delete aNode;
|
|
7808 |
}
|
|
7809 |
return err;
|
|
7810 |
}
|
|
7811 |
|
|
7812 |
void CPhoneDMmTsy::RegisterDelayedReqL(const TTsyReqHandle aTsyReqHandle, CTelObject *aTelObject)
|
|
7813 |
{
|
|
7814 |
CDelayedCompleter *delayed = CDelayedCompleter::NewL(aTsyReqHandle,this,aTelObject);
|
|
7815 |
CleanupStack::PushL(delayed);
|
|
7816 |
CActiveListNode *newNode = new (ELeave) CActiveListNode(delayed,aTsyReqHandle);
|
|
7817 |
iActiveRequestObjects.AddLast(*newNode);
|
|
7818 |
delayed->After(100000);
|
|
7819 |
CleanupStack::Pop(); // delayed
|
|
7820 |
}
|
|
7821 |
void CPhoneDMmTsy::RegisterDelayedReqL(const TTsyReqHandle aTsyReqHandle, CTelObject *aTelObject,TInt aPriority)
|
|
7822 |
{
|
|
7823 |
CDelayedCompleter *delayed = CDelayedCompleter::NewL(aTsyReqHandle,this,aTelObject);
|
|
7824 |
CleanupStack::PushL(delayed);
|
|
7825 |
CActiveListNode *newNode = new (ELeave) CActiveListNode(delayed,aTsyReqHandle);
|
|
7826 |
iActiveRequestObjects.AddLast(*newNode);
|
|
7827 |
delayed->After(aPriority);
|
|
7828 |
CleanupStack::Pop(); // delayed
|
|
7829 |
}
|
|
7830 |
void CPhoneDMmTsy::AddDelayedReq(const TTsyReqHandle aTsyReqHandle, CTelObject *aTelObject)
|
|
7831 |
{
|
|
7832 |
TRAPD(err, RegisterDelayedReqL(aTsyReqHandle, aTelObject));
|
|
7833 |
|
|
7834 |
if (err != KErrNone)
|
|
7835 |
{
|
|
7836 |
ReqCompleted(aTsyReqHandle, err);
|
|
7837 |
}
|
|
7838 |
}
|
|
7839 |
void CPhoneDMmTsy::AddDelayedReq(const TTsyReqHandle aTsyReqHandle, CTelObject *aTelObject,TInt aPriority)
|
|
7840 |
{
|
|
7841 |
TRAPD(err, RegisterDelayedReqL(aTsyReqHandle, aTelObject, aPriority));
|
|
7842 |
|
|
7843 |
|
|
7844 |
if (err != KErrNone)
|
|
7845 |
{
|
|
7846 |
ReqCompleted(aTsyReqHandle, err);
|
|
7847 |
}
|
|
7848 |
}
|
|
7849 |
|
|
7850 |
TInt CPhoneDMmTsy::NotifyAuthenticateDataChange(const TTsyReqHandle aTsyReqHandle,TDes8* aAuthInfo)
|
|
7851 |
{
|
|
7852 |
if(!iNotifyAuthenticationDataChange++)
|
|
7853 |
{
|
|
7854 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAuthenticationDataChange called"));
|
|
7855 |
RMobilePhone::TAuthInfoV8Pckg *authInfoV8Pckg = STATIC_CAST(RMobilePhone::TAuthInfoV8Pckg*,aAuthInfo);
|
|
7856 |
RMobilePhone::TAuthInfoV8 &authInfoV8 = (*authInfoV8Pckg)();
|
|
7857 |
authInfoV8.iAID = DMMTSY_PHONE_GBA_AID;
|
|
7858 |
authInfoV8.iData = DMMTSY_PHONE_AUTH_DATA_GBA_PARAMS;
|
|
7859 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7860 |
}
|
|
7861 |
return KErrNone;
|
|
7862 |
}
|
|
7863 |
|
|
7864 |
TInt CPhoneDMmTsy::NotifyAuthenticateDataChangeCancel(TTsyReqHandle aTsyReqHandle)
|
|
7865 |
{
|
|
7866 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyAuthenticationDataChangeCancel called"));
|
|
7867 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7868 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7869 |
return KErrNone;
|
|
7870 |
}
|
|
7871 |
|
|
7872 |
TInt CPhoneDMmTsy::SetGbaBootstrapParams(const TTsyReqHandle aTsyReqHandle,RMobilePhone::TAID* aAID,TDes8* aParams)
|
|
7873 |
{
|
|
7874 |
LOGTEXT(_L8("CPhoneDMmTsy::SetGbaBootstrapParams called"));
|
|
7875 |
RMobilePhone::TBsfDataV8Pckg *bsfDataV8Pckg = STATIC_CAST(RMobilePhone::TBsfDataV8Pckg*,aParams);
|
|
7876 |
RMobilePhone::TBsfDataV8 &bsfDataV8 = (*bsfDataV8Pckg)();
|
|
7877 |
if((bsfDataV8.iBtid != DMMTSY_PHONE_BSF_VALID_BTID) ||
|
|
7878 |
(bsfDataV8.iKeyLifetime != DMMTSY_PHONE_BSF_VALID_KEYLIFETIME) ||
|
|
7879 |
(*aAID != DMMTSY_PHONE_GBA_AID ))
|
|
7880 |
{
|
|
7881 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7882 |
}
|
|
7883 |
else
|
|
7884 |
{
|
|
7885 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7886 |
}
|
|
7887 |
return KErrNone;
|
|
7888 |
}
|
|
7889 |
|
|
7890 |
TInt CPhoneDMmTsy::SetGbaBootstrapParamsCancel(TTsyReqHandle aTsyReqHandle)
|
|
7891 |
{
|
|
7892 |
LOGTEXT(_L8("CPhoneDMmTsy::SetGbaBootstrapParamsCancel called"));
|
|
7893 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7894 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7895 |
return KErrNone;
|
|
7896 |
}
|
|
7897 |
|
|
7898 |
TInt CPhoneDMmTsy::GetAuthenticationParams(const TTsyReqHandle aTsyReqHandle,TDes8* aAuthInfo,TDes8* aParams)
|
|
7899 |
{
|
|
7900 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthenticationParams called"));
|
|
7901 |
RMobilePhone::TAuthInfoV8Pckg *authInfoV8Pckg = STATIC_CAST(RMobilePhone::TAuthInfoV8Pckg*,aAuthInfo);
|
|
7902 |
RMobilePhone::TAuthInfoV8 &authInfoV8 = (*authInfoV8Pckg)();
|
|
7903 |
if(authInfoV8.iData == DMMTSY_PHONE_AUTH_DATA_GBA_PARAMS && authInfoV8.iAID == DMMTSY_PHONE_GBA_AID)
|
|
7904 |
{
|
|
7905 |
RMobilePhone::TGbaBootstrapParamsV8Pckg *gbaBootstrapV8Pckg = STATIC_CAST(RMobilePhone::TGbaBootstrapParamsV8Pckg*,aParams);
|
|
7906 |
RMobilePhone::TGbaBootstrapParamsV8 &gbaBootstrapV8 = (*gbaBootstrapV8Pckg)();
|
|
7907 |
gbaBootstrapV8.iRand = DMMTSY_PHONE_GBA_RAND_IN;
|
|
7908 |
gbaBootstrapV8.iBtid = DMMTSY_PHONE_BSF_VALID_BTID;
|
|
7909 |
gbaBootstrapV8.iKeyLifetime = DMMTSY_PHONE_BSF_VALID_KEYLIFETIME;
|
|
7910 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7911 |
}
|
|
7912 |
else if(authInfoV8.iData == DMMTSY_PHONE_AUTH_DATA_MBMS_MUK && authInfoV8.iAID == DMMTSY_PHONE_MBMS_AID)
|
|
7913 |
{
|
|
7914 |
RMobilePhone::TMbmsUserKeyV8Pckg *mbmsUserKeyV8Pckg = STATIC_CAST(RMobilePhone::TMbmsUserKeyV8Pckg*,aParams);
|
|
7915 |
RMobilePhone::TMbmsUserKeyV8 &mbmsUserKeyV8 = (*mbmsUserKeyV8Pckg)();
|
|
7916 |
mbmsUserKeyV8.iMukIdi = DMMTSY_PHONE_MBMS_VALID_MUK_IDI;
|
|
7917 |
mbmsUserKeyV8.iMukIdr = DMMTSY_PHONE_MBMS_VALID_MUK_IDR;
|
|
7918 |
mbmsUserKeyV8.iTimeStampCounter = DMMTSY_PHONE_MBMS_VALID_MUK_ITIMESTM;
|
|
7919 |
AddDelayedReq(aTsyReqHandle,this);
|
|
7920 |
}
|
|
7921 |
else
|
|
7922 |
{
|
|
7923 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
7924 |
}
|
|
7925 |
return KErrNone;
|
|
7926 |
}
|
|
7927 |
|
|
7928 |
TInt CPhoneDMmTsy::GetAuthenticationParamsCancel(TTsyReqHandle aTsyReqHandle)
|
|
7929 |
{
|
|
7930 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthenticationParamsCancel called"));
|
|
7931 |
RemoveDelayedReq(aTsyReqHandle);
|
|
7932 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
7933 |
return KErrNone;
|
|
7934 |
}
|
|
7935 |
|
|
7936 |
TInt CPhoneDMmTsy::GetAuthenticationListPhase1(const TTsyReqHandle aTsyReqHandle,CRetrieveMobilePhoneAuthenticationIds::TAuthRequestData* aRequest,TInt* aBufSize)
|
|
7937 |
{
|
|
7938 |
LOGTEXT(_L8("CPhoneDMmTsy::GetAuthenticationListPhase1 called"));
|
|
7939 |
TInt ret=KErrNone;
|
|
7940 |
TInt leaveCode=KErrNone;
|
|
7941 |
|
|
7942 |
if (((aRequest->iAuthInfo.iData) == DMMTSY_PHONE_AUTH_DATA_NAF_LIST) ||
|
|
7943 |
((aRequest->iAuthInfo.iData) == DMMTSY_PHONE_AUTH_DATA_MBMS_MSK))
|
|
7944 |
{
|
|
7945 |
leaveCode = KErrNone;
|
|
7946 |
}
|
|
7947 |
else
|
|
7948 |
{
|
|
7949 |
leaveCode = KErrCorrupt;
|
|
7950 |
}
|
|
7951 |
|
|
7952 |
if (leaveCode == KErrNone)
|
|
7953 |
{
|
|
7954 |
if (aRequest->iAuthInfo.iData==DMMTSY_PHONE_AUTH_DATA_NAF_LIST)
|
|
7955 |
{
|
|
7956 |
TRAP(leaveCode, ret=ProcessGetGbaPhase1L(aTsyReqHandle, &aRequest->iClient,aBufSize););
|
|
7957 |
}
|
|
7958 |
else if(aRequest->iAuthInfo.iData==DMMTSY_PHONE_AUTH_DATA_MBMS_MSK)
|
|
7959 |
{
|
|
7960 |
TRAP(leaveCode, ret=ProcessGetMbmsPhase1L(aTsyReqHandle, &aRequest->iClient,aBufSize););
|
|
7961 |
}
|
|
7962 |
}
|
|
7963 |
|
|
7964 |
if (leaveCode != KErrNone)
|
|
7965 |
{
|
|
7966 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
7967 |
}
|
|
7968 |
return ret;
|
|
7969 |
};
|
|
7970 |
|
|
7971 |
TInt CPhoneDMmTsy::ProcessGetGbaPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
7972 |
RMobilePhone::TClientId* aId,TInt* aBufSize)
|
|
7973 |
{
|
|
7974 |
// read the list, store its content and then return size of this buffer to client
|
|
7975 |
CMobilePhoneGbaNafIdList* list=CMobilePhoneGbaNafIdList::NewL();
|
|
7976 |
CleanupStack::PushL(list);
|
|
7977 |
|
|
7978 |
RMobilePhone::TGbaNafEntryV8 entry;
|
|
7979 |
|
|
7980 |
// fill up an example list
|
|
7981 |
for (TInt index=0; index < DMMTSY_PHONE_GBA_NAFLIST_COUNT; index++)
|
|
7982 |
{
|
|
7983 |
switch (index)
|
|
7984 |
{
|
|
7985 |
case 0:
|
|
7986 |
entry.iNafId = DMMTSY_PHONE_GBA_NAFLIST_NAFID_ONE;
|
|
7987 |
entry.iBtid = DMMTSY_PHONE_GBA_NAFLIST_BTID_ONE;
|
|
7988 |
break;
|
|
7989 |
case 1:
|
|
7990 |
entry.iNafId = DMMTSY_PHONE_GBA_NAFLIST_NAFID_TWO;
|
|
7991 |
entry.iBtid = DMMTSY_PHONE_GBA_NAFLIST_BTID_TWO;
|
|
7992 |
break;
|
|
7993 |
case 2:
|
|
7994 |
entry.iNafId = DMMTSY_PHONE_GBA_NAFLIST_NAFID_THREE;
|
|
7995 |
entry.iBtid = DMMTSY_PHONE_GBA_NAFLIST_BTID_THREE;
|
|
7996 |
break;
|
|
7997 |
case 3:
|
|
7998 |
default:
|
|
7999 |
break;
|
|
8000 |
}
|
|
8001 |
// Add the entry into the list, at the next empty location
|
|
8002 |
list->AddEntryL(entry);
|
|
8003 |
}
|
|
8004 |
// Store the streamed list and the client ID
|
|
8005 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aId, aTsyReqHandle);
|
|
8006 |
CleanupStack::PushL(read);
|
|
8007 |
|
|
8008 |
read->iListBuf = list->StoreLC();
|
|
8009 |
CleanupStack::Pop(); // pop the CBufFlat allocated by StoreLC
|
|
8010 |
|
|
8011 |
iAuthReadAll->AppendL(read);
|
|
8012 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
8013 |
|
|
8014 |
// return the CBufFlat’s size to client
|
|
8015 |
*aBufSize=(read->iListBuf)->Size();
|
|
8016 |
|
|
8017 |
// Complete first phase of list retrieval
|
|
8018 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8019 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
8020 |
return KErrNone;
|
|
8021 |
}
|
|
8022 |
|
|
8023 |
TInt CPhoneDMmTsy::ProcessGetMbmsPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
8024 |
RMobilePhone::TClientId* aId,TInt* aBufSize)
|
|
8025 |
{
|
|
8026 |
// read the list, store its content and then return size of this buffer to client
|
|
8027 |
CMobilePhoneMbmsMskIdList* list=CMobilePhoneMbmsMskIdList::NewL();
|
|
8028 |
CleanupStack::PushL(list);
|
|
8029 |
|
|
8030 |
RMobilePhone::TMskEntryV8 entry;
|
|
8031 |
|
|
8032 |
// fill up an example list
|
|
8033 |
for (TInt index=0; index < DMMTSY_PHONE_MBMS_LIST_COUNT; index++)
|
|
8034 |
{
|
|
8035 |
switch (index)
|
|
8036 |
{
|
|
8037 |
case 0:
|
|
8038 |
entry.iKeyDomainId = DMMTSY_PHONE_MBMSLIST_KEYDMN_ONE;
|
|
8039 |
entry.iMskId = DMMTSY_PHONE_MBMSLIST_MSKID_ONE;
|
|
8040 |
entry.iTimeStampCounter = DMMTSY_PHONE_MBMSLIST_TIMESTM_ONE;
|
|
8041 |
break;
|
|
8042 |
case 1:
|
|
8043 |
entry.iKeyDomainId = DMMTSY_PHONE_MBMSLIST_KEYDMN_TWO;
|
|
8044 |
entry.iMskId = DMMTSY_PHONE_MBMSLIST_MSKID_TWO;
|
|
8045 |
entry.iTimeStampCounter = DMMTSY_PHONE_MBMSLIST_TIMESTM_TWO;
|
|
8046 |
break;
|
|
8047 |
case 2:
|
|
8048 |
entry.iKeyDomainId = DMMTSY_PHONE_MBMSLIST_KEYDMN_THREE;
|
|
8049 |
entry.iMskId = DMMTSY_PHONE_MBMSLIST_MSKID_THREE;
|
|
8050 |
entry.iTimeStampCounter = DMMTSY_PHONE_MBMSLIST_TIMESTM_THREE;
|
|
8051 |
break;
|
|
8052 |
case 3:
|
|
8053 |
default:
|
|
8054 |
break;
|
|
8055 |
}
|
|
8056 |
// Add the entry into the list, at the next empty location
|
|
8057 |
list->AddEntryL(entry);
|
|
8058 |
}
|
|
8059 |
// Store the streamed list and the client ID
|
|
8060 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aId, aTsyReqHandle);
|
|
8061 |
CleanupStack::PushL(read);
|
|
8062 |
|
|
8063 |
read->iListBuf = list->StoreLC();
|
|
8064 |
CleanupStack::Pop(); // pop the CBufFlat allocated by StoreLC
|
|
8065 |
|
|
8066 |
iAuthReadAll->AppendL(read);
|
|
8067 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
8068 |
|
|
8069 |
// return the CBufFlat’s size to client
|
|
8070 |
*aBufSize=(read->iListBuf)->Size();
|
|
8071 |
|
|
8072 |
// Complete first phase of list retrieval
|
|
8073 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8074 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
8075 |
return KErrNone;
|
|
8076 |
}
|
|
8077 |
|
|
8078 |
TInt CPhoneDMmTsy::GetAuthenticationListPhase2(TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aId, TDes8* aBuffer)
|
|
8079 |
{
|
|
8080 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadAllPhase2 called"));
|
|
8081 |
CListReadAllAttempt* read=NULL;
|
|
8082 |
// Find the read attempt from this client
|
|
8083 |
for (TInt i=0; i<iAuthReadAll->Count(); ++i)
|
|
8084 |
{
|
|
8085 |
read = iAuthReadAll->At(i);
|
|
8086 |
if ((read->iClient.iSessionHandle==aId->iSessionHandle) &&
|
|
8087 |
(read->iClient.iSubSessionHandle==aId->iSubSessionHandle))
|
|
8088 |
{
|
|
8089 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
8090 |
// Copy the streamed list to the client
|
|
8091 |
aBuffer->Copy(bufPtr);
|
|
8092 |
delete read;
|
|
8093 |
iAuthReadAll->Delete(i);
|
|
8094 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
8095 |
return KErrNone;
|
|
8096 |
}
|
|
8097 |
}
|
|
8098 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
8099 |
return KErrNotFound;
|
|
8100 |
}
|
|
8101 |
|
|
8102 |
TInt CPhoneDMmTsy::GetAuthenticationListCancel(const TTsyReqHandle aTsyReqHandle)
|
|
8103 |
{
|
|
8104 |
LOGTEXT(_L8("CPhoneDMmTsy::ReadAllCancel called"));
|
|
8105 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8106 |
// Remove the read all attempt from iAuthReadAll
|
|
8107 |
CListReadAllAttempt* read=NULL;
|
|
8108 |
for (TInt i=0; i<iAuthReadAll->Count(); ++i)
|
|
8109 |
{
|
|
8110 |
read = iAuthReadAll->At(i);
|
|
8111 |
if (read->iReqHandle == aTsyReqHandle)
|
|
8112 |
{
|
|
8113 |
delete read;
|
|
8114 |
iAuthReadAll->Delete(i);
|
|
8115 |
break;
|
|
8116 |
}
|
|
8117 |
}
|
|
8118 |
|
|
8119 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8120 |
return KErrNone;
|
|
8121 |
}
|
|
8122 |
|
|
8123 |
//
|
|
8124 |
// Wlan
|
|
8125 |
//
|
|
8126 |
TInt CPhoneDMmTsy::NotifyWlanDataChange(const TTsyReqHandle aTsyReqHandle,TDes8* aData)
|
|
8127 |
{
|
|
8128 |
if(!iNotifyWlanDataChange++)
|
|
8129 |
{
|
|
8130 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyWlanDataChange called"));
|
|
8131 |
RMobilePhone::TUsimWlanDataV8Pckg *WlanDataV8Pckg = STATIC_CAST(RMobilePhone::TUsimWlanDataV8Pckg*,aData);
|
|
8132 |
RMobilePhone::TUsimWlanDataV8 &WlanDataV8 = (*WlanDataV8Pckg)();
|
|
8133 |
WlanDataV8.iFieldsUsed = DMMTSY_PHONE_WLAN_LIST_DATA_FLAGS;
|
|
8134 |
WlanDataV8.iPseudonym = DMMTSY_PHONE_WLAN_VALID_PSEUDONYM;
|
|
8135 |
WlanDataV8.iReauthenticationId = DMMTSY_PHONE_WLAN_VALID_REAUTHID;
|
|
8136 |
WlanDataV8.iMasterKey = DMMTSY_PHONE_WLAN_VALID_MASTERKEY;
|
|
8137 |
WlanDataV8.iCounter = DMMTSY_PHONE_WLAN_VALID_COUNTER;
|
|
8138 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8139 |
}
|
|
8140 |
return KErrNone;
|
|
8141 |
}
|
|
8142 |
|
|
8143 |
TInt CPhoneDMmTsy::NotifyWlanDataChangeCancel(TTsyReqHandle aTsyReqHandle)
|
|
8144 |
{
|
|
8145 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyWlanDataChangeCancel called"));
|
|
8146 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8147 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8148 |
return KErrNone;
|
|
8149 |
}
|
|
8150 |
|
|
8151 |
TInt CPhoneDMmTsy::SetWlanData(const TTsyReqHandle aTsyReqHandle,TDes8* aData)
|
|
8152 |
{
|
|
8153 |
LOGTEXT(_L8("CPhoneDMmTsy::SetWlanData called"));
|
|
8154 |
RMobilePhone::TUsimWlanDataV8Pckg *WlanDataV8Pckg = STATIC_CAST(RMobilePhone::TUsimWlanDataV8Pckg*,aData);
|
|
8155 |
RMobilePhone::TUsimWlanDataV8 &WlanDataV8 = (*WlanDataV8Pckg)();
|
|
8156 |
if((WlanDataV8.iFieldsUsed != DMMTSY_PHONE_WLAN_LIST_DATA_FLAGS) ||
|
|
8157 |
(WlanDataV8.iPseudonym != DMMTSY_PHONE_WLAN_VALID_PSEUDONYM) ||
|
|
8158 |
(WlanDataV8.iReauthenticationId != DMMTSY_PHONE_WLAN_VALID_REAUTHID) ||
|
|
8159 |
(WlanDataV8.iMasterKey != DMMTSY_PHONE_WLAN_VALID_MASTERKEY) ||
|
|
8160 |
(WlanDataV8.iCounter != DMMTSY_PHONE_WLAN_VALID_COUNTER))
|
|
8161 |
{
|
|
8162 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
8163 |
}
|
|
8164 |
else
|
|
8165 |
{
|
|
8166 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8167 |
}
|
|
8168 |
|
|
8169 |
return KErrNone;
|
|
8170 |
}
|
|
8171 |
|
|
8172 |
TInt CPhoneDMmTsy::SetWlanDataCancel(TTsyReqHandle aTsyReqHandle)
|
|
8173 |
{
|
|
8174 |
LOGTEXT(_L8("CPhoneDMmTsy::SetWlanDataCancel called"));
|
|
8175 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8176 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8177 |
return KErrNone;
|
|
8178 |
}
|
|
8179 |
|
|
8180 |
TInt CPhoneDMmTsy::GetWlanData(const TTsyReqHandle aTsyReqHandle,TDes8* aData)
|
|
8181 |
{
|
|
8182 |
LOGTEXT(_L8("CPhoneDMmTsy::GetWlanData called"));
|
|
8183 |
RMobilePhone::TUsimWlanDataV8Pckg *WlanDataV8Pckg = STATIC_CAST(RMobilePhone::TUsimWlanDataV8Pckg*,aData);
|
|
8184 |
RMobilePhone::TUsimWlanDataV8 &WlanDataV8 = (*WlanDataV8Pckg)();
|
|
8185 |
WlanDataV8.iFieldsUsed = DMMTSY_PHONE_WLAN_LIST_DATA_FLAGS;
|
|
8186 |
WlanDataV8.iPseudonym = DMMTSY_PHONE_WLAN_VALID_PSEUDONYM;
|
|
8187 |
WlanDataV8.iReauthenticationId = DMMTSY_PHONE_WLAN_VALID_REAUTHID;
|
|
8188 |
WlanDataV8.iMasterKey = DMMTSY_PHONE_WLAN_VALID_MASTERKEY;
|
|
8189 |
WlanDataV8.iCounter = DMMTSY_PHONE_WLAN_VALID_COUNTER;
|
|
8190 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8191 |
return KErrNone;
|
|
8192 |
}
|
|
8193 |
|
|
8194 |
TInt CPhoneDMmTsy::GetWlanDataCancel(TTsyReqHandle aTsyReqHandle)
|
|
8195 |
{
|
|
8196 |
LOGTEXT(_L8("CPhoneDMmTsy::GetWlanDataCancel called"));
|
|
8197 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8198 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8199 |
return KErrNone;
|
|
8200 |
}
|
|
8201 |
|
|
8202 |
TInt CPhoneDMmTsy::StorePreferredWlanSIDList(const TTsyReqHandle aTsyReqHandle, TDes8* aBuffer)
|
|
8203 |
{
|
|
8204 |
LOGTEXT(_L8("CPhoneDMmTsy::StorePreferredWlanSIDList called"));
|
|
8205 |
TInt ret=KErrNone;
|
|
8206 |
TInt leaveCode=KErrNone;
|
|
8207 |
TRAP(leaveCode, ret=ProcessStorePreferredWlanSIDListL(aTsyReqHandle, aBuffer););
|
|
8208 |
if (leaveCode != KErrNone)
|
|
8209 |
{
|
|
8210 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
8211 |
}
|
|
8212 |
return ret;
|
|
8213 |
};
|
|
8214 |
|
|
8215 |
TInt CPhoneDMmTsy::ProcessStorePreferredWlanSIDListL(TTsyReqHandle aTsyReqHandle, TDes8* aBuffer)
|
|
8216 |
{
|
|
8217 |
CMobilePhoneStoredWlanSIDList* list=CMobilePhoneStoredWlanSIDList::NewL();
|
|
8218 |
CleanupStack::PushL(list);
|
|
8219 |
|
|
8220 |
list->RestoreL(*aBuffer);
|
|
8221 |
|
|
8222 |
RMobilePhone::TWlanSIDV8 entry;
|
|
8223 |
|
|
8224 |
if (list->Enumerate() != DMMTSY_PHONE_WLAN_SIDLIST_COUNT)
|
|
8225 |
{
|
|
8226 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
8227 |
CleanupStack::PopAndDestroy(); // list
|
|
8228 |
return KErrNone;
|
|
8229 |
}
|
|
8230 |
|
|
8231 |
TInt error=KErrNone;
|
|
8232 |
TInt ret;
|
|
8233 |
for (TInt i=0; i<DMMTSY_PHONE_WLAN_SIDLIST_COUNT; ++i)
|
|
8234 |
{
|
|
8235 |
TRAP(ret,entry=list->GetEntryL(i));
|
|
8236 |
if (ret != KErrNone)
|
|
8237 |
break;
|
|
8238 |
switch(i)
|
|
8239 |
{
|
|
8240 |
case 0:
|
|
8241 |
{
|
|
8242 |
if(entry.iWSID != DMMTSY_PHONE_WLAN_WSID_ONE ||
|
|
8243 |
entry.iUserDefined != DMMTSY_PHONE_WLAN_USERDEFD_ONE)
|
|
8244 |
{
|
|
8245 |
error = KErrCorrupt;
|
|
8246 |
}
|
|
8247 |
}
|
|
8248 |
break;
|
|
8249 |
case 1:
|
|
8250 |
{
|
|
8251 |
if(entry.iWSID != DMMTSY_PHONE_WLAN_WSID_TWO ||
|
|
8252 |
entry.iUserDefined != DMMTSY_PHONE_WLAN_USERDEFD_TWO)
|
|
8253 |
{
|
|
8254 |
error = KErrCorrupt;
|
|
8255 |
}
|
|
8256 |
}
|
|
8257 |
break;
|
|
8258 |
case 2:
|
|
8259 |
default:
|
|
8260 |
{
|
|
8261 |
if(entry.iWSID != DMMTSY_PHONE_WLAN_WSID_THREE ||
|
|
8262 |
entry.iUserDefined != DMMTSY_PHONE_WLAN_USERDEFD_THREE)
|
|
8263 |
{
|
|
8264 |
error = KErrCorrupt;
|
|
8265 |
}
|
|
8266 |
}
|
|
8267 |
break;
|
|
8268 |
}
|
|
8269 |
}
|
|
8270 |
if(error==KErrNone)
|
|
8271 |
{
|
|
8272 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8273 |
}
|
|
8274 |
else
|
|
8275 |
{
|
|
8276 |
ReqCompleted(aTsyReqHandle,KErrCorrupt);
|
|
8277 |
}
|
|
8278 |
CleanupStack::PopAndDestroy();
|
|
8279 |
return KErrNone;
|
|
8280 |
}
|
|
8281 |
|
|
8282 |
TInt CPhoneDMmTsy::StorePreferredWlanSIDListCancel(TTsyReqHandle aTsyReqHandle)
|
|
8283 |
{
|
|
8284 |
LOGTEXT(_L8("CPhoneDMmTsy::StorePreferredWlanSIDListCancel called"));
|
|
8285 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8286 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8287 |
return KErrNone;
|
|
8288 |
}
|
|
8289 |
|
|
8290 |
TInt CPhoneDMmTsy::NotifyPreferredWlanSIDListChange(TTsyReqHandle aTsyReqHandle)
|
|
8291 |
{
|
|
8292 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyPreferredWlanSIDListChange called"));
|
|
8293 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8294 |
return KErrNone;
|
|
8295 |
}
|
|
8296 |
|
|
8297 |
TInt CPhoneDMmTsy::NotifyPreferredWlanSIDListChangeCancel(TTsyReqHandle aTsyReqHandle)
|
|
8298 |
{
|
|
8299 |
LOGTEXT(_L8("CPhoneDMmTsy::NotifyPreferredWlanSIDListChangeCancel called"));
|
|
8300 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8301 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8302 |
return KErrNone;
|
|
8303 |
}
|
|
8304 |
|
|
8305 |
TInt CPhoneDMmTsy::GetPreferredWlanSIDsPhase1(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TInt* aBufSize)
|
|
8306 |
{
|
|
8307 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredWlanSIDsPhase1 called"));
|
|
8308 |
TInt ret=KErrNone;
|
|
8309 |
TInt leaveCode=KErrNone;
|
|
8310 |
TRAP(leaveCode, ret=ProcessGetPreferredWlanSIDsPhase1L(aTsyReqHandle, aClient, aBufSize););
|
|
8311 |
if (leaveCode != KErrNone)
|
|
8312 |
{
|
|
8313 |
ReqCompleted(aTsyReqHandle,leaveCode);
|
|
8314 |
}
|
|
8315 |
return ret;
|
|
8316 |
}
|
|
8317 |
|
|
8318 |
TInt CPhoneDMmTsy::ProcessGetPreferredWlanSIDsPhase1L(const TTsyReqHandle aTsyReqHandle,
|
|
8319 |
RMobilePhone::TClientId* aClient,
|
|
8320 |
TInt* aBufSize)
|
|
8321 |
{
|
|
8322 |
// retrieve stored Wlan specific IDs from USIM,
|
|
8323 |
// store each entry.
|
|
8324 |
// stream the list and then return size of this buffer to client
|
|
8325 |
CMobilePhoneStoredWlanSIDList* list=CMobilePhoneStoredWlanSIDList::NewL();
|
|
8326 |
CleanupStack::PushL(list);
|
|
8327 |
|
|
8328 |
RMobilePhone::TWlanSIDV8 entry;
|
|
8329 |
|
|
8330 |
// fill up an example list
|
|
8331 |
for (TInt index=0; index < DMMTSY_PHONE_WLAN_SIDLIST_COUNT; index++)
|
|
8332 |
{
|
|
8333 |
switch (index)
|
|
8334 |
{
|
|
8335 |
case 0:
|
|
8336 |
entry.iWSID = DMMTSY_PHONE_WLAN_WSID_ONE;
|
|
8337 |
entry.iUserDefined = DMMTSY_PHONE_WLAN_USERDEFD_ONE;
|
|
8338 |
break;
|
|
8339 |
|
|
8340 |
case 1:
|
|
8341 |
entry.iWSID = DMMTSY_PHONE_WLAN_WSID_TWO;
|
|
8342 |
entry.iUserDefined = DMMTSY_PHONE_WLAN_USERDEFD_TWO;
|
|
8343 |
break;
|
|
8344 |
|
|
8345 |
case 2:
|
|
8346 |
default:
|
|
8347 |
entry.iWSID = DMMTSY_PHONE_WLAN_WSID_THREE;
|
|
8348 |
entry.iUserDefined = DMMTSY_PHONE_WLAN_USERDEFD_THREE;
|
|
8349 |
break;
|
|
8350 |
}
|
|
8351 |
// Add the entry into the list, at the next empty location
|
|
8352 |
list->AddEntryL(entry);
|
|
8353 |
}
|
|
8354 |
// Store the streamed list and the client ID
|
|
8355 |
CListReadAllAttempt* read=CListReadAllAttempt::NewL(aClient,aTsyReqHandle);
|
|
8356 |
CleanupStack::PushL(read);
|
|
8357 |
|
|
8358 |
read->iListBuf = list->StoreLC();
|
|
8359 |
CleanupStack::Pop(); // pop the CBufBase allocated by StoreLC
|
|
8360 |
|
|
8361 |
iGetWlanSIDsData->AppendL(read);
|
|
8362 |
CleanupStack::Pop(); // pop the CListReadAllAttempt
|
|
8363 |
|
|
8364 |
// return the CBufBase’s size to client
|
|
8365 |
*aBufSize=(read->iListBuf)->Size();
|
|
8366 |
|
|
8367 |
// Complete first phase of list retrieval
|
|
8368 |
AddDelayedReq(aTsyReqHandle,this);
|
|
8369 |
CleanupStack::PopAndDestroy(); // pop&destroy list
|
|
8370 |
return KErrNone;
|
|
8371 |
}
|
|
8372 |
|
|
8373 |
TInt CPhoneDMmTsy::GetPreferredWlanSIDsPhase2(const TTsyReqHandle aTsyReqHandle, RMobilePhone::TClientId* aClient, TDes8* aBuf)
|
|
8374 |
{
|
|
8375 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredNetworksPhase2 called"));
|
|
8376 |
CListReadAllAttempt* read=NULL;
|
|
8377 |
// Find the get preferred wlan SIDs from this client
|
|
8378 |
for (TInt i=0; i<iGetWlanSIDsData->Count(); ++i)
|
|
8379 |
{
|
|
8380 |
read = iGetWlanSIDsData->At(i);
|
|
8381 |
if ((read->iClient.iSessionHandle==aClient->iSessionHandle) &&
|
|
8382 |
(read->iClient.iSubSessionHandle==aClient->iSubSessionHandle))
|
|
8383 |
{
|
|
8384 |
TPtr8 bufPtr((read->iListBuf)->Ptr(0));
|
|
8385 |
// Copy the streamed list to the client
|
|
8386 |
aBuf->Copy(bufPtr);
|
|
8387 |
delete read;
|
|
8388 |
iGetWlanSIDsData->Delete(i);
|
|
8389 |
ReqCompleted(aTsyReqHandle,KErrNone);
|
|
8390 |
return KErrNone;
|
|
8391 |
}
|
|
8392 |
}
|
|
8393 |
// Should handle error case of not finding the matching client from read all phase 1
|
|
8394 |
return KErrNotFound;
|
|
8395 |
}
|
|
8396 |
|
|
8397 |
TInt CPhoneDMmTsy::GetPreferredWlanSIDsCancel(const TTsyReqHandle aTsyReqHandle)
|
|
8398 |
{
|
|
8399 |
LOGTEXT(_L8("CPhoneDMmTsy::GetPreferredWlanSIDsCancel called"));
|
|
8400 |
RemoveDelayedReq(aTsyReqHandle);
|
|
8401 |
// Remove the read all attempt from iGetWlanSIDsData
|
|
8402 |
CListReadAllAttempt* read=NULL;
|
|
8403 |
for (TInt i=0; i<iGetWlanSIDsData->Count(); ++i)
|
|
8404 |
{
|
|
8405 |
read = iGetWlanSIDsData->At(i);
|
|
8406 |
if (read->iReqHandle == aTsyReqHandle)
|
|
8407 |
{
|
|
8408 |
delete read;
|
|
8409 |
iGetWlanSIDsData->Delete(i);
|
|
8410 |
break;
|
|
8411 |
}
|
|
8412 |
}
|
|
8413 |
ReqCompleted(aTsyReqHandle,KErrCancel);
|
|
8414 |
return KErrNone;
|
|
8415 |
}
|
|
8416 |
|
|
8417 |
/*******************************************************************/
|
|
8418 |
//
|
|
8419 |
// CDelayedCompleter
|
|
8420 |
//
|
|
8421 |
/*******************************************************************/
|
|
8422 |
|
|
8423 |
|
|
8424 |
|
|
8425 |
CDelayedCompleter::CDelayedCompleter(const TTsyReqHandle aTsyReqHandle, CPhoneDMmTsy *aPhoneObject,
|
|
8426 |
CTelObject *aTelObject) :
|
|
8427 |
CTimer(EPriorityStandard),iTsyReqHandle(aTsyReqHandle), iPhoneObject(aPhoneObject),
|
|
8428 |
iTelObject(aTelObject)
|
|
8429 |
{
|
|
8430 |
|
|
8431 |
}
|
|
8432 |
|
|
8433 |
CDelayedCompleter* CDelayedCompleter::NewL(const TTsyReqHandle aTsyReqHandle, CPhoneDMmTsy *aPhoneObject,
|
|
8434 |
CTelObject *aTelObject)
|
|
8435 |
{
|
|
8436 |
CDelayedCompleter* This = new (ELeave) CDelayedCompleter(aTsyReqHandle,aPhoneObject,aTelObject);
|
|
8437 |
CleanupStack::PushL(This);
|
|
8438 |
This->ConstructL();
|
|
8439 |
CleanupStack::Pop();
|
|
8440 |
return This;
|
|
8441 |
}
|
|
8442 |
|
|
8443 |
void CDelayedCompleter::ConstructL()
|
|
8444 |
{
|
|
8445 |
CTimer::ConstructL();
|
|
8446 |
CActiveScheduler::Add(this);
|
|
8447 |
}
|
|
8448 |
|
|
8449 |
void CDelayedCompleter::RunL()
|
|
8450 |
{
|
|
8451 |
iTelObject->ReqCompleted(iTsyReqHandle,KErrNone);
|
|
8452 |
(void) iPhoneObject->RemoveDelayedReq(iTsyReqHandle); // we get deleted here
|
|
8453 |
}
|