telephonyserverplugins/common_tsy/commontsy/src/mmgsmwcdma/cmmphonegsmwcdmaext.cpp
equal
deleted
inserted
replaced
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
14 // |
14 // |
15 |
15 |
16 |
16 |
17 |
17 |
18 // INCLUDE FILES |
18 // INCLUDE FILES |
|
19 |
|
20 #include "OstTraceDefinitions.h" |
|
21 #ifdef OST_TRACE_COMPILER_IN_USE |
|
22 #include "cmmphonegsmwcdmaextTraces.h" |
|
23 #endif |
|
24 |
19 #include <etelmm.h> |
25 #include <etelmm.h> |
20 #include "cmmphonegsmwcdmaext.h" |
26 #include "cmmphonegsmwcdmaext.h" |
21 #include "cmmphonetsy.h" |
27 #include "cmmphonetsy.h" |
22 #include "cmmlinetsy.h" |
28 #include "cmmlinetsy.h" |
23 #include "cmmcalltsy.h" |
29 #include "cmmcalltsy.h" |
151 // (other items were commented in a header). |
157 // (other items were commented in a header). |
152 // --------------------------------------------------------------------------- |
158 // --------------------------------------------------------------------------- |
153 // |
159 // |
154 TInt CMmPhoneGsmWcdmaExt::InitSimL() |
160 TInt CMmPhoneGsmWcdmaExt::InitSimL() |
155 { |
161 { |
156 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::InitSimL"); |
162 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_INITSIML_1, "TSY: CMmPhoneGsmWcdmaExt::InitSimL"); |
157 |
163 |
158 TInt ret( KErrGeneral ); |
164 TInt ret( KErrGeneral ); |
159 |
165 |
160 //get the home network information in boot-up |
166 //get the home network information in boot-up |
161 iMessageManager->HandleRequestL( EMobilePhoneGetHomeNetwork ); |
167 iMessageManager->HandleRequestL( EMobilePhoneGetHomeNetwork ); |
176 // --------------------------------------------------------------------------- |
182 // --------------------------------------------------------------------------- |
177 // |
183 // |
178 TInt CMmPhoneGsmWcdmaExt::GetNetworkCaps( |
184 TInt CMmPhoneGsmWcdmaExt::GetNetworkCaps( |
179 TUint32* aCaps ) |
185 TUint32* aCaps ) |
180 { |
186 { |
181 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetNetworkCaps"); |
187 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETNETWORKCAPS_1, "TSY: CMmPhoneGsmWcdmaExt::GetNetworkCaps"); |
182 |
188 |
183 *aCaps = RMobilePhone::KCapsGetRegistrationStatus |
189 *aCaps = RMobilePhone::KCapsGetRegistrationStatus |
184 | RMobilePhone::KCapsNotifyRegistrationStatus |
190 | RMobilePhone::KCapsNotifyRegistrationStatus |
185 | RMobilePhone::KCapsGetCurrentMode |
191 | RMobilePhone::KCapsGetCurrentMode |
186 | RMobilePhone::KCapsNotifyMode |
192 | RMobilePhone::KCapsNotifyMode |
204 // |
210 // |
205 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV1( |
211 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV1( |
206 RMobilePhone::TMobilePhoneNetworkInfoV1* aNetInfo, |
212 RMobilePhone::TMobilePhoneNetworkInfoV1* aNetInfo, |
207 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
213 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
208 { |
214 { |
209 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV1"); |
215 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKV1_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV1"); |
210 |
216 |
211 if ( NULL != aNetInfo ) |
217 if ( NULL != aNetInfo ) |
212 { |
218 { |
213 // version 1 information, copy the values |
219 // version 1 information, copy the values |
214 aNetInfo->iMode = iCurrentNwInfo->iMode; |
220 aNetInfo->iMode = iCurrentNwInfo->iMode; |
240 // |
246 // |
241 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV2( |
247 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV2( |
242 RMobilePhone::TMobilePhoneNetworkInfoV2* aNetInfo, |
248 RMobilePhone::TMobilePhoneNetworkInfoV2* aNetInfo, |
243 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
249 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
244 { |
250 { |
245 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV2"); |
251 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKV2_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV2"); |
246 |
252 |
247 if ( NULL != aNetInfo ) |
253 if ( NULL != aNetInfo ) |
248 { |
254 { |
249 // version 1 information |
255 // version 1 information |
250 aNetInfo->iMode = iCurrentNwInfo->iMode; |
256 aNetInfo->iMode = iCurrentNwInfo->iMode; |
278 // |
284 // |
279 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV5( |
285 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkV5( |
280 RMobilePhone::TMobilePhoneNetworkInfoV5* aNetInfo, |
286 RMobilePhone::TMobilePhoneNetworkInfoV5* aNetInfo, |
281 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
287 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
282 { |
288 { |
283 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV5" ); |
289 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKV5_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkV5" ); |
284 |
290 |
285 if ( NULL != aNetInfo ) |
291 if ( NULL != aNetInfo ) |
286 { |
292 { |
287 // version 1 information |
293 // version 1 information |
288 aNetInfo->iMode = iCurrentNwInfo->iMode; |
294 aNetInfo->iMode = iCurrentNwInfo->iMode; |
321 // |
327 // |
322 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetwork( |
328 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetwork( |
323 RMobilePhone::TMobilePhoneNetworkInfoV8* aNetInfo, |
329 RMobilePhone::TMobilePhoneNetworkInfoV8* aNetInfo, |
324 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
330 RMobilePhone::TMobilePhoneLocationAreaV1* aArea ) |
325 { |
331 { |
326 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetwork" ); |
332 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORK_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetwork" ); |
327 |
333 |
328 if ( NULL != aNetInfo ) |
334 if ( NULL != aNetInfo ) |
329 { |
335 { |
330 // version 1 information |
336 // version 1 information |
331 aNetInfo->iMode = iCurrentNwInfo->iMode; |
337 aNetInfo->iMode = iCurrentNwInfo->iMode; |
366 // --------------------------------------------------------------------------- |
372 // --------------------------------------------------------------------------- |
367 // |
373 // |
368 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV1( |
374 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV1( |
369 RMobilePhone::TMobilePhoneNetworkInfoV1* aNetInfo ) |
375 RMobilePhone::TMobilePhoneNetworkInfoV1* aNetInfo ) |
370 { |
376 { |
371 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV1" ); |
377 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKNOLOCATIONV1_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV1" ); |
372 |
378 |
373 if ( NULL != aNetInfo ) |
379 if ( NULL != aNetInfo ) |
374 { |
380 { |
375 // version 1 network information |
381 // version 1 network information |
376 aNetInfo->iMode = iCurrentNwInfo->iMode; |
382 aNetInfo->iMode = iCurrentNwInfo->iMode; |
396 // --------------------------------------------------------------------------- |
402 // --------------------------------------------------------------------------- |
397 // |
403 // |
398 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV2( |
404 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV2( |
399 RMobilePhone::TMobilePhoneNetworkInfoV2* aNetInfo ) |
405 RMobilePhone::TMobilePhoneNetworkInfoV2* aNetInfo ) |
400 { |
406 { |
401 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV2" ); |
407 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKNOLOCATIONV2_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV2" ); |
402 |
408 |
403 if ( NULL != aNetInfo ) |
409 if ( NULL != aNetInfo ) |
404 { |
410 { |
405 // version 1 information |
411 // version 1 information |
406 aNetInfo->iMode = iCurrentNwInfo->iMode; |
412 aNetInfo->iMode = iCurrentNwInfo->iMode; |
428 // --------------------------------------------------------------------------- |
434 // --------------------------------------------------------------------------- |
429 // |
435 // |
430 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV5( |
436 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV5( |
431 RMobilePhone::TMobilePhoneNetworkInfoV5* aNetInfo ) |
437 RMobilePhone::TMobilePhoneNetworkInfoV5* aNetInfo ) |
432 { |
438 { |
433 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV5" ); |
439 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKNOLOCATIONV5_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocationV5" ); |
434 |
440 |
435 if ( NULL != aNetInfo ) |
441 if ( NULL != aNetInfo ) |
436 { |
442 { |
437 // version 1 information |
443 // version 1 information |
438 aNetInfo->iMode = iCurrentNwInfo->iMode; |
444 aNetInfo->iMode = iCurrentNwInfo->iMode; |
465 // --------------------------------------------------------------------------- |
471 // --------------------------------------------------------------------------- |
466 // |
472 // |
467 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocation( |
473 TInt CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocation( |
468 RMobilePhone::TMobilePhoneNetworkInfoV8* aNetInfo ) |
474 RMobilePhone::TMobilePhoneNetworkInfoV8* aNetInfo ) |
469 { |
475 { |
470 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocation" ); |
476 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCURRENTNETWORKNOLOCATION_1, "TSY: CMmPhoneGsmWcdmaExt::GetCurrentNetworkNoLocation" ); |
471 |
477 |
472 if ( NULL != aNetInfo ) |
478 if ( NULL != aNetInfo ) |
473 { |
479 { |
474 // version 1 information |
480 // version 1 information |
475 aNetInfo->iMode = iCurrentNwInfo->iMode; |
481 aNetInfo->iMode = iCurrentNwInfo->iMode; |
507 TInt CMmPhoneGsmWcdmaExt::SetCurrentNetwork( |
513 TInt CMmPhoneGsmWcdmaExt::SetCurrentNetwork( |
508 const RMobilePhone::TMobilePhoneNetworkInfoV8& aNetInfo, |
514 const RMobilePhone::TMobilePhoneNetworkInfoV8& aNetInfo, |
509 const RMobilePhone::TMobilePhoneLocationAreaV1& aArea ) |
515 const RMobilePhone::TMobilePhoneLocationAreaV1& aArea ) |
510 |
516 |
511 { |
517 { |
512 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::SetCurrentNetwork" ); |
518 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_SETCURRENTNETWORK_1, "TSY: CMmPhoneGsmWcdmaExt::SetCurrentNetwork" ); |
513 |
519 |
514 *iCurrentNwInfo = aNetInfo; |
520 *iCurrentNwInfo = aNetInfo; |
515 *iCurrentLocationArea = aArea; |
521 *iCurrentLocationArea = aArea; |
516 |
522 |
517 return KErrNone; |
523 return KErrNone; |
524 // --------------------------------------------------------------------------- |
530 // --------------------------------------------------------------------------- |
525 // |
531 // |
526 TInt CMmPhoneGsmWcdmaExt::GetNITZInfo( |
532 TInt CMmPhoneGsmWcdmaExt::GetNITZInfo( |
527 RMobilePhone::TMobilePhoneNITZ* aNwtTimeInfo ) |
533 RMobilePhone::TMobilePhoneNITZ* aNwtTimeInfo ) |
528 { |
534 { |
529 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetNITZInfo" ); |
535 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETNITZINFO_1, "TSY: CMmPhoneGsmWcdmaExt::GetNITZInfo" ); |
530 |
536 |
531 TInt ret( KErrNotFound ); |
537 TInt ret( KErrNotFound ); |
532 |
538 |
533 // If time is valid, copy it to client side |
539 // If time is valid, copy it to client side |
534 if ( 0 != iNitzInfo.iNitzFieldsUsed ) |
540 if ( 0 != iNitzInfo.iNitzFieldsUsed ) |
566 // --------------------------------------------------------------------------- |
572 // --------------------------------------------------------------------------- |
567 // |
573 // |
568 void CMmPhoneGsmWcdmaExt::ReceivedNITZInfo( |
574 void CMmPhoneGsmWcdmaExt::ReceivedNITZInfo( |
569 RMobilePhone::TMobilePhoneNITZ& aNITZInfo ) |
575 RMobilePhone::TMobilePhoneNITZ& aNITZInfo ) |
570 { |
576 { |
571 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::ReceivedNITZInfo" ); |
577 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_RECEIVEDNITZINFO_1, "TSY: CMmPhoneGsmWcdmaExt::ReceivedNITZInfo" ); |
572 |
578 |
573 // This information is not necessarily available if network time |
579 // This information is not necessarily available if network time |
574 // indication is received only once in bootup, before registration to NW. |
580 // indication is received only once in bootup, before registration to NW. |
575 if ( 0 != iCurrentNwInfo->iShortName.Length() ) |
581 if ( 0 != iCurrentNwInfo->iShortName.Length() ) |
576 { |
582 { |
599 // (other items were commented in a header). |
605 // (other items were commented in a header). |
600 // --------------------------------------------------------------------------- |
606 // --------------------------------------------------------------------------- |
601 // |
607 // |
602 TInt CMmPhoneGsmWcdmaExt::GetCellInfoL() |
608 TInt CMmPhoneGsmWcdmaExt::GetCellInfoL() |
603 { |
609 { |
604 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetCellInfoL" ); |
610 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETCELLINFOL_1, "TSY: CMmPhoneGsmWcdmaExt::GetCellInfoL" ); |
605 TInt ret = iMessageManager->HandleRequestL( ECtsyPhoneCellInfoReq ); |
611 TInt ret = iMessageManager->HandleRequestL( ECtsyPhoneCellInfoReq ); |
606 return ret; |
612 return ret; |
607 } |
613 } |
608 |
614 |
609 // --------------------------------------------------------------------------- |
615 // --------------------------------------------------------------------------- |
612 // (other items were commented in a header). |
618 // (other items were commented in a header). |
613 // --------------------------------------------------------------------------- |
619 // --------------------------------------------------------------------------- |
614 // |
620 // |
615 TInt CMmPhoneGsmWcdmaExt::NotifyCellInfoChangeL() |
621 TInt CMmPhoneGsmWcdmaExt::NotifyCellInfoChangeL() |
616 { |
622 { |
617 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::NotifyCellInfoChangeL" ); |
623 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_NOTIFYCELLINFOCHANGEL_1, "TSY: CMmPhoneGsmWcdmaExt::NotifyCellInfoChangeL" ); |
618 TInt ret = iMessageManager->HandleRequestL( ECtsyPhoneCellInfoIndReq ); |
624 TInt ret = iMessageManager->HandleRequestL( ECtsyPhoneCellInfoIndReq ); |
619 return ret; |
625 return ret; |
620 } |
626 } |
621 |
627 |
622 // --------------------------------------------------------------------------- |
628 // --------------------------------------------------------------------------- |
628 // |
634 // |
629 void CMmPhoneGsmWcdmaExt::CompleteNotifyNetworkRegistrationStatusChange( |
635 void CMmPhoneGsmWcdmaExt::CompleteNotifyNetworkRegistrationStatusChange( |
630 RMobilePhone::TMobilePhoneRegistrationStatus aRegistrationStatus ) |
636 RMobilePhone::TMobilePhoneRegistrationStatus aRegistrationStatus ) |
631 // New registration status from network |
637 // New registration status from network |
632 { |
638 { |
633 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::CompleteNotifyNetworkRegistrationStatusChange" ); |
639 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_COMPLETENOTIFYNETWORKREGISTRATIONSTATUSCHANGE_1, "TSY: CMmPhoneGsmWcdmaExt::CompleteNotifyNetworkRegistrationStatusChange" ); |
634 |
640 |
635 // If registration status not registered, then reset network information |
641 // If registration status not registered, then reset network information |
636 switch( aRegistrationStatus ) |
642 switch( aRegistrationStatus ) |
637 { |
643 { |
638 case RMobilePhone::ERegistrationUnknown: |
644 case RMobilePhone::ERegistrationUnknown: |
664 // --------------------------------------------------------------------------- |
670 // --------------------------------------------------------------------------- |
665 // |
671 // |
666 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV1( |
672 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV1( |
667 RMobilePhone::TMobilePhoneNetworkInfoV1* aHomeNetInfo ) |
673 RMobilePhone::TMobilePhoneNetworkInfoV1* aHomeNetInfo ) |
668 { |
674 { |
669 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV1" ); |
675 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETHOMENETWORKV1_1, "TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV1" ); |
670 |
676 |
671 TInt ret( KErrNone ); |
677 TInt ret( KErrNone ); |
672 |
678 |
673 // If the home network info is available.. |
679 // If the home network info is available.. |
674 if ( iIsHomeNetworkInfoAvailable ) |
680 if ( iIsHomeNetworkInfoAvailable ) |
702 // --------------------------------------------------------------------------- |
708 // --------------------------------------------------------------------------- |
703 // |
709 // |
704 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV2( |
710 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV2( |
705 RMobilePhone::TMobilePhoneNetworkInfoV2* aHomeNetInfo ) |
711 RMobilePhone::TMobilePhoneNetworkInfoV2* aHomeNetInfo ) |
706 { |
712 { |
707 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV2" ); |
713 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETHOMENETWORKV2_1, "TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV2" ); |
708 |
714 |
709 TInt ret( KErrNone ); |
715 TInt ret( KErrNone ); |
710 |
716 |
711 // If the home network info is available.. |
717 // If the home network info is available.. |
712 if ( iIsHomeNetworkInfoAvailable ) |
718 if ( iIsHomeNetworkInfoAvailable ) |
743 // |
749 // |
744 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV5( |
750 TInt CMmPhoneGsmWcdmaExt::GetHomeNetworkV5( |
745 RMobilePhone::TMobilePhoneNetworkInfoV5* aHomeNetInfo ) |
751 RMobilePhone::TMobilePhoneNetworkInfoV5* aHomeNetInfo ) |
746 // pointer to HomeNetInfo |
752 // pointer to HomeNetInfo |
747 { |
753 { |
748 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV5" ); |
754 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETHOMENETWORKV5_1, "TSY: CMmPhoneGsmWcdmaExt::GetHomeNetworkV5" ); |
749 |
755 |
750 TInt ret( KErrNone ); |
756 TInt ret( KErrNone ); |
751 |
757 |
752 // If the home network info is available.. |
758 // If the home network info is available.. |
753 if ( iIsHomeNetworkInfoAvailable ) |
759 if ( iIsHomeNetworkInfoAvailable ) |
789 // |
795 // |
790 TInt CMmPhoneGsmWcdmaExt::GetHomeNetwork( |
796 TInt CMmPhoneGsmWcdmaExt::GetHomeNetwork( |
791 RMobilePhone::TMobilePhoneNetworkInfoV8* aHomeNetInfo ) |
797 RMobilePhone::TMobilePhoneNetworkInfoV8* aHomeNetInfo ) |
792 // pointer to HomeNetInfo |
798 // pointer to HomeNetInfo |
793 { |
799 { |
794 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::GetHomeNetwork" ); |
800 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_GETHOMENETWORK_1, "TSY: CMmPhoneGsmWcdmaExt::GetHomeNetwork" ); |
795 |
801 |
796 TInt ret( KErrNone ); |
802 TInt ret( KErrNone ); |
797 |
803 |
798 // If the home network info is available.. |
804 // If the home network info is available.. |
799 if ( iIsHomeNetworkInfoAvailable ) |
805 if ( iIsHomeNetworkInfoAvailable ) |
1232 TInt CMmPhoneGsmWcdmaExt::DeliverCode( |
1238 TInt CMmPhoneGsmWcdmaExt::DeliverCode( |
1233 RMobilePhone::TCodeAndUnblockCode aCodes ) |
1239 RMobilePhone::TCodeAndUnblockCode aCodes ) |
1234 { |
1240 { |
1235 iSecCode.Copy( aCodes.iCode ); |
1241 iSecCode.Copy( aCodes.iCode ); |
1236 |
1242 |
1237 TFLOGSTRING2( "TSY: CMmPhoneGsmWcdmaExt::DeliverCode iSecCode: %S", &iSecCode ); |
1243 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_DELIVERCODE_1, "TSY: CMmPhoneGsmWcdmaExt::DeliverCode iSecCode: %S", iSecCode ); |
1238 |
1244 |
1239 return KErrNone; |
1245 return KErrNone; |
1240 } |
1246 } |
1241 |
1247 |
1242 // --------------------------------------------------------------------------- |
1248 // --------------------------------------------------------------------------- |
1352 // --------------------------------------------------------------------------- |
1358 // --------------------------------------------------------------------------- |
1353 // |
1359 // |
1354 TInt CMmPhoneGsmWcdmaExt::SetLockSettingL( |
1360 TInt CMmPhoneGsmWcdmaExt::SetLockSettingL( |
1355 CMmDataPackage* aPackage ) |
1361 CMmDataPackage* aPackage ) |
1356 { |
1362 { |
1357 TFLOGSTRING("LTSY: CMmPhoneGsmWcdmaExt::SetLockSettingL" ); |
1363 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_SETLOCKSETTINGL_1, "LTSY: CMmPhoneGsmWcdmaExt::SetLockSettingL" ); |
1358 |
1364 |
1359 TLockAndSetting lockAndSetting; |
1365 TLockAndSetting lockAndSetting; |
1360 aPackage->UnPackData( &lockAndSetting.iLock, &lockAndSetting.iSetting ); |
1366 aPackage->UnPackData( &lockAndSetting.iLock, &lockAndSetting.iSetting ); |
1361 |
1367 |
1362 //check if there is a code available for this message |
1368 //check if there is a code available for this message |
1508 // --------------------------------------------------------------------------- |
1514 // --------------------------------------------------------------------------- |
1509 // |
1515 // |
1510 void CMmPhoneGsmWcdmaExt::CompleteGetHomeNetwork( |
1516 void CMmPhoneGsmWcdmaExt::CompleteGetHomeNetwork( |
1511 CMmDataPackage* aDataPackage ) |
1517 CMmDataPackage* aDataPackage ) |
1512 { |
1518 { |
1513 TFLOGSTRING("TSY: CMmPhoneGsmWcdmaExt::CompleteGetHomeNetwork" ); |
1519 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONEGSMWCDMAEXT_COMPLETEGETHOMENETWORK_1, "TSY: CMmPhoneGsmWcdmaExt::CompleteGetHomeNetwork" ); |
1514 |
1520 |
1515 RMobilePhone::TMobilePhoneNetworkInfoV8* homeInfo = NULL; |
1521 RMobilePhone::TMobilePhoneNetworkInfoV8* homeInfo = NULL; |
1516 aDataPackage->UnPackData ( &homeInfo ); |
1522 aDataPackage->UnPackData ( &homeInfo ); |
1517 if ( KEtelExtMultimodeV8 == homeInfo->ExtensionId() ) |
1523 if ( KEtelExtMultimodeV8 == homeInfo->ExtensionId() ) |
1518 { |
1524 { |