branch | RCL_3 |
changeset 19 | 630d2f34d719 |
parent 18 | 17af172ffa5f |
child 20 | 07a122eea281 |
18:17af172ffa5f | 19:630d2f34d719 |
---|---|
11 // Contributors: |
11 // Contributors: |
12 // |
12 // |
13 // Description: |
13 // Description: |
14 // |
14 // |
15 |
15 |
16 |
|
17 #include "OstTraceDefinitions.h" |
|
18 #ifdef OST_TRACE_COMPILER_IN_USE |
|
19 #include "cmmphonetsyTraces.h" |
|
20 #endif |
|
16 |
21 |
17 |
22 |
18 //INCLUDES |
23 //INCLUDES |
19 #include <etelmm.h> |
24 #include <etelmm.h> |
20 #include <etelmmerr.h> |
25 #include <etelmmerr.h> |
88 EXPORT_C CMmPhoneTsy* CMmPhoneTsy::NewL ( |
93 EXPORT_C CMmPhoneTsy* CMmPhoneTsy::NewL ( |
89 CMmMessageManagerBase* aMessageManager, |
94 CMmMessageManagerBase* aMessageManager, |
90 CMmPhoneFactoryTsy* aMmPhoneFactoryTsy, |
95 CMmPhoneFactoryTsy* aMmPhoneFactoryTsy, |
91 MLtsyFactoryBase* aFactory ) |
96 MLtsyFactoryBase* aFactory ) |
92 { |
97 { |
93 TFLOGSTRING2("TSY: CMmPhoneTsy::NewL - Phone model Id: %S", &KPhoneModelId); |
98 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, CMMPHONETSY_NEWL_1, "TSY: CMmPhoneTsy::NewL - Phone model Id: %S", KPhoneModelId); |
94 CleanupStack::PushL( aMessageManager ); |
99 CleanupStack::PushL( aMessageManager ); |
95 CMmPhoneTsy* mmPhoneTsy = new (ELeave) CMmPhoneTsy(); |
100 CMmPhoneTsy* mmPhoneTsy = new (ELeave) CMmPhoneTsy(); |
96 |
101 |
97 mmPhoneTsy->iMessageManager = aMessageManager; |
102 mmPhoneTsy->iMessageManager = aMessageManager; |
98 CleanupStack::Pop(aMessageManager); |
103 CleanupStack::Pop(aMessageManager); |
128 { |
133 { |
129 } |
134 } |
130 |
135 |
131 void CMmPhoneTsy::ConstructL() |
136 void CMmPhoneTsy::ConstructL() |
132 { |
137 { |
133 TFLOGSTRING("TSY: CMmPhoneTsy::ConstructL"); |
138 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CONSTRUCTL_1, "TSY: CMmPhoneTsy::ConstructL"); |
134 iCentRep = CRepository::NewL( KCRUidCtsyMEAlsLine ); |
139 iCentRep = CRepository::NewL( KCRUidCtsyMEAlsLine ); |
135 TFLOGSTRING("TSY: CMmPhoneTsy::ConstructL Central Repository opened successfully"); |
140 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CONSTRUCTL_2, "TSY: CMmPhoneTsy::ConstructL Central Repository opened successfully"); |
136 |
141 |
137 //iPublic Central Repositories |
142 //iPublic Central Repositories |
138 iMWISCentRep = CRepository::NewL( KCRUidCtsyMessageWaitingIndicator ); |
143 iMWISCentRep = CRepository::NewL( KCRUidCtsyMessageWaitingIndicator ); |
139 iCFISPrivateCentRep = CRepository::NewL( KCRUidCtsyPrivateCallForwardingIndicator ); |
144 iCFISPrivateCentRep = CRepository::NewL( KCRUidCtsyPrivateCallForwardingIndicator ); |
140 iCFISCentRep = CRepository::NewL( KCRUidCtsyCallForwardingIndicator ); |
145 iCFISCentRep = CRepository::NewL( KCRUidCtsyCallForwardingIndicator ); |
180 iIsInitializationActive = EFalse; |
185 iIsInitializationActive = EFalse; |
181 |
186 |
182 // initialize HWRM & its observers |
187 // initialize HWRM & its observers |
183 if(IsHWRMSupported()) |
188 if(IsHWRMSupported()) |
184 { |
189 { |
185 TFLOGSTRING("TSY: HWRM Battery API is in use."); |
190 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CONSTRUCTL_3, "TSY: HWRM Battery API is in use."); |
186 iPowerManager = CHWRMPower::NewL(); |
191 iPowerManager = CHWRMPower::NewL(); |
187 iBattery = CBatteryInfoObserver::NewL( *iPowerManager, *this ); |
192 iBattery = CBatteryInfoObserver::NewL( *iPowerManager, *this ); |
188 iChargingStatus = CChargingStatusObserver::NewL( *this ); |
193 iChargingStatus = CChargingStatusObserver::NewL( *this ); |
189 } |
194 } |
190 |
195 |
347 iIsModemReady = EFalse; |
352 iIsModemReady = EFalse; |
348 } |
353 } |
349 |
354 |
350 CMmPhoneTsy::~CMmPhoneTsy() |
355 CMmPhoneTsy::~CMmPhoneTsy() |
351 { |
356 { |
352 TFLOGSTRING("TSY: CMmPhoneTsy::~CMmPhoneTsy"); |
357 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DTOR_1, "TSY: CMmPhoneTsy::~CMmPhoneTsy"); |
353 |
358 |
354 if(IsHWRMSupported()) |
359 if(IsHWRMSupported()) |
355 { |
360 { |
356 if ( iChargingStatus ) |
361 if ( iChargingStatus ) |
357 { |
362 { |
557 { |
562 { |
558 iSystemStatePluginHandler->Close(); |
563 iSystemStatePluginHandler->Close(); |
559 delete iSystemStatePluginHandler; |
564 delete iSystemStatePluginHandler; |
560 } |
565 } |
561 iSystemStatePluginHandler = NULL; |
566 iSystemStatePluginHandler = NULL; |
562 TFLOGSTRING("TSY: CMmPhoneTsy::~CMmPhoneTsy DONE"); |
567 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DTOR_2, "TSY: CMmPhoneTsy::~CMmPhoneTsy DONE"); |
563 } |
568 } |
564 |
569 |
565 // --------------------------------------------------------------------------- |
570 // --------------------------------------------------------------------------- |
566 // CMmPhoneTsy::Init |
571 // CMmPhoneTsy::Init |
567 // Initialisation method that is called from ETel Server |
572 // Initialisation method that is called from ETel Server |
581 // (other items were commented in a header). |
586 // (other items were commented in a header). |
582 // --------------------------------------------------------------------------- |
587 // --------------------------------------------------------------------------- |
583 // |
588 // |
584 void CMmPhoneTsy::CompleteNotifyModemStatusReady() |
589 void CMmPhoneTsy::CompleteNotifyModemStatusReady() |
585 { |
590 { |
586 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyModemStatusReady"); |
591 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYMODEMSTATUSREADY_1, "TSY: CMmPhoneTsy::CompleteNotifyModemStatusReady"); |
587 |
592 |
588 TRAP_IGNORE( |
593 TRAP_IGNORE( |
589 //update the network registration status |
594 //update the network registration status |
590 iMmPhoneExtInterface->GetNetworkRegistrationStatusL( ); |
595 iMmPhoneExtInterface->GetNetworkRegistrationStatusL( ); |
591 |
596 |
610 // |
615 // |
611 void CMmPhoneTsy::CompleteNotifySimStatusReadyL() |
616 void CMmPhoneTsy::CompleteNotifySimStatusReadyL() |
612 { |
617 { |
613 if ( !iBootState.iSIMReady ) |
618 if ( !iBootState.iSIMReady ) |
614 { |
619 { |
615 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - SIM is ready, start initialisations"); |
620 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYSIMSTATUSREADYL_1, "TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - SIM is ready, start initialisations"); |
616 |
621 |
617 iBootState.iSIMReady = ETrue; |
622 iBootState.iSIMReady = ETrue; |
618 iBootState.iADNReady = ETrue; |
623 iBootState.iADNReady = ETrue; |
619 |
624 |
620 // Might leave, but we want to call also other |
625 // Might leave, but we want to call also other |
655 |
660 |
656 // If Custom TSY is open, check whether we need to read |
661 // If Custom TSY is open, check whether we need to read |
657 // VIAG homezone parameters. |
662 // VIAG homezone parameters. |
658 if ( iMmCustomTsy ) |
663 if ( iMmCustomTsy ) |
659 { |
664 { |
660 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CustomTSY ready"); |
665 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYSIMSTATUSREADYL_2, "TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CustomTSY ready"); |
661 // Get pointer to SIM Custom TSY |
666 // Get pointer to SIM Custom TSY |
662 CMmSIMTsy* simCustomTsy = |
667 CMmSIMTsy* simCustomTsy = |
663 ( ( CMmSIMTsy* ) iMmCustomTsy->GetSIMTsyPtr() ); |
668 ( ( CMmSIMTsy* ) iMmCustomTsy->GetSIMTsyPtr() ); |
664 |
669 |
665 if ( simCustomTsy ) |
670 if ( simCustomTsy ) |
666 { |
671 { |
667 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CheckViagHomeZoneParamsL()"); |
672 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYSIMSTATUSREADYL_3, "TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CheckViagHomeZoneParamsL()"); |
668 simCustomTsy->CheckViagHomezoneParamsL(); |
673 simCustomTsy->CheckViagHomezoneParamsL(); |
669 iViagHomeZoneParamsChecked = ETrue; |
674 iViagHomeZoneParamsChecked = ETrue; |
670 } |
675 } |
671 } |
676 } |
672 // If not able to read here it's tried again in customtsy |
677 // If not able to read here it's tried again in customtsy |
673 else |
678 else |
674 { |
679 { |
675 iViagHomeZoneParamsChecked = EFalse; |
680 iViagHomeZoneParamsChecked = EFalse; |
676 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CustomTSY NOT ready"); |
681 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYSIMSTATUSREADYL_4, "TSY: CMmPhoneTsy::CompleteNotifySimStatusReadyL - CustomTSY NOT ready"); |
677 } |
682 } |
678 } |
683 } |
679 } |
684 } |
680 |
685 |
681 // --------------------------------------------------------------------------- |
686 // --------------------------------------------------------------------------- |
715 // --------------------------------------------------------------------------- |
720 // --------------------------------------------------------------------------- |
716 // |
721 // |
717 TInt CMmPhoneTsy::NotifyIndicatorChange( |
722 TInt CMmPhoneTsy::NotifyIndicatorChange( |
718 TUint32* aIndicatorState ) |
723 TUint32* aIndicatorState ) |
719 { |
724 { |
720 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyIndicatorChange"); |
725 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYINDICATORCHANGE_1, "TSY: CMmPhoneTsy::NotifyIndicatorChange"); |
721 |
726 |
722 // Update indicator state, we don't keep track of it |
727 // Update indicator state, we don't keep track of it |
723 // unless notify is on. So we need to update starting |
728 // unless notify is on. So we need to update starting |
724 // value first.. |
729 // value first.. |
725 iIndicatorState = GetIndicatorState(); |
730 iIndicatorState = GetIndicatorState(); |
734 // (other items were commented in a header). |
739 // (other items were commented in a header). |
735 // --------------------------------------------------------------------------- |
740 // --------------------------------------------------------------------------- |
736 // |
741 // |
737 void CMmPhoneTsy::CompleteNotifyIndicatorChange() |
742 void CMmPhoneTsy::CompleteNotifyIndicatorChange() |
738 { |
743 { |
739 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange"); |
744 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYINDICATORCHANGE_1, "TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange"); |
740 |
745 |
741 // first check if this notify is actually requested.. |
746 // first check if this notify is actually requested.. |
742 if (NULL != iRetIndicatorState) |
747 if (NULL != iRetIndicatorState) |
743 { |
748 { |
744 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange -- notify is on"); |
749 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYINDICATORCHANGE_2, "TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange -- notify is on"); |
745 TUint32 newIndicatorState = GetIndicatorState(); |
750 TUint32 newIndicatorState = GetIndicatorState(); |
746 if (newIndicatorState != iIndicatorState) |
751 if (newIndicatorState != iIndicatorState) |
747 { |
752 { |
748 iIndicatorState = newIndicatorState; |
753 iIndicatorState = newIndicatorState; |
749 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange -- changed to 0x%x", iIndicatorState); |
754 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYINDICATORCHANGE_3, "TSY: CMmPhoneTsy::CompleteNotifyIndicatorChange -- changed to 0x%08x", iIndicatorState); |
750 |
755 |
751 //reset req handle. Returns the deleted req handle |
756 //reset req handle. Returns the deleted req handle |
752 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
757 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
753 EMultimodePhoneNotifyIndicatorChange ); |
758 EMultimodePhoneNotifyIndicatorChange ); |
754 |
759 |
770 // --------------------------------------------------------------------------- |
775 // --------------------------------------------------------------------------- |
771 // |
776 // |
772 TInt CMmPhoneTsy::NotifyIndicatorChangeCancel( |
777 TInt CMmPhoneTsy::NotifyIndicatorChangeCancel( |
773 const TTsyReqHandle aTsyReqHandle ) |
778 const TTsyReqHandle aTsyReqHandle ) |
774 { |
779 { |
775 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyIndicatorChangeCancel"); |
780 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYINDICATORCHANGECANCEL_1, "TSY: CMmPhoneTsy::NotifyIndicatorChangeCancel"); |
776 |
781 |
777 iRetIndicatorState = NULL; |
782 iRetIndicatorState = NULL; |
778 iTsyReqHandleStore->ResetTsyReqHandle( |
783 iTsyReqHandleStore->ResetTsyReqHandle( |
779 EMultimodePhoneNotifyIndicatorChange ); |
784 EMultimodePhoneNotifyIndicatorChange ); |
780 |
785 |
1061 #pragma warning(default : 4127) |
1066 #pragma warning(default : 4127) |
1062 |
1067 |
1063 if ( KErrNone != trapError || KErrNone != addLineSucceeded |
1068 if ( KErrNone != trapError || KErrNone != addLineSucceeded |
1064 || KErrNone != addPBSucceeded ) |
1069 || KErrNone != addPBSucceeded ) |
1065 { |
1070 { |
1066 TFLOGSTRING2("TSY: CMmPhoneTsy::OpenNewObjectByNameL - Failed: %d", |
1071 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_OPENNEWOBJECTBYNAMEL_1, "TSY: CMmPhoneTsy::OpenNewObjectByNameL - Failed: %d",trapError); |
1067 trapError); |
|
1068 |
1072 |
1069 if ( mmLine ) |
1073 if ( mmLine ) |
1070 { |
1074 { |
1071 mmLine->Close(); |
1075 mmLine->Close(); |
1072 mmLine = NULL; |
1076 mmLine = NULL; |
1119 TInt CMmPhoneTsy::ExtFunc( |
1123 TInt CMmPhoneTsy::ExtFunc( |
1120 const TTsyReqHandle aTsyReqHandle, |
1124 const TTsyReqHandle aTsyReqHandle, |
1121 const TInt aIpc, |
1125 const TInt aIpc, |
1122 const TDataPackage& aPackage ) |
1126 const TDataPackage& aPackage ) |
1123 { |
1127 { |
1124 TFLOGSTRING3("TSY: CMmPhoneTsy::ExtFunc, IPC:%d, Handle:%d", aIpc, aTsyReqHandle); |
1128 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_EXTFUNC_1, "TSY: CMmPhoneTsy::ExtFunc, IPC:%d, Handle:%d", aIpc, aTsyReqHandle); |
1125 |
1129 |
1126 TInt ret = KErrNone; |
1130 TInt ret = KErrNone; |
1127 TInt trapError = KErrNone; |
1131 TInt trapError = KErrNone; |
1128 |
1132 |
1129 // Ensure the ReqHandleType is unset. |
1133 // Ensure the ReqHandleType is unset. |
1137 //before processing further the request, check if offline mode status |
1141 //before processing further the request, check if offline mode status |
1138 //is enabled and if the given request can be perfomed in that case. |
1142 //is enabled and if the given request can be perfomed in that case. |
1139 if ( ERfsStateInfoInactive == iStateInfo && |
1143 if ( ERfsStateInfoInactive == iStateInfo && |
1140 !IsRequestPossibleInOffline( aIpc ) ) |
1144 !IsRequestPossibleInOffline( aIpc ) ) |
1141 { |
1145 { |
1142 TFLOGSTRING2 ("TSY: Offline mode ON, request is not allowed: %d", aIpc ); |
1146 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_EXTFUNC_2, "TSY: Offline mode ON, request is not allowed: %d", aIpc ); |
1143 ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
1147 ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, |
1144 KErrGsmOfflineOpNotAllowed ); |
1148 KErrGsmOfflineOpNotAllowed ); |
1145 |
1149 |
1146 //Complete the request with appropiate error |
1150 //Complete the request with appropiate error |
1147 ReqCompleted ( aTsyReqHandle, ret ); |
1151 ReqCompleted ( aTsyReqHandle, ret ); |
1189 TInt CMmPhoneTsy::DoExtFuncL( |
1193 TInt CMmPhoneTsy::DoExtFuncL( |
1190 const TTsyReqHandle aTsyReqHandle, |
1194 const TTsyReqHandle aTsyReqHandle, |
1191 const TInt aIpc, |
1195 const TInt aIpc, |
1192 const TDataPackage& aPackage ) |
1196 const TDataPackage& aPackage ) |
1193 { |
1197 { |
1194 TFLOGSTRING3("TSY: CMmPhoneTsy::DoExtFuncL - IPC:%d Handle:%d", aIpc, aTsyReqHandle); |
1198 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DOEXTFUNCL_1, "TSY: CMmPhoneTsy::DoExtFuncL - IPC:%d Handle:%d", aIpc, aTsyReqHandle); |
1195 |
1199 |
1196 TInt ret = KErrNone; |
1200 TInt ret = KErrNone; |
1197 |
1201 |
1198 TAny* dataPtr = aPackage.Ptr1(); |
1202 TAny* dataPtr = aPackage.Ptr1(); |
1199 TAny* dataPtr2 = aPackage.Ptr2(); |
1203 TAny* dataPtr2 = aPackage.Ptr2(); |
1229 case EMobilePhoneGetCipheringIndicatorStatus: |
1233 case EMobilePhoneGetCipheringIndicatorStatus: |
1230 case EMobilePhoneAuthorizationInfoPhase1: |
1234 case EMobilePhoneAuthorizationInfoPhase1: |
1231 case EMobilePhoneAuthorizationInfoPhase2: |
1235 case EMobilePhoneAuthorizationInfoPhase2: |
1232 case EMobilePhoneGetCellInfo: |
1236 case EMobilePhoneGetCellInfo: |
1233 case EMobilePhoneNotifyCellInfoChange: |
1237 case EMobilePhoneNotifyCellInfoChange: |
1234 case EMobilePhoneGetCurrentActiveUSimApplication: |
1238 case EMobilePhoneGetCurrentActiveUSimApplication: |
1235 case EMobilePhoneGetPreferredNetworksPhase1: |
|
1236 case EMobilePhoneGetPreferredNetworksPhase2: |
|
1237 case EMobilePhoneStorePreferredNetworksList: |
|
1238 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
1239 //direct this request to the net specific DoExtFuncL |
1239 //direct this request to the net specific DoExtFuncL |
1240 ret = iMmNetTsy->DoExtFuncL ( aTsyReqHandle, aIpc, aPackage ); |
1240 ret = iMmNetTsy->DoExtFuncL ( aTsyReqHandle, aIpc, aPackage ); |
1241 break; |
1241 break; |
1242 // Security and Phone Locks |
1242 // Security and Phone Locks |
1243 case EMobilePhoneGetSecurityCaps: |
1243 case EMobilePhoneGetSecurityCaps: |
1341 break; |
1341 break; |
1342 // All calls termination |
1342 // All calls termination |
1343 case EMobilePhoneTerminateAllCalls: |
1343 case EMobilePhoneTerminateAllCalls: |
1344 ret = TerminateAllCallsL( aTsyReqHandle ); |
1344 ret = TerminateAllCallsL( aTsyReqHandle ); |
1345 break; |
1345 break; |
1346 // Active calls termination |
|
1347 case EMobilePhoneTerminateActiveCalls: |
|
1348 ret = TerminateActiveCallsL( aTsyReqHandle ); |
|
1349 break; |
|
1346 // DTMF |
1350 // DTMF |
1347 // forward request to the DTMF-specific Tsy |
1351 // forward request to the DTMF-specific Tsy |
1348 case EMobilePhoneGetDTMFCaps: |
1352 case EMobilePhoneGetDTMFCaps: |
1349 case EMobilePhoneNotifyDTMFCapsChange: |
1353 case EMobilePhoneNotifyDTMFCapsChange: |
1350 case EMobilePhoneSendDTMFTones: |
1354 case EMobilePhoneSendDTMFTones: |
1612 //flow controlled. Solution: All these methods must check req handle |
1616 //flow controlled. Solution: All these methods must check req handle |
1613 //tablebefore handling the request. In case that the request table |
1617 //tablebefore handling the request. In case that the request table |
1614 //indicates that same method has been called and has not been |
1618 //indicates that same method has been called and has not been |
1615 //completed, the method should return KErrServerBusy. |
1619 //completed, the method should return KErrServerBusy. |
1616 case EMobilePhoneTerminateAllCalls: |
1620 case EMobilePhoneTerminateAllCalls: |
1621 case EMobilePhoneTerminateActiveCalls: |
|
1617 case EMobilePhoneGetFdnStatus: |
1622 case EMobilePhoneGetFdnStatus: |
1618 case EMobilePhoneGetCustomerServiceProfile: |
1623 case EMobilePhoneGetCustomerServiceProfile: |
1619 case EMobilePhoneGetDetectedNetworksV2Phase1: |
1624 case EMobilePhoneGetDetectedNetworksV2Phase1: |
1620 case EMobilePhoneSetLockSetting: |
1625 case EMobilePhoneSetLockSetting: |
1621 case EMobilePhoneVerifySecurityCode: |
1626 case EMobilePhoneVerifySecurityCode: |
1634 case EMobilePhoneGetAPNControlListServiceStatus: |
1639 case EMobilePhoneGetAPNControlListServiceStatus: |
1635 case EMobilePhoneSetAPNControlListServiceStatus: |
1640 case EMobilePhoneSetAPNControlListServiceStatus: |
1636 case EMobilePhoneDeleteAPNName: |
1641 case EMobilePhoneDeleteAPNName: |
1637 case EMobilePhoneAppendAPNName: |
1642 case EMobilePhoneAppendAPNName: |
1638 case EMobilePhoneGetSecurityCodeInfo: |
1643 case EMobilePhoneGetSecurityCodeInfo: |
1639 case EMobilePhoneGetPreferredNetworksPhase1: |
|
1640 case EMobilePhoneGetPreferredNetworksPhase2: |
|
1641 case EMobilePhoneStorePreferredNetworksList: |
|
1642 |
1644 |
1643 //SS related methods. |
1645 //SS related methods. |
1644 case EMobilePhoneGetCallForwardingStatusPhase1: |
1646 case EMobilePhoneGetCallForwardingStatusPhase1: |
1645 case EMobilePhoneGetBarringStatusPhase1: |
1647 case EMobilePhoneGetBarringStatusPhase1: |
1646 case EMobilePhoneGetWaitingStatusPhase1: |
1648 case EMobilePhoneGetWaitingStatusPhase1: |
1760 case EMobilePhoneNotifyAPNListChanged: |
1762 case EMobilePhoneNotifyAPNListChanged: |
1761 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
1763 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
1762 case EMobilePhoneNotifySendNetworkServiceRequest: |
1764 case EMobilePhoneNotifySendNetworkServiceRequest: |
1763 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
1765 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
1764 case EMobilePhoneNotifyCellInfoChange: |
1766 case EMobilePhoneNotifyCellInfoChange: |
1765 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
1766 ret=KReqModeMultipleCompletionEnabled | KReqModeRePostImmediately; |
1767 ret=KReqModeMultipleCompletionEnabled | KReqModeRePostImmediately; |
1767 break; |
1768 break; |
1768 // Cancel Requests |
1769 // Cancel Requests |
1769 //It is not necessary to include the Cancel methods in ReqModeL at all |
1770 //It is not necessary to include the Cancel methods in ReqModeL at all |
1770 //The ETel server never calls ReqModeL with a Cancel IPC. |
1771 //The ETel server never calls ReqModeL with a Cancel IPC. |
1775 default: |
1776 default: |
1776 ret=CPhoneBase::ReqModeL(aIpc); |
1777 ret=CPhoneBase::ReqModeL(aIpc); |
1777 break; |
1778 break; |
1778 |
1779 |
1779 } |
1780 } |
1780 TFLOGSTRING3("TSY: CMmPhoneTsy::ReqModeL - IPC:%d, Mode:%d", aIpc, ret); |
1781 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_REQMODEL_1, "TSY: CMmPhoneTsy::ReqModeL - IPC:%d, Mode:%d", aIpc, ret); |
1781 |
1782 |
1782 return ret; |
1783 return ret; |
1783 } |
1784 } |
1784 |
1785 |
1785 // --------------------------------------------------------------------------- |
1786 // --------------------------------------------------------------------------- |
1911 numberOfSlots = KMmPhoneAPNControlListServiceStatusChangeSlots; |
1912 numberOfSlots = KMmPhoneAPNControlListServiceStatusChangeSlots; |
1912 break; |
1913 break; |
1913 case EMobilePhoneNotifyCellInfoChange: |
1914 case EMobilePhoneNotifyCellInfoChange: |
1914 numberOfSlots = KMmPhoneCellInfoChangeSlots; |
1915 numberOfSlots = KMmPhoneCellInfoChangeSlots; |
1915 break; |
1916 break; |
1916 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
1917 numberOfSlots = KMmPhoneStorePreferredNetworksListChangeSlots; |
|
1918 break; |
|
1919 default: |
1917 default: |
1920 // Unknown or invalid Phone IPC |
1918 // Unknown or invalid Phone IPC |
1921 User::Leave( KErrNotSupported ); |
1919 User::Leave( KErrNotSupported ); |
1922 break; |
1920 break; |
1923 } |
1921 } |
1933 // |
1931 // |
1934 TInt CMmPhoneTsy::CancelService( |
1932 TInt CMmPhoneTsy::CancelService( |
1935 const TInt aIpc, |
1933 const TInt aIpc, |
1936 const TTsyReqHandle aTsyReqHandle ) |
1934 const TTsyReqHandle aTsyReqHandle ) |
1937 { |
1935 { |
1938 TFLOGSTRING3("TSY: CMmPhoneTsy::CancelService - IPC:%d, Handle:%d", aIpc, aTsyReqHandle); |
1936 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CANCELSERVICE_1, "TSY: CMmPhoneTsy::CancelService - IPC:%d, Handle:%d", aIpc, aTsyReqHandle); |
1939 |
1937 |
1940 TInt ret ( KErrNotSupported ); |
1938 TInt ret ( KErrNotSupported ); |
1941 |
1939 |
1942 // When the clients close their sub-sessions (eg. by calling RLine::Close) |
1940 // When the clients close their sub-sessions (eg. by calling RLine::Close) |
1943 // they may not have cancelled all their outstanding asynchronous requests |
1941 // they may not have cancelled all their outstanding asynchronous requests |
1972 case EMobilePhoneAuthorizationInfoPhase2: |
1970 case EMobilePhoneAuthorizationInfoPhase2: |
1973 case EMobilePhoneNotifyNetworkSecurityLevelChange: |
1971 case EMobilePhoneNotifyNetworkSecurityLevelChange: |
1974 case EMobilePhoneGetCellInfo: |
1972 case EMobilePhoneGetCellInfo: |
1975 case EMobilePhoneNotifyCellInfoChange: |
1973 case EMobilePhoneNotifyCellInfoChange: |
1976 case EMobilePhoneGetCurrentActiveUSimApplication: |
1974 case EMobilePhoneGetCurrentActiveUSimApplication: |
1977 case EMobilePhoneGetPreferredNetworksPhase1: |
|
1978 case EMobilePhoneStorePreferredNetworksList: |
|
1979 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
1980 ret = iMmNetTsy->CancelService( aIpc, aTsyReqHandle ); |
1975 ret = iMmNetTsy->CancelService( aIpc, aTsyReqHandle ); |
1981 break; |
1976 break; |
1982 // forward SS cancellations |
1977 // forward SS cancellations |
1983 case EMobilePhoneNotifyCallForwardingStatusChange: |
1978 case EMobilePhoneNotifyCallForwardingStatusChange: |
1984 case EMobilePhoneNotifyCallForwardingActive: |
1979 case EMobilePhoneNotifyCallForwardingActive: |
2027 case EMobilePhoneSetALSLine: |
2022 case EMobilePhoneSetALSLine: |
2028 case EMobilePhoneSetFdnSetting: |
2023 case EMobilePhoneSetFdnSetting: |
2029 case EMobilePhoneNotifyDefaultPrivacyChange: |
2024 case EMobilePhoneNotifyDefaultPrivacyChange: |
2030 case EMobilePhoneSetDefaultPrivacy: |
2025 case EMobilePhoneSetDefaultPrivacy: |
2031 case EMobilePhoneTerminateAllCalls: |
2026 case EMobilePhoneTerminateAllCalls: |
2027 case EMobilePhoneTerminateActiveCalls: |
|
2032 case EMobilePhoneSetNetworkSelectionSetting: |
2028 case EMobilePhoneSetNetworkSelectionSetting: |
2033 ret = KErrNone; |
2029 ret = KErrNone; |
2034 break; |
2030 break; |
2035 |
2031 |
2036 //Cancel methods that are not supported. |
2032 //Cancel methods that are not supported. |
2447 // Terminates all calls simultaneously. |
2443 // Terminates all calls simultaneously. |
2448 // --------------------------------------------------------------------------- |
2444 // --------------------------------------------------------------------------- |
2449 // |
2445 // |
2450 TInt CMmPhoneTsy::TerminateAllCallsL(const TTsyReqHandle aTsyReqHandle) |
2446 TInt CMmPhoneTsy::TerminateAllCallsL(const TTsyReqHandle aTsyReqHandle) |
2451 { |
2447 { |
2452 TFLOGSTRING("TSY: CMmPhoneTsy::TerminateAllCalls"); |
2448 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TERMINATEALLCALLSL_1, "TSY: CMmPhoneTsy::TerminateAllCalls"); |
2453 |
2449 |
2454 // Check if some other client has already requested this |
2450 // Check if some other client has already requested this |
2455 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(EMultimodePhoneTerminateAllCalls); |
2451 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(EMultimodePhoneTerminateAllCalls); |
2456 |
2452 |
2457 if (EMultimodePhoneReqHandleUnknown >= reqHandle ) |
2453 if (EMultimodePhoneReqHandleUnknown >= reqHandle ) |
2497 ReqCompleted( aTsyReqHandle, KErrNone ); |
2493 ReqCompleted( aTsyReqHandle, KErrNone ); |
2498 } |
2494 } |
2499 } |
2495 } |
2500 else |
2496 else |
2501 { |
2497 { |
2502 TFLOGSTRING("TSY: CMmPhoneTsy::TerminateAllCalls - Already requested"); |
2498 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TERMINATEALLCALLSL_2, "TSY: CMmPhoneTsy::TerminateAllCalls - Already requested"); |
2503 ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
2499 ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
2504 } |
2500 } |
2505 return KErrNone; |
2501 return KErrNone; |
2506 } |
2502 } |
2507 |
2503 |
2514 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
2510 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
2515 { |
2511 { |
2516 ReqCompleted( reqHandle, aErrorCode ); |
2512 ReqCompleted( reqHandle, aErrorCode ); |
2517 } |
2513 } |
2518 } |
2514 } |
2515 |
|
2516 |
|
2517 // --------------------------------------------------------------------------- |
|
2518 // CMmPhoneTsy::TerminateActiveCallsL |
|
2519 // Terminates all active calls simultaneously. |
|
2520 // --------------------------------------------------------------------------- |
|
2521 // |
|
2522 TInt CMmPhoneTsy::TerminateActiveCallsL(const TTsyReqHandle aTsyReqHandle) |
|
2523 { |
|
2524 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TERMINATEACTIVECALLSL_1, "TSY: CMmPhoneTsy::TerminateActiveCalls"); |
|
2525 |
|
2526 // Check if some other client has already requested this |
|
2527 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(EMultimodePhoneTerminateActiveCalls); |
|
2528 |
|
2529 if (EMultimodePhoneReqHandleUnknown >= reqHandle ) |
|
2530 { |
|
2531 // The request is not already in processing because of a previous request |
|
2532 |
|
2533 TInt err = iMessageManager->HandleRequestL(ECtsyPhoneTerminateActiveCallsReq); |
|
2534 if ( err == KErrNone ) |
|
2535 { |
|
2536 #ifdef REQHANDLE_TIMER |
|
2537 SetTypeOfResponse( EMultimodePhoneTerminateActiveCalls, aTsyReqHandle ); |
|
2538 #else |
|
2539 iTsyReqHandleStore->SetTsyReqHandle( |
|
2540 iReqHandleType, aTsyReqHandle ); |
|
2541 #endif //REQHANDLE_TIMER |
|
2542 } |
|
2543 else |
|
2544 { |
|
2545 // request failed, complete with error value |
|
2546 ReqCompleted( aTsyReqHandle, err ); |
|
2547 } |
|
2548 } |
|
2549 else |
|
2550 { |
|
2551 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TERMINATEACTIVECALLSL_2, "TSY: CMmPhoneTsy::TerminatActiveCalls - Already requested"); |
|
2552 ReqCompleted( aTsyReqHandle, KErrServerBusy ); |
|
2553 } |
|
2554 return KErrNone; |
|
2555 } |
|
2556 // --------------------------------------------------------------------------- |
|
2557 // CMmPhoneTsy::CompleteTerminateActiveCallsReq |
|
2558 // Description: Complete TerminateActiveCallsRequest |
|
2559 // --------------------------------------------------------------------------- |
|
2560 // |
|
2561 void CMmPhoneTsy::CompleteTerminateActiveCallsReq(TInt aErrorCode) |
|
2562 { |
|
2563 // Reset req handle. Returns the deleted req handle |
|
2564 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
|
2565 EMultimodePhoneTerminateActiveCalls ); |
|
2566 |
|
2567 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
|
2568 { |
|
2569 ReqCompleted( reqHandle, aErrorCode ); |
|
2570 } |
|
2571 } |
|
2519 |
2572 |
2520 // --------------------------------------------------------------------------- |
2573 // --------------------------------------------------------------------------- |
2521 // CMmPhoneTsy::RegisterNotification |
2574 // CMmPhoneTsy::RegisterNotification |
2522 // This function is used by ETel Server to subscribe |
2575 // This function is used by ETel Server to subscribe |
2523 // notifications from DOS. Currently does not really do anything but returns |
2576 // notifications from DOS. Currently does not really do anything but returns |
2570 case EMobilePhoneNotifyAPNListChanged: |
2623 case EMobilePhoneNotifyAPNListChanged: |
2571 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
2624 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
2572 case EMobilePhoneNotifySendNetworkServiceRequest: |
2625 case EMobilePhoneNotifySendNetworkServiceRequest: |
2573 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
2626 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
2574 case EMobilePhoneNotifyCellInfoChange: |
2627 case EMobilePhoneNotifyCellInfoChange: |
2575 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
2576 ret = KErrNone; |
2628 ret = KErrNone; |
2577 break; |
2629 break; |
2578 default: |
2630 default: |
2579 // Not supported |
2631 // Not supported |
2580 ret = KErrNotSupported; |
2632 ret = KErrNotSupported; |
2636 case EMobilePhoneNotifyAPNListChanged: |
2688 case EMobilePhoneNotifyAPNListChanged: |
2637 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
2689 case EMobilePhoneNotifyAPNControlListServiceStatusChange: |
2638 case EMobilePhoneNotifySendNetworkServiceRequest: |
2690 case EMobilePhoneNotifySendNetworkServiceRequest: |
2639 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
2691 case EMobilePhoneNotifyAllSendNetworkServiceRequest: |
2640 case EMobilePhoneNotifyCellInfoChange: |
2692 case EMobilePhoneNotifyCellInfoChange: |
2641 case EMobilePhoneNotifyStorePreferredNetworksListChange: |
|
2642 ret = KErrNone; |
2693 ret = KErrNone; |
2643 break; |
2694 break; |
2644 default: |
2695 default: |
2645 // Not supported |
2696 // Not supported |
2646 ret = KErrNotSupported; |
2697 ret = KErrNotSupported; |
2729 TInt CMmPhoneTsy::GetPhoneStoreInfoL( |
2780 TInt CMmPhoneTsy::GetPhoneStoreInfoL( |
2730 TDes8* aInfo, |
2781 TDes8* aInfo, |
2731 const RMobilePhone::TMobileName* aStoreName ) |
2782 const RMobilePhone::TMobileName* aStoreName ) |
2732 { |
2783 { |
2733 TInt ret( KErrArgument ); |
2784 TInt ret( KErrArgument ); |
2734 TFLOGSTRING("TSY: CMmPhoneTsy::GetPhoneStoreInfoL" ); |
2785 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETPHONESTOREINFOL_1, "TSY: CMmPhoneTsy::GetPhoneStoreInfoL" ); |
2735 |
2786 |
2736 if(sizeof(RMobilePhoneStore::TMobilePhoneStoreInfoV1) <= aInfo->MaxLength()) |
2787 if(sizeof(RMobilePhoneStore::TMobilePhoneStoreInfoV1) <= aInfo->MaxLength()) |
2737 { |
2788 { |
2738 ret = KErrNone; |
2789 ret = KErrNone; |
2739 |
2790 |
2742 |
2793 |
2743 RMobilePhoneStore::TMobilePhoneStoreInfoV1& storeInfo = ( *info )(); |
2794 RMobilePhoneStore::TMobilePhoneStoreInfoV1& storeInfo = ( *info )(); |
2744 |
2795 |
2745 if ( KETelExtMultimodeV1 != storeInfo.ExtensionId() ) |
2796 if ( KETelExtMultimodeV1 != storeInfo.ExtensionId() ) |
2746 { |
2797 { |
2747 TFLOGSTRING("TSY: Phonebook not supported. Only KETelExtMultimodeV1 types supported for RMobilePhone::GetPhoneStoreInfo" ); |
2798 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETPHONESTOREINFOL_2, "TSY: Phonebook not supported. Only KETelExtMultimodeV1 types supported for RMobilePhone::GetPhoneStoreInfo" ); |
2748 ret = KErrNotSupported; |
2799 ret = KErrNotSupported; |
2749 } |
2800 } |
2750 else |
2801 else |
2751 { |
2802 { |
2752 // Not supported features |
2803 // Not supported features |
2757 0x0 == aStoreName->Compare( KETelCombinedAdnPhoneBook ) || |
2808 0x0 == aStoreName->Compare( KETelCombinedAdnPhoneBook ) || |
2758 0x0 == aStoreName->Compare( KETelCombinedSmsStore ) || |
2809 0x0 == aStoreName->Compare( KETelCombinedSmsStore ) || |
2759 0x0 == aStoreName->Compare( KETelMeSmsStore ) |
2810 0x0 == aStoreName->Compare( KETelMeSmsStore ) |
2760 ) |
2811 ) |
2761 { |
2812 { |
2762 TFLOGSTRING("TSY: Phonebook name is not supported. " ); |
2813 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETPHONESTOREINFOL_3, "TSY: Phonebook name is not supported. " ); |
2763 ret = KErrNotSupported; |
2814 ret = KErrNotSupported; |
2764 } |
2815 } |
2765 else |
2816 else |
2766 { |
2817 { |
2767 // packed parameter for DOS call: RMobilePhone::TMobileName |
2818 // packed parameter for DOS call: RMobilePhone::TMobileName |
2846 // |
2897 // |
2847 TInt CMmPhoneTsy::GetCustomerServiceProfileL( |
2898 TInt CMmPhoneTsy::GetCustomerServiceProfileL( |
2848 const TTsyReqHandle aTsyReqHandle, |
2899 const TTsyReqHandle aTsyReqHandle, |
2849 TDes8* aCspFile ) |
2900 TDes8* aCspFile ) |
2850 { |
2901 { |
2851 TFLOGSTRING("TSY: CMmPhoneTsy::GetCustomerServiceProfileL" ); |
2902 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCUSTOMERSERVICEPROFILEL_1, "TSY: CMmPhoneTsy::GetCustomerServiceProfileL" ); |
2852 |
2903 |
2853 TInt ret = KErrArgument; |
2904 TInt ret = KErrArgument; |
2854 |
2905 |
2855 if ( sizeof( RMobilePhone::TMobilePhoneCspFileV1 ) == |
2906 if ( sizeof( RMobilePhone::TMobilePhoneCspFileV1 ) == |
2856 aCspFile->MaxLength() ) |
2907 aCspFile->MaxLength() ) |
2863 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2914 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
2864 EMultimodePhoneGetCustomerServiceProfile ); |
2915 EMultimodePhoneGetCustomerServiceProfile ); |
2865 |
2916 |
2866 if ( 0 < reqHandle ) |
2917 if ( 0 < reqHandle ) |
2867 { |
2918 { |
2868 TFLOGSTRING("TSY: CMmPhoneTsy::GetCustomerServiceProfileL one req already ongoing" ); |
2919 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCUSTOMERSERVICEPROFILEL_2, "TSY: CMmPhoneTsy::GetCustomerServiceProfileL one req already ongoing" ); |
2869 ret = KErrNone; |
2920 ret = KErrNone; |
2870 //The request is already in processing because of previous request |
2921 //The request is already in processing because of previous request |
2871 //Complete request with status value informing the client about |
2922 //Complete request with status value informing the client about |
2872 TCustomerServiceProfileIdRequest* req = |
2923 TCustomerServiceProfileIdRequest* req = |
2873 new (ELeave) TCustomerServiceProfileIdRequest(); |
2924 new (ELeave) TCustomerServiceProfileIdRequest(); |
2909 void CMmPhoneTsy::CompleteGetCustomerServiceProfile( |
2960 void CMmPhoneTsy::CompleteGetCustomerServiceProfile( |
2910 RMobilePhone::TMobilePhoneCspFileV1 aCspFile, |
2961 RMobilePhone::TMobilePhoneCspFileV1 aCspFile, |
2911 TInt aErrorCode ) |
2962 TInt aErrorCode ) |
2912 { |
2963 { |
2913 |
2964 |
2914 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetCustomerServiceProfile" ); |
2965 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETCUSTOMERSERVICEPROFILE_1, "TSY: CMmPhoneTsy::CompleteGetCustomerServiceProfile" ); |
2915 |
2966 |
2916 // Check if the get was called internally during boot |
2967 // Check if the get was called internally during boot |
2917 if( iCspFileQueryInBoot ) |
2968 if( iCspFileQueryInBoot ) |
2918 { |
2969 { |
2919 // Examine Csp file's ALS state |
2970 // Examine Csp file's ALS state |
2942 iCustomerServiceProfileRequests[ i ]; |
2993 iCustomerServiceProfileRequests[ i ]; |
2943 |
2994 |
2944 //set value in client side |
2995 //set value in client side |
2945 *(req->iRetCspFile) = aCspFile; |
2996 *(req->iRetCspFile) = aCspFile; |
2946 //reset the return pointer |
2997 //reset the return pointer |
2947 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetCustomerServiceProfile queue handling" ); |
2998 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETCUSTOMERSERVICEPROFILE_2, "TSY: CMmPhoneTsy::CompleteGetCustomerServiceProfile queue handling" ); |
2948 ReqCompleted( req->iReqHandle, aErrorCode ); |
2999 ReqCompleted( req->iReqHandle, aErrorCode ); |
2949 } |
3000 } |
2950 // Complete the client request |
3001 // Complete the client request |
2951 //Destroy Array |
3002 //Destroy Array |
2952 iCustomerServiceProfileRequests.ResetAndDestroy(); |
3003 iCustomerServiceProfileRequests.ResetAndDestroy(); |
2960 // (other items were commented in a header). |
3011 // (other items were commented in a header). |
2961 // --------------------------------------------------------------------------- |
3012 // --------------------------------------------------------------------------- |
2962 // |
3013 // |
2963 TInt CMmPhoneTsy::GetCustomerServiceProfileCancel( const TTsyReqHandle aTsyReqHandle ) |
3014 TInt CMmPhoneTsy::GetCustomerServiceProfileCancel( const TTsyReqHandle aTsyReqHandle ) |
2964 { |
3015 { |
2965 TFLOGSTRING2("TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel aTsyReqHandle: %d", aTsyReqHandle); |
3016 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCUSTOMERSERVICEPROFILECANCEL_1, "TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel aTsyReqHandle: %d", aTsyReqHandle); |
2966 |
3017 |
2967 TInt customerServiceProfileRequestsCount = iCustomerServiceProfileRequests.Count(); |
3018 TInt customerServiceProfileRequestsCount = iCustomerServiceProfileRequests.Count(); |
2968 |
3019 |
2969 //reset the req handle if only one req remains |
3020 //reset the req handle if only one req remains |
2970 if( 1 == customerServiceProfileRequestsCount ) |
3021 if( 1 == customerServiceProfileRequestsCount ) |
2971 { |
3022 { |
2972 TFLOGSTRING("TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - one req"); |
3023 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCUSTOMERSERVICEPROFILECANCEL_2, "TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - one req"); |
2973 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3024 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
2974 EMultimodePhoneGetCustomerServiceProfile ); |
3025 EMultimodePhoneGetCustomerServiceProfile ); |
2975 } |
3026 } |
2976 |
3027 |
2977 // go through array if one or more requests remain and find the correct request handle to cancel |
3028 // go through array if one or more requests remain and find the correct request handle to cancel |
2978 for ( TInt i=0; i < customerServiceProfileRequestsCount ; i++ ) |
3029 for ( TInt i=0; i < customerServiceProfileRequestsCount ; i++ ) |
2979 { |
3030 { |
2980 TFLOGSTRING("TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - queued requests"); |
3031 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCUSTOMERSERVICEPROFILECANCEL_3, "TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - queued requests"); |
2981 |
3032 |
2982 TCustomerServiceProfileIdRequest* req = |
3033 TCustomerServiceProfileIdRequest* req = |
2983 iCustomerServiceProfileRequests[ i ]; |
3034 iCustomerServiceProfileRequests[ i ]; |
2984 |
3035 |
2985 // find correct handle for cancelling |
3036 // find correct handle for cancelling |
3022 // |
3073 // |
3023 TInt CMmPhoneTsy::GetBatteryInfoL( |
3074 TInt CMmPhoneTsy::GetBatteryInfoL( |
3024 const TTsyReqHandle aTsyReqHandle, |
3075 const TTsyReqHandle aTsyReqHandle, |
3025 RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo ) |
3076 RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo ) |
3026 { |
3077 { |
3027 TFLOGSTRING("TSY: CMmPhoneTsy::GetBatteryInfoL"); |
3078 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETBATTERYINFOL_1, "TSY: CMmPhoneTsy::GetBatteryInfoL"); |
3028 |
3079 |
3029 // Battery info is requested when phone is booted up and updated when |
3080 // Battery info is requested when phone is booted up and updated when |
3030 // EM server sends indications. |
3081 // EM server sends indications. |
3031 *aInfo = iBatteryInfo; |
3082 *aInfo = iBatteryInfo; |
3032 |
3083 |
3042 // --------------------------------------------------------------------------- |
3093 // --------------------------------------------------------------------------- |
3043 // |
3094 // |
3044 TInt CMmPhoneTsy::NotifyBatteryInfoChange( |
3095 TInt CMmPhoneTsy::NotifyBatteryInfoChange( |
3045 RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo ) |
3096 RMobilePhone::TMobilePhoneBatteryInfoV1* aInfo ) |
3046 { |
3097 { |
3047 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyBatteryInfoChange"); |
3098 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYBATTERYINFOCHANGE_1, "TSY: CMmPhoneTsy::NotifyBatteryInfoChange"); |
3048 |
3099 |
3049 iRetBatteryInfo = aInfo; |
3100 iRetBatteryInfo = aInfo; |
3050 iReqHandleType = EMultimodePhoneNotifyBatteryInfoChange; |
3101 iReqHandleType = EMultimodePhoneNotifyBatteryInfoChange; |
3051 return KErrNone; |
3102 return KErrNone; |
3052 } |
3103 } |
3060 // |
3111 // |
3061 void CMmPhoneTsy::CompleteNotifyBatteryInfoChange( |
3112 void CMmPhoneTsy::CompleteNotifyBatteryInfoChange( |
3062 CMmDataPackage* aDataPackage, |
3113 CMmDataPackage* aDataPackage, |
3063 TInt aErrorCode ) |
3114 TInt aErrorCode ) |
3064 { |
3115 { |
3065 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyBatteryInfoChange"); |
3116 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYBATTERYINFOCHANGE_1, "TSY: CMmPhoneTsy::CompleteNotifyBatteryInfoChange"); |
3066 |
3117 |
3067 if ( KErrNone == aErrorCode ) |
3118 if ( KErrNone == aErrorCode ) |
3068 { |
3119 { |
3069 // unpack data... |
3120 // unpack data... |
3070 RMobilePhone::TMobilePhoneBatteryInfoV1* batteryInfo = NULL; |
3121 RMobilePhone::TMobilePhoneBatteryInfoV1* batteryInfo = NULL; |
3071 aDataPackage->UnPackData(&batteryInfo); |
3122 aDataPackage->UnPackData(&batteryInfo); |
3072 iBatteryInfo = *batteryInfo; |
3123 iBatteryInfo = *batteryInfo; |
3073 } |
3124 } |
3074 |
3125 |
3075 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteNotifyBatteryInfoChange, battery status: %d", (TInt)iBatteryInfo.iStatus); |
3126 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYBATTERYINFOCHANGE_2, "TSY: CMmPhoneTsy::CompleteNotifyBatteryInfoChange, battery status: %d", (TInt)iBatteryInfo.iStatus); |
3076 |
3127 |
3077 //reset req handle. Returns the deleted req handle |
3128 //reset req handle. Returns the deleted req handle |
3078 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3129 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3079 EMultimodePhoneNotifyBatteryInfoChange ); |
3130 EMultimodePhoneNotifyBatteryInfoChange ); |
3080 |
3131 |
3097 // --------------------------------------------------------------------------- |
3148 // --------------------------------------------------------------------------- |
3098 // |
3149 // |
3099 TInt CMmPhoneTsy::NotifyBatteryInfoChangeCancel( |
3150 TInt CMmPhoneTsy::NotifyBatteryInfoChangeCancel( |
3100 const TTsyReqHandle aTsyReqHandle ) |
3151 const TTsyReqHandle aTsyReqHandle ) |
3101 { |
3152 { |
3102 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyBatteryInfoChangeCancel"); |
3153 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYBATTERYINFOCHANGECANCEL_1, "TSY: CMmPhoneTsy::NotifyBatteryInfoChangeCancel"); |
3103 |
3154 |
3104 iRetBatteryInfo = NULL; |
3155 iRetBatteryInfo = NULL; |
3105 iTsyReqHandleStore->ResetTsyReqHandle( |
3156 iTsyReqHandleStore->ResetTsyReqHandle( |
3106 EMultimodePhoneNotifyBatteryInfoChange ); |
3157 EMultimodePhoneNotifyBatteryInfoChange ); |
3107 |
3158 |
3182 { |
3233 { |
3183 TInt ret = KErrNone; |
3234 TInt ret = KErrNone; |
3184 |
3235 |
3185 if ( iBootState.iSIMReady ) |
3236 if ( iBootState.iSIMReady ) |
3186 { |
3237 { |
3187 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceProviderNameL -Sim ready"); |
3238 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMEL_1, "TSY: CMmPhoneTsy::GetServiceProviderNameL -Sim ready"); |
3188 |
3239 |
3189 if ( sizeof( RMobilePhone::TMobilePhoneServiceProviderNameV2 ) > |
3240 if ( sizeof( RMobilePhone::TMobilePhoneServiceProviderNameV2 ) > |
3190 aName->MaxLength() ) |
3241 aName->MaxLength() ) |
3191 { |
3242 { |
3192 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceProviderNameL -Invalid parameter!"); |
3243 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMEL_2, "TSY: CMmPhoneTsy::GetServiceProviderNameL -Invalid parameter!"); |
3193 ret = KErrArgument; |
3244 ret = KErrArgument; |
3194 } |
3245 } |
3195 else |
3246 else |
3196 { |
3247 { |
3197 //Send a request to LTSY if request handle does not exist. |
3248 //Send a request to LTSY if request handle does not exist. |
3205 } |
3256 } |
3206 |
3257 |
3207 if ( KErrNone == ret ) |
3258 if ( KErrNone == ret ) |
3208 { |
3259 { |
3209 // save reqhandle to queue |
3260 // save reqhandle to queue |
3210 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceProviderNameL - Client to queue"); |
3261 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMEL_3, "TSY: CMmPhoneTsy::GetServiceProviderNameL - Client to queue"); |
3211 RMobilePhone::TMobilePhoneServiceProviderNameV2Pckg* nameV2Pckg = |
3262 RMobilePhone::TMobilePhoneServiceProviderNameV2Pckg* nameV2Pckg = |
3212 REINTERPRET_CAST( |
3263 REINTERPRET_CAST( |
3213 RMobilePhone::TMobilePhoneServiceProviderNameV2Pckg*, |
3264 RMobilePhone::TMobilePhoneServiceProviderNameV2Pckg*, |
3214 aName ); |
3265 aName ); |
3215 |
3266 |
3226 iReqHandleType = EMultimodePhoneGetServiceProviderName; |
3277 iReqHandleType = EMultimodePhoneGetServiceProviderName; |
3227 } |
3278 } |
3228 } |
3279 } |
3229 else |
3280 else |
3230 { |
3281 { |
3231 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceProviderNameL - Sim not ready"); |
3282 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMEL_4, "TSY: CMmPhoneTsy::GetServiceProviderNameL - Sim not ready"); |
3232 ret = KErrNotReady; |
3283 ret = KErrNotReady; |
3233 } |
3284 } |
3234 |
3285 |
3235 return ret; |
3286 return ret; |
3236 } |
3287 } |
3244 // |
3295 // |
3245 void CMmPhoneTsy::CompleteGetServiceProviderName( |
3296 void CMmPhoneTsy::CompleteGetServiceProviderName( |
3246 CMmDataPackage* aDataPackage, |
3297 CMmDataPackage* aDataPackage, |
3247 TInt aErrorCode ) |
3298 TInt aErrorCode ) |
3248 { |
3299 { |
3249 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error %d", aErrorCode ); |
3300 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICEPROVIDERNAME_1, "TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error %d", aErrorCode ); |
3250 |
3301 |
3251 // reset req handle. Returns the deleted req handle |
3302 // reset req handle. Returns the deleted req handle |
3252 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3303 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3253 EMultimodePhoneGetServiceProviderName ); |
3304 EMultimodePhoneGetServiceProviderName ); |
3254 |
3305 |
3259 |
3310 |
3260 if ( KErrNone == aErrorCode ) |
3311 if ( KErrNone == aErrorCode ) |
3261 { |
3312 { |
3262 aDataPackage->UnPackData( &name ); |
3313 aDataPackage->UnPackData( &name ); |
3263 |
3314 |
3264 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceProviderName name: %S", &name->iSPName ); |
3315 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICEPROVIDERNAME_2, "TSY: CMmPhoneTsy::CompleteGetServiceProviderName name: %S", name->iSPName ); |
3265 for ( TInt i=0; i < requestCount ; i++ ) |
3316 for ( TInt i=0; i < requestCount ; i++ ) |
3266 { |
3317 { |
3267 TServiceProviderNameRequest* req = |
3318 TServiceProviderNameRequest* req = |
3268 iServiceProviderNameRequests[ i ]; |
3319 iServiceProviderNameRequests[ i ]; |
3269 *(req->iServiceProviderName) = *name; |
3320 *(req->iServiceProviderName) = *name; |
3270 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceProviderName client %d", i ); |
3321 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICEPROVIDERNAME_3, "TSY: CMmPhoneTsy::CompleteGetServiceProviderName client %d", i ); |
3271 ReqCompleted( req->iReqHandle, aErrorCode ); |
3322 ReqCompleted( req->iReqHandle, aErrorCode ); |
3272 } |
3323 } |
3273 } |
3324 } |
3274 else |
3325 else |
3275 { |
3326 { |
3276 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error %d", aErrorCode ); |
3327 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICEPROVIDERNAME_4, "TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error %d", aErrorCode ); |
3277 for ( TInt i=0; i < requestCount ; i++ ) |
3328 for ( TInt i=0; i < requestCount ; i++ ) |
3278 { |
3329 { |
3279 TServiceProviderNameRequest* req = |
3330 TServiceProviderNameRequest* req = |
3280 iServiceProviderNameRequests[ i ]; |
3331 iServiceProviderNameRequests[ i ]; |
3281 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error queue: %d", i ); |
3332 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICEPROVIDERNAME_5, "TSY: CMmPhoneTsy::CompleteGetServiceProviderName Error queue: %d", i ); |
3282 ReqCompleted( req->iReqHandle, aErrorCode ); |
3333 ReqCompleted( req->iReqHandle, aErrorCode ); |
3283 } |
3334 } |
3284 } |
3335 } |
3285 //Delete array and it's content |
3336 //Delete array and it's content |
3286 iServiceProviderNameRequests.ResetAndDestroy(); |
3337 iServiceProviderNameRequests.ResetAndDestroy(); |
3295 // (other items were commented in a header). |
3346 // (other items were commented in a header). |
3296 // --------------------------------------------------------------------------- |
3347 // --------------------------------------------------------------------------- |
3297 // |
3348 // |
3298 TInt CMmPhoneTsy::GetServiceProviderNameCancel( const TTsyReqHandle aTsyReqHandle ) |
3349 TInt CMmPhoneTsy::GetServiceProviderNameCancel( const TTsyReqHandle aTsyReqHandle ) |
3299 { |
3350 { |
3300 TFLOGSTRING2("TSY: CMmPhoneTsy::GetServiceProviderNameCancel aTsyReqHandle: %d", aTsyReqHandle); |
3351 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMECANCEL_1, "TSY: CMmPhoneTsy::GetServiceProviderNameCancel aTsyReqHandle: %d", aTsyReqHandle); |
3301 |
3352 |
3302 TInt requestCount = iServiceProviderNameRequests.Count(); |
3353 TInt requestCount = iServiceProviderNameRequests.Count(); |
3303 |
3354 |
3304 //reset the req handle if only one req remains |
3355 //reset the req handle if only one req remains |
3305 if( 1 == requestCount ) |
3356 if( 1 == requestCount ) |
3306 { |
3357 { |
3307 TFLOGSTRING("TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - one req"); |
3358 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMECANCEL_2, "TSY: CMmPhoneTsy::GetCustomerServiceProfileCancel - one req"); |
3308 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3359 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3309 EMultimodePhoneGetServiceProviderName ); |
3360 EMultimodePhoneGetServiceProviderName ); |
3310 } |
3361 } |
3311 |
3362 |
3312 // qo throw array if several requests and find correct reqhandle to cancel |
3363 // qo throw array if several requests and find correct reqhandle to cancel |
3313 for ( TInt i = 0; i < requestCount; i++ ) |
3364 for ( TInt i = 0; i < requestCount; i++ ) |
3314 { |
3365 { |
3315 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceProviderNameCancel - queued requests"); |
3366 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICEPROVIDERNAMECANCEL_3, "TSY: CMmPhoneTsy::GetServiceProviderNameCancel - queued requests"); |
3316 |
3367 |
3317 TServiceProviderNameRequest* req = |
3368 TServiceProviderNameRequest* req = |
3318 iServiceProviderNameRequests[i]; |
3369 iServiceProviderNameRequests[i]; |
3319 |
3370 |
3320 // find correct handle for cancelling |
3371 // find correct handle for cancelling |
3459 ReqCompleted( aTsyReqHandle, ret ); |
3510 ReqCompleted( aTsyReqHandle, ret ); |
3460 } |
3511 } |
3461 } |
3512 } |
3462 else |
3513 else |
3463 { |
3514 { |
3464 TFLOGSTRING3("TSY: CMmPhoneTsy::GetPhoneIdL - iManufacturer: %S, iModel: %S", &iPhoneIdentity.iManufacturer, |
3515 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DOGETPHONEIDL_1, "TSY: CMmPhoneTsy::GetPhoneIdL - iManufacturer: %S, iModel: %S", iPhoneIdentity.iManufacturer, iPhoneIdentity.iModel ); |
3465 &iPhoneIdentity.iModel ); |
3516 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DOGETPHONEIDL_2, "TSY: CMmPhoneTsy::GetPhoneIdL - iRevision: %S, iSerialNumber: %S", iPhoneIdentity.iRevision, iPhoneIdentity.iSerialNumber); |
3466 TFLOGSTRING3("TSY: CMmPhoneTsy::GetPhoneIdL - iRevision: %S, iSerialNumber: %S", &iPhoneIdentity.iRevision, |
|
3467 &iPhoneIdentity.iSerialNumber); |
|
3468 |
3517 |
3469 *aId = iPhoneIdentity; |
3518 *aId = iPhoneIdentity; |
3470 ReqCompleted( aTsyReqHandle, KErrNone ); |
3519 ReqCompleted( aTsyReqHandle, KErrNone ); |
3471 } |
3520 } |
3472 } |
3521 } |
3484 if ( ( KErrNone == aError ) && ( 0 < aSerialData.Length() ) ) |
3533 if ( ( KErrNone == aError ) && ( 0 < aSerialData.Length() ) ) |
3485 { |
3534 { |
3486 // Copy serial number |
3535 // Copy serial number |
3487 iPhoneIdentity.iSerialNumber.Copy(aSerialData.Left( aSerialData.Length() ) ); |
3536 iPhoneIdentity.iSerialNumber.Copy(aSerialData.Left( aSerialData.Length() ) ); |
3488 |
3537 |
3489 TFLOGSTRING2("TSY: CMmPhoneTsy::CompletePhoneSerialNumber - iSerialNumber: %S", &iPhoneIdentity.iSerialNumber ); |
3538 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETPHONEID_1, "TSY: CMmPhoneTsy::CompletePhoneSerialNumber - iSerialNumber: %S", iPhoneIdentity.iSerialNumber ); |
3490 } |
3539 } |
3491 |
3540 |
3492 //reset req handle. Returns the deleted req handle |
3541 //reset req handle. Returns the deleted req handle |
3493 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(EMultimodePhoneGetPhoneId ); |
3542 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(EMultimodePhoneGetPhoneId ); |
3494 |
3543 |
3510 // (other items were commented in a header). |
3559 // (other items were commented in a header). |
3511 // --------------------------------------------------------------------------- |
3560 // --------------------------------------------------------------------------- |
3512 // |
3561 // |
3513 TInt CMmPhoneTsy::MobilePhoneGetPhoneIdCancel(const TTsyReqHandle aTsyReqHandle ) |
3562 TInt CMmPhoneTsy::MobilePhoneGetPhoneIdCancel(const TTsyReqHandle aTsyReqHandle ) |
3514 { |
3563 { |
3515 TFLOGSTRING("TSY: CMmPhoneTsy::MobilePhoneGetPhoneIdCancel"); |
3564 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MOBILEPHONEGETPHONEIDCANCEL_1, "TSY: CMmPhoneTsy::MobilePhoneGetPhoneIdCancel"); |
3516 |
3565 |
3517 TInt reqCount = iGetPhoneIdRequests.Count(); |
3566 TInt reqCount = iGetPhoneIdRequests.Count(); |
3518 |
3567 |
3519 // 1 means that last ongoing request is going to be cancelled. |
3568 // 1 means that last ongoing request is going to be cancelled. |
3520 if ( reqCount == 1 ) |
3569 if ( reqCount == 1 ) |
3584 ReqCompleted( aTsyReqHandle, ret ); |
3633 ReqCompleted( aTsyReqHandle, ret ); |
3585 } |
3634 } |
3586 } |
3635 } |
3587 else |
3636 else |
3588 { |
3637 { |
3589 TFLOGSTRING("TSY: CMmPhoneTsy::GetSubscriberIdL - queued requests add req to queue"); |
3638 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSUBSCRIBERIDL_1, "TSY: CMmPhoneTsy::GetSubscriberIdL - queued requests add req to queue"); |
3590 TSubscriberIdRequest* req = new (ELeave) TSubscriberIdRequest(); |
3639 TSubscriberIdRequest* req = new (ELeave) TSubscriberIdRequest(); |
3591 req->iReqHandle = aTsyReqHandle; |
3640 req->iReqHandle = aTsyReqHandle; |
3592 req->iRetSubscrId = aId; |
3641 req->iRetSubscrId = aId; |
3593 iSubscriberIdRequests.AppendL( req ); |
3642 iSubscriberIdRequests.AppendL( req ); |
3594 } |
3643 } |
3614 TUint32* aActCaps, |
3663 TUint32* aActCaps, |
3615 TUint32* aIndCaps ) |
3664 TUint32* aIndCaps ) |
3616 { |
3665 { |
3617 TInt ret( KErrGeneral ); |
3666 TInt ret( KErrGeneral ); |
3618 |
3667 |
3619 TFLOGSTRING("TSY: CMmPhoneTsy::GetIndicatorCaps" ); |
3668 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORCAPS_1, "TSY: CMmPhoneTsy::GetIndicatorCaps" ); |
3620 if( NULL != aActCaps && NULL != aIndCaps ) |
3669 if( NULL != aActCaps && NULL != aIndCaps ) |
3621 { |
3670 { |
3622 *aActCaps = RMobilePhone::KCapsGetIndicator | |
3671 *aActCaps = RMobilePhone::KCapsGetIndicator | |
3623 RMobilePhone::KCapsNotifyIndicatorChange; |
3672 RMobilePhone::KCapsNotifyIndicatorChange; |
3624 *aIndCaps = RMobilePhone::KIndChargerConnected | |
3673 *aIndCaps = RMobilePhone::KIndChargerConnected | |
3640 // |
3689 // |
3641 TInt CMmPhoneTsy::GetIndicators( |
3690 TInt CMmPhoneTsy::GetIndicators( |
3642 const TTsyReqHandle aTsyReqHandle, |
3691 const TTsyReqHandle aTsyReqHandle, |
3643 TUint32* aIndicators ) |
3692 TUint32* aIndicators ) |
3644 { |
3693 { |
3645 TFLOGSTRING( "TSY: CMmPhoneTsy::GetIndicators" ); |
3694 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORS_1, "TSY: CMmPhoneTsy::GetIndicators" ); |
3646 TInt ret( KErrGeneral ); |
3695 TInt ret( KErrGeneral ); |
3647 |
3696 |
3648 if( aIndicators ) |
3697 if( aIndicators ) |
3649 { |
3698 { |
3650 *aIndicators = GetIndicatorState(); |
3699 *aIndicators = GetIndicatorState(); |
3665 TUint32 CMmPhoneTsy::GetIndicatorState() |
3714 TUint32 CMmPhoneTsy::GetIndicatorState() |
3666 { |
3715 { |
3667 TUint32 indicators( 0 ); |
3716 TUint32 indicators( 0 ); |
3668 |
3717 |
3669 //Charger connected? |
3718 //Charger connected? |
3670 TFLOGSTRING2( "TSY: CMmPhoneTsy::GetIndicatorState charger: %d", (TInt)iBatteryInfo.iStatus ); |
3719 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORSTATE_1, "TSY: CMmPhoneTsy::GetIndicatorState charger: %d", (TInt)iBatteryInfo.iStatus ); |
3671 if( RMobilePhone::EBatteryConnectedButExternallyPowered == |
3720 if( RMobilePhone::EBatteryConnectedButExternallyPowered == |
3672 iBatteryInfo.iStatus ) |
3721 iBatteryInfo.iStatus ) |
3673 { |
3722 { |
3674 indicators |= RMobilePhone::KIndChargerConnected; |
3723 indicators |= RMobilePhone::KIndChargerConnected; |
3675 } |
3724 } |
3682 if( RMobilePhone::ERegisteredOnHomeNetwork == networkRegStatus || |
3731 if( RMobilePhone::ERegisteredOnHomeNetwork == networkRegStatus || |
3683 RMobilePhone::ERegisteredRoaming == networkRegStatus ) |
3732 RMobilePhone::ERegisteredRoaming == networkRegStatus ) |
3684 { |
3733 { |
3685 indicators |= RMobilePhone::KIndNetworkAvailable; |
3734 indicators |= RMobilePhone::KIndNetworkAvailable; |
3686 } |
3735 } |
3687 TFLOGSTRING2( "TSY: CMmPhoneTsy::GetIndicatorState network: %d", (TInt)networkRegStatus ); |
3736 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORSTATE_2, "TSY: CMmPhoneTsy::GetIndicatorState network: %d", (TInt)networkRegStatus ); |
3688 } |
3737 } |
3689 |
3738 |
3690 //Call in progress? |
3739 //Call in progress? |
3691 //-Browses through the call list to find any calls that are currently |
3740 //-Browses through the call list to find any calls that are currently |
3692 //connected |
3741 //connected |
3694 for ( TInt i=0; i<numberOfCallObjects; i++ ) |
3743 for ( TInt i=0; i<numberOfCallObjects; i++ ) |
3695 { |
3744 { |
3696 CMmCallTsy* mmCall = CallList()->GetMmCallByIndex( i ); |
3745 CMmCallTsy* mmCall = CallList()->GetMmCallByIndex( i ); |
3697 if ( RMobileCall::EStatusConnected == mmCall->MobileCallStatus() ) |
3746 if ( RMobileCall::EStatusConnected == mmCall->MobileCallStatus() ) |
3698 { |
3747 { |
3699 TFLOGSTRING3( "TSY: CMmPhoneTsy::GetIndicatorState call id: %d, status: %d", mmCall->CallId(), (TInt)mmCall->MobileCallStatus() ); |
3748 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORSTATE_3, "TSY: CMmPhoneTsy::GetIndicatorState call id: %d, status: %d", mmCall->CallId(), (TInt)mmCall->MobileCallStatus() ); |
3700 indicators |= RMobilePhone::KIndCallInProgress; |
3749 indicators |= RMobilePhone::KIndCallInProgress; |
3701 break; |
3750 break; |
3702 } |
3751 } |
3703 } |
3752 } |
3704 TFLOGSTRING2( "TSY: CMmPhoneTsy::GetIndicatorState - ok, Indicators: %d", indicators ); |
3753 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETINDICATORSTATE_4, "TSY: CMmPhoneTsy::GetIndicatorState - ok, Indicators: %d", indicators ); |
3705 |
3754 |
3706 return indicators; |
3755 return indicators; |
3707 } |
3756 } |
3708 |
3757 |
3709 // --------------------------------------------------------------------------- |
3758 // --------------------------------------------------------------------------- |
3714 // |
3763 // |
3715 void CMmPhoneTsy::CompleteGetSubscriberIdL( |
3764 void CMmPhoneTsy::CompleteGetSubscriberIdL( |
3716 TBuf8<RMobilePhone::KIMSISize> aImsiData, |
3765 TBuf8<RMobilePhone::KIMSISize> aImsiData, |
3717 TInt aError ) |
3766 TInt aError ) |
3718 { |
3767 { |
3719 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL, aError=%d", aError ); |
3768 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_1, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL, aError=%d", aError ); |
3720 |
3769 |
3721 // Set the flag to EFalse |
3770 // Set the flag to EFalse |
3722 iTSYSubscriberIdReq = EFalse; |
3771 iTSYSubscriberIdReq = EFalse; |
3723 |
3772 |
3724 RMobilePhone::TMobilePhoneSubscriberId subscriberIdTmp; |
3773 RMobilePhone::TMobilePhoneSubscriberId subscriberIdTmp; |
3725 subscriberIdTmp.Zero(); |
3774 subscriberIdTmp.Zero(); |
3726 |
3775 |
3727 // Retrieve previous IMSI value from the Central Repository |
3776 // Retrieve previous IMSI value from the Central Repository |
3728 iCFISPrivateCentRep->Get( KCtsyIMSI, subscriberIdTmp ); |
3777 iCFISPrivateCentRep->Get( KCtsyIMSI, subscriberIdTmp ); |
3729 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Get old IMSI from CenRep: %S", &subscriberIdTmp ); |
3778 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_2, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Get old IMSI from CenRep: %S", subscriberIdTmp ); |
3730 |
3779 |
3731 if ( ( KErrNone == aError ) && ( 0 < aImsiData.Length() ) ) |
3780 if ( ( KErrNone == aError ) && ( 0 < aImsiData.Length() ) ) |
3732 { |
3781 { |
3733 // Copy new IMSI value to the member variable |
3782 // Copy new IMSI value to the member variable |
3734 iSubscriberId.Copy( aImsiData.Left( aImsiData.Length() ) ); |
3783 iSubscriberId.Copy( aImsiData.Left( aImsiData.Length() ) ); |
3735 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Copy new IMSI: %S", &iSubscriberId ); |
3784 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_3, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Copy new IMSI: %S", iSubscriberId ); |
3736 } |
3785 } |
3737 |
3786 |
3738 // check the boot state security, is the security ready (PIN query) |
3787 // check the boot state security, is the security ready (PIN query) |
3739 if ( iBootState.iSecReady ) |
3788 if ( iBootState.iSecReady ) |
3740 { |
3789 { |
3741 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Security ready"); |
3790 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_4, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Security ready"); |
3742 |
3791 |
3743 // Check has the IMSI changed and is there previous info: or an error |
3792 // Check has the IMSI changed and is there previous info: or an error |
3744 if ( KErrNotFound == subscriberIdTmp.Match( iSubscriberId ) && |
3793 if ( KErrNotFound == subscriberIdTmp.Match( iSubscriberId ) && |
3745 subscriberIdTmp.Length() != 0 || |
3794 subscriberIdTmp.Length() != 0 || |
3746 KErrNone != aError ) |
3795 KErrNone != aError ) |
3753 iMWISCentRep->Reset(); |
3802 iMWISCentRep->Reset(); |
3754 //Reset private side CR |
3803 //Reset private side CR |
3755 iCFISPrivateCentRep->Reset(); |
3804 iCFISPrivateCentRep->Reset(); |
3756 // Reset MWIS support |
3805 // Reset MWIS support |
3757 iMmSupplServTsy->SetIccSupportForMWIS( ETrue ); |
3806 iMmSupplServTsy->SetIccSupportForMWIS( ETrue ); |
3758 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Central Repositories have been reseted!"); |
3807 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_5, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Central Repositories have been reseted!"); |
3759 |
3808 |
3760 // intialize the previous SIM related data |
3809 // intialize the previous SIM related data |
3761 if ( iMmCustomTsy ) |
3810 if ( iMmCustomTsy ) |
3762 { |
3811 { |
3763 iMmCustomTsy->SetIccCfBootUpFlag( ETrue ); |
3812 iMmCustomTsy->SetIccCfBootUpFlag( ETrue ); |
3765 iMmSupplServTsy->SetIccMwisBootUpFlag( ETrue ); |
3814 iMmSupplServTsy->SetIccMwisBootUpFlag( ETrue ); |
3766 |
3815 |
3767 // get new infromation from lower levels, if sim is ready |
3816 // get new infromation from lower levels, if sim is ready |
3768 if ( iBootState.iSIMReady ) |
3817 if ( iBootState.iSIMReady ) |
3769 { |
3818 { |
3770 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - SIM ready, retrive intial ICC SIM data."); |
3819 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_6, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - SIM ready, retrive intial ICC SIM data."); |
3771 |
3820 |
3772 // update ALS line information |
3821 // update ALS line information |
3773 iMessageManager->HandleRequestL( EMobilePhoneGetALSLine ); |
3822 iMessageManager->HandleRequestL( EMobilePhoneGetALSLine ); |
3774 // update call forward information |
3823 // update call forward information |
3775 iMessageManager->HandleRequestL( |
3824 iMessageManager->HandleRequestL( |
3788 ( 0 < aImsiData.Length() ) && |
3837 ( 0 < aImsiData.Length() ) && |
3789 KErrNotFound == subscriberIdTmp.Match( iSubscriberId ) ) |
3838 KErrNotFound == subscriberIdTmp.Match( iSubscriberId ) ) |
3790 { |
3839 { |
3791 // Write new IMSI value to the central repository |
3840 // Write new IMSI value to the central repository |
3792 iCFISPrivateCentRep->Set( KCtsyIMSI, iSubscriberId ); |
3841 iCFISPrivateCentRep->Set( KCtsyIMSI, iSubscriberId ); |
3793 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Write new IMSI to the CenRep: %S", &iSubscriberId ); |
3842 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSUBSCRIBERIDL_7, "TSY: CMmPhoneTsy::CompleteGetSubscriberIdL - Write new IMSI to the CenRep: %S", iSubscriberId ); |
3794 } |
3843 } |
3795 |
3844 |
3796 //reset req handle. Returns the deleted req handle |
3845 //reset req handle. Returns the deleted req handle |
3797 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3846 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
3798 EMultimodePhoneGetSubscriberId ); |
3847 EMultimodePhoneGetSubscriberId ); |
3849 // |
3898 // |
3850 TInt CMmPhoneTsy::GetALSLineL( |
3899 TInt CMmPhoneTsy::GetALSLineL( |
3851 const TTsyReqHandle aTsyReqHandle, |
3900 const TTsyReqHandle aTsyReqHandle, |
3852 RMobilePhone::TMobilePhoneALSLine* aALSLine ) |
3901 RMobilePhone::TMobilePhoneALSLine* aALSLine ) |
3853 { |
3902 { |
3854 TFLOGSTRING("TSY: CMmPhoneTsy::GetALSLineL"); |
3903 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETALSLINEL_1, "TSY: CMmPhoneTsy::GetALSLineL"); |
3855 |
3904 |
3856 TInt ret ( KErrNone ); |
3905 TInt ret ( KErrNone ); |
3857 TBool alsSupportedBySim; |
3906 TBool alsSupportedBySim; |
3858 |
3907 |
3859 //Get als support info |
3908 //Get als support info |
3965 // |
4014 // |
3966 void CMmPhoneTsy::CompleteGetAlsLine( |
4015 void CMmPhoneTsy::CompleteGetAlsLine( |
3967 RMobilePhone::TMobilePhoneALSLine aAlsStatus, |
4016 RMobilePhone::TMobilePhoneALSLine aAlsStatus, |
3968 TInt aErrorCode ) |
4017 TInt aErrorCode ) |
3969 { |
4018 { |
3970 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetAlsLine - ALS line" ); |
4019 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETALSLINE_1, "TSY: CMmPhoneTsy::CompleteGetAlsLine - ALS line" ); |
3971 |
4020 |
3972 //check if value has been updated |
4021 //check if value has been updated |
3973 if ( aAlsStatus != iAlsLine ) |
4022 if ( aAlsStatus != iAlsLine ) |
3974 { |
4023 { |
3975 //save value in tsy |
4024 //save value in tsy |
4005 // |
4054 // |
4006 TInt CMmPhoneTsy::SetALSLineL( |
4055 TInt CMmPhoneTsy::SetALSLineL( |
4007 const TTsyReqHandle aTsyReqHandle, |
4056 const TTsyReqHandle aTsyReqHandle, |
4008 RMobilePhone::TMobilePhoneALSLine* aALSLine ) |
4057 RMobilePhone::TMobilePhoneALSLine* aALSLine ) |
4009 { |
4058 { |
4010 TFLOGSTRING("TSY: CMmPhoneTsy::SetALSLineL"); |
4059 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETALSLINEL_1, "TSY: CMmPhoneTsy::SetALSLineL"); |
4011 TInt ret ( KErrNone ); |
4060 TInt ret ( KErrNone ); |
4012 TBool alsSupportedBySim ( EFalse ); |
4061 TBool alsSupportedBySim ( EFalse ); |
4013 |
4062 |
4014 //Get als support info |
4063 //Get als support info |
4015 iCentRep->Get( KCtsyMEAlsSupported, alsSupportedBySim ); |
4064 iCentRep->Get( KCtsyMEAlsSupported, alsSupportedBySim ); |
4078 // --------------------------------------------------------------------------- |
4127 // --------------------------------------------------------------------------- |
4079 // |
4128 // |
4080 void CMmPhoneTsy::CompleteSetAlsLine( |
4129 void CMmPhoneTsy::CompleteSetAlsLine( |
4081 TInt aErrorCode ) |
4130 TInt aErrorCode ) |
4082 { |
4131 { |
4083 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteSetAlsLine - ALS line: %d", iTempAlsLine ); |
4132 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETESETALSLINE_1, "TSY: CMmPhoneTsy::CompleteSetAlsLine - ALS line: %d", iTempAlsLine ); |
4084 |
4133 |
4085 //reset req handle. Returns the deleted req handle |
4134 //reset req handle. Returns the deleted req handle |
4086 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4135 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4087 EMultimodePhoneSetAlsLine ); |
4136 EMultimodePhoneSetAlsLine ); |
4088 |
4137 |
4167 // |
4216 // |
4168 TInt CMmPhoneTsy::GetFdnStatusL( |
4217 TInt CMmPhoneTsy::GetFdnStatusL( |
4169 const TTsyReqHandle aTsyReqHandle, |
4218 const TTsyReqHandle aTsyReqHandle, |
4170 RMobilePhone::TMobilePhoneFdnStatus* aFdnStatus ) |
4219 RMobilePhone::TMobilePhoneFdnStatus* aFdnStatus ) |
4171 { |
4220 { |
4172 TFLOGSTRING( "TSY: CMmPhoneTsy::GetFdnStatusL" ); |
4221 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETFDNSTATUSL_1, "TSY: CMmPhoneTsy::GetFdnStatusL" ); |
4173 |
4222 |
4174 TInt ret ( KErrServerBusy ); |
4223 TInt ret ( KErrServerBusy ); |
4175 |
4224 |
4176 //check if handle is not in use already |
4225 //check if handle is not in use already |
4177 TTsyReqHandle phoneSetLockSettingHandle = |
4226 TTsyReqHandle phoneSetLockSettingHandle = |
4211 // |
4260 // |
4212 void CMmPhoneTsy::CompleteGetFdnStatus( |
4261 void CMmPhoneTsy::CompleteGetFdnStatus( |
4213 CMmDataPackage* aDataPackage, |
4262 CMmDataPackage* aDataPackage, |
4214 TInt aErrorCode ) |
4263 TInt aErrorCode ) |
4215 { |
4264 { |
4216 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetFdnStatus - Error: %d", aErrorCode ); |
4265 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETFDNSTATUS_1, "TSY: CMmPhoneTsy::CompleteGetFdnStatus - Error: %d", aErrorCode ); |
4217 |
4266 |
4218 |
4267 |
4219 //reset req handle. Returns the deleted req handle |
4268 //reset req handle. Returns the deleted req handle |
4220 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4269 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4221 EMultimodePhoneGetFdnStatus ); |
4270 EMultimodePhoneGetFdnStatus ); |
4244 // --------------------------------------------------------------------------- |
4293 // --------------------------------------------------------------------------- |
4245 // |
4294 // |
4246 TInt CMmPhoneTsy::GetFdnStatusCancel( |
4295 TInt CMmPhoneTsy::GetFdnStatusCancel( |
4247 const TTsyReqHandle aTsyReqHandle ) |
4296 const TTsyReqHandle aTsyReqHandle ) |
4248 { |
4297 { |
4249 TFLOGSTRING( "TSY: CMmPhoneTsy::GetFdnStatusCancel" ); |
4298 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETFDNSTATUSCANCEL_1, "TSY: CMmPhoneTsy::GetFdnStatusCancel" ); |
4250 iRetGetFdnStatus = NULL; |
4299 iRetGetFdnStatus = NULL; |
4251 |
4300 |
4252 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetFdnStatus ); |
4301 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetFdnStatus ); |
4253 |
4302 |
4254 ReqCompleted( aTsyReqHandle, KErrCancel ); |
4303 ReqCompleted( aTsyReqHandle, KErrCancel ); |
4294 // --------------------------------------------------------------------------- |
4343 // --------------------------------------------------------------------------- |
4295 // |
4344 // |
4296 void CMmPhoneTsy::CompleteSetFdnSettingL( |
4345 void CMmPhoneTsy::CompleteSetFdnSettingL( |
4297 TInt aErrorCode ) |
4346 TInt aErrorCode ) |
4298 { |
4347 { |
4299 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteSetFdnSettingL - Error: %d", |
4348 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETESETFDNSETTINGL_1, "TSY: CMmPhoneTsy::CompleteSetFdnSettingL - Error: %d",aErrorCode); |
4300 aErrorCode); |
|
4301 |
4349 |
4302 //reset req handle. Returns the deleted req handle |
4350 //reset req handle. Returns the deleted req handle |
4303 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4351 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4304 EMultimodePhoneSetFdnSetting ); |
4352 EMultimodePhoneSetFdnSetting ); |
4305 |
4353 |
4552 |
4600 |
4553 // 2G SIM |
4601 // 2G SIM |
4554 if ( CMmPhoneGsmWcdmaExt::EICCTypeSim2GGsm == currentIccType) |
4602 if ( CMmPhoneGsmWcdmaExt::EICCTypeSim2GGsm == currentIccType) |
4555 { |
4603 { |
4556 *aCaps = RMobilePhone::KCapsSimAccessSupported; |
4604 *aCaps = RMobilePhone::KCapsSimAccessSupported; |
4557 TFLOGSTRING("TSY: CMmPhoneTsy::GetIccAccessCaps: aCaps = KCapsSimAccessSupported."); |
4605 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETICCACCESSCAPS_1, "TSY: CMmPhoneTsy::GetIccAccessCaps: aCaps = KCapsSimAccessSupported."); |
4558 } |
4606 } |
4559 // 3G USIM |
4607 // 3G USIM |
4560 else if ( CMmPhoneGsmWcdmaExt::EICCTypeSim3G == currentIccType ) |
4608 else if ( CMmPhoneGsmWcdmaExt::EICCTypeSim3G == currentIccType ) |
4561 { |
4609 { |
4562 *aCaps = RMobilePhone::KCapsUSimAccessSupported + |
4610 *aCaps = RMobilePhone::KCapsUSimAccessSupported + |
4563 RMobilePhone::KCapsSimAccessSupported; |
4611 RMobilePhone::KCapsSimAccessSupported; |
4564 TFLOGSTRING("TSY: CMmPhoneTsy::GetIccAccessCaps: aCaps = KCapsUSimAccessSupported + KCapsSimAccessSupported."); |
4612 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETICCACCESSCAPS_2, "TSY: CMmPhoneTsy::GetIccAccessCaps: aCaps = KCapsUSimAccessSupported + KCapsSimAccessSupported."); |
4565 } |
4613 } |
4566 ReqCompleted( aTsyReqHandle, ret ); |
4614 ReqCompleted( aTsyReqHandle, ret ); |
4567 |
4615 |
4568 return KErrNone; |
4616 return KErrNone; |
4569 } |
4617 } |
4623 |
4671 |
4624 switch ( iMmPhoneExtInterface->CurrentICCType() ) |
4672 switch ( iMmPhoneExtInterface->CurrentICCType() ) |
4625 { |
4673 { |
4626 case CMmPhoneGsmWcdmaExt::EICCTypeSim2GGsm: // 2G SIM |
4674 case CMmPhoneGsmWcdmaExt::EICCTypeSim2GGsm: // 2G SIM |
4627 *iICCCaps = RMobilePhone::KCapsSimAccessSupported; |
4675 *iICCCaps = RMobilePhone::KCapsSimAccessSupported; |
4628 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyIccAccessCapsChange: KCapsSimAccessSupported."); |
4676 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYICCACCESSCAPSCHANGE_1, "TSY: CMmPhoneTsy::CompleteNotifyIccAccessCapsChange: KCapsSimAccessSupported."); |
4629 break; |
4677 break; |
4630 case CMmPhoneGsmWcdmaExt::EICCTypeSim3G: // 3G USIM |
4678 case CMmPhoneGsmWcdmaExt::EICCTypeSim3G: // 3G USIM |
4631 *iICCCaps = RMobilePhone::KCapsUSimAccessSupported; |
4679 *iICCCaps = RMobilePhone::KCapsUSimAccessSupported; |
4632 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyIccAccessCapsChange: KCapsUSimAccessSupported."); |
4680 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYICCACCESSCAPSCHANGE_2, "TSY: CMmPhoneTsy::CompleteNotifyIccAccessCapsChange: KCapsUSimAccessSupported."); |
4633 break; |
4681 break; |
4634 |
4682 |
4635 default: |
4683 default: |
4636 *iICCCaps = 0x0; |
4684 *iICCCaps = 0x0; |
4637 |
4685 |
4672 serviceTableV1 = &( ( *serviceTableV1Pckg ) () ); |
4720 serviceTableV1 = &( ( *serviceTableV1Pckg ) () ); |
4673 |
4721 |
4674 ret = GetServiceTableL( aTsyReqHandle, aTable, serviceTableV1 ); |
4722 ret = GetServiceTableL( aTsyReqHandle, aTable, serviceTableV1 ); |
4675 } |
4723 } |
4676 |
4724 |
4677 TFLOGSTRING2("TSY: CMmPhoneTsy::GetServiceTableCheckParametersL - ret:%d",ret); |
4725 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLECHECKPARAMETERSL_1, "TSY: CMmPhoneTsy::GetServiceTableCheckParametersL - ret:%d",ret); |
4678 return ret; |
4726 return ret; |
4679 } |
4727 } |
4680 |
4728 |
4681 // --------------------------------------------------------------------------- |
4729 // --------------------------------------------------------------------------- |
4682 // CMmPhoneTsy::GetServiceTableL |
4730 // CMmPhoneTsy::GetServiceTableL |
4687 TInt CMmPhoneTsy::GetServiceTableL( |
4735 TInt CMmPhoneTsy::GetServiceTableL( |
4688 const TTsyReqHandle aTsyReqHandle, |
4736 const TTsyReqHandle aTsyReqHandle, |
4689 RMobilePhone::TMobilePhoneServiceTable* aTable, |
4737 RMobilePhone::TMobilePhoneServiceTable* aTable, |
4690 RMobilePhone::TMobilePhoneServiceTableV1* aTableData ) |
4738 RMobilePhone::TMobilePhoneServiceTableV1* aTableData ) |
4691 { |
4739 { |
4692 TFLOGSTRING2("TSY: CMmPhoneTsy::GetServiceTableL - Handle:%d", aTsyReqHandle); |
4740 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLEL_1, "TSY: CMmPhoneTsy::GetServiceTableL - Handle:%d", aTsyReqHandle); |
4693 TInt ret( KErrServerBusy ); |
4741 TInt ret( KErrServerBusy ); |
4694 |
4742 |
4695 TTsyReqHandle serviceTableHandle = |
4743 TTsyReqHandle serviceTableHandle = |
4696 iTsyReqHandleStore->GetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
4744 iTsyReqHandleStore->GetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
4697 |
4745 |
4742 if ( KErrNone == ret ) |
4790 if ( KErrNone == ret ) |
4743 { |
4791 { |
4744 // if SIM is not ready, store request and complete it when SIM is ready |
4792 // if SIM is not ready, store request and complete it when SIM is ready |
4745 if ( !iBootState.iSIMReady ) |
4793 if ( !iBootState.iSIMReady ) |
4746 { |
4794 { |
4747 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceTableL - request when SIM not ready - store req" ); |
4795 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLEL_2, "TSY: CMmPhoneTsy::GetServiceTableL - request when SIM not ready - store req" ); |
4748 TServiceTableRequests* req = new (ELeave) TServiceTableRequests(); |
4796 TServiceTableRequests* req = new (ELeave) TServiceTableRequests(); |
4749 req->iReqHandle = aTsyReqHandle; |
4797 req->iReqHandle = aTsyReqHandle; |
4750 req->iTable = aTable; |
4798 req->iTable = aTable; |
4751 req->iTableData = aTableData; |
4799 req->iTableData = aTableData; |
4752 iServiceTableRequests.Append( req ); |
4800 iServiceTableRequests.Append( req ); |
4754 else |
4802 else |
4755 { |
4803 { |
4756 if( RMobilePhone::ESIMServiceTable == |
4804 if( RMobilePhone::ESIMServiceTable == |
4757 *aTable && iServiceTableDataCache ) |
4805 *aTable && iServiceTableDataCache ) |
4758 { |
4806 { |
4759 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceTableL ESIMServiceTable returned from cache"); |
4807 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLEL_3, "TSY: CMmPhoneTsy::GetServiceTableL ESIMServiceTable returned from cache"); |
4760 *aTableData = *iServiceTableDataCache; |
4808 *aTableData = *iServiceTableDataCache; |
4761 ReqCompleted( aTsyReqHandle, ret ); |
4809 ReqCompleted( aTsyReqHandle, ret ); |
4762 return KErrNone; |
4810 return KErrNone; |
4763 } |
4811 } |
4764 else if ( RMobilePhone::EUSIMServiceTable== |
4812 else if ( RMobilePhone::EUSIMServiceTable== |
4765 *aTable && iServiceTableUSIMDataCache ) |
4813 *aTable && iServiceTableUSIMDataCache ) |
4766 { |
4814 { |
4767 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceTableL EUSIMServiceTable returned from cache"); |
4815 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLEL_4, "TSY: CMmPhoneTsy::GetServiceTableL EUSIMServiceTable returned from cache"); |
4768 *aTableData = *iServiceTableUSIMDataCache; |
4816 *aTableData = *iServiceTableUSIMDataCache; |
4769 ReqCompleted( aTsyReqHandle, ret ); |
4817 ReqCompleted( aTsyReqHandle, ret ); |
4770 return KErrNone; |
4818 return KErrNone; |
4771 } |
4819 } |
4772 else |
4820 else |
4773 { |
4821 { |
4774 if( !iSimRefreshRegisterOk && !( iServiceTableReq->iCaching ) ) |
4822 if( !iSimRefreshRegisterOk && !( iServiceTableReq->iCaching ) ) |
4775 { |
4823 { |
4776 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceTableL sim refresh registration failed - possible old data - cache and complete "); |
4824 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLEL_5, "TSY: CMmPhoneTsy::GetServiceTableL sim refresh registration failed - possible old data - cache and complete "); |
4777 //Store reguest parameters for completion |
4825 //Store reguest parameters for completion |
4778 iServiceTableReq->iReqHandle = aTsyReqHandle; |
4826 iServiceTableReq->iReqHandle = aTsyReqHandle; |
4779 iServiceTableReq->iTable = aTable; |
4827 iServiceTableReq->iTable = aTable; |
4780 iServiceTableReq->iTableData = aTableData; |
4828 iServiceTableReq->iTableData = aTableData; |
4781 iServiceTableReq->iCaching = ETrue; |
4829 iServiceTableReq->iCaching = ETrue; |
4846 // (other items were commented in a header). |
4894 // (other items were commented in a header). |
4847 // --------------------------------------------------------------------------- |
4895 // --------------------------------------------------------------------------- |
4848 // |
4896 // |
4849 void CMmPhoneTsy::CacheServiceTablesL() |
4897 void CMmPhoneTsy::CacheServiceTablesL() |
4850 { |
4898 { |
4851 TFLOGSTRING("TSY: CMmPhoneTsy::CacheServiceTables."); |
4899 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHESERVICETABLESL_1, "TSY: CMmPhoneTsy::CacheServiceTables."); |
4852 |
4900 |
4853 // Start caching if it is not already ongoing |
4901 // Start caching if it is not already ongoing |
4854 if ( (((iSimCacheQueue && ( KCacheServiceTable & iSimCacheQueue )) ) |
4902 if ( (((iSimCacheQueue && ( KCacheServiceTable & iSimCacheQueue )) ) |
4855 && IsRefreshOngoing()) || !IsRefreshOngoing() ) |
4903 && IsRefreshOngoing()) || !IsRefreshOngoing() ) |
4856 { |
4904 { |
4875 // (other items were commented in a header). |
4923 // (other items were commented in a header). |
4876 // --------------------------------------------------------------------------- |
4924 // --------------------------------------------------------------------------- |
4877 // |
4925 // |
4878 void CMmPhoneTsy::CompleteCacheServiceTablesL( const TInt aError ) |
4926 void CMmPhoneTsy::CompleteCacheServiceTablesL( const TInt aError ) |
4879 { |
4927 { |
4880 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL Error = %d", aError); |
4928 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_1, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL Error = %d", aError); |
4881 if ( ( iSimCacheQueue && ( KCacheServiceTable & iSimCacheQueue ) ) |
4929 if ( ( iSimCacheQueue && ( KCacheServiceTable & iSimCacheQueue ) ) |
4882 && IsRefreshOngoing() ) |
4930 && IsRefreshOngoing() ) |
4883 { |
4931 { |
4884 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL"); |
4932 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_2, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL"); |
4885 CompleteCacheSimL( KCacheServiceTable, aError ); |
4933 CompleteCacheSimL( KCacheServiceTable, aError ); |
4886 } |
4934 } |
4887 |
4935 |
4888 TInt ret = KErrNone; |
4936 TInt ret = KErrNone; |
4889 |
4937 |
4890 // check pending requests and proceed if any |
4938 // check pending requests and proceed if any |
4891 TInt serviceTableRequestsCount = iServiceTableRequests.Count(); |
4939 TInt serviceTableRequestsCount = iServiceTableRequests.Count(); |
4892 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - serviceTableRequestsCount: %d", serviceTableRequestsCount ); |
4940 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_3, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - serviceTableRequestsCount: %d", serviceTableRequestsCount ); |
4893 |
4941 |
4894 if ( serviceTableRequestsCount ) |
4942 if ( serviceTableRequestsCount ) |
4895 { |
4943 { |
4896 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Completing pending ServiceTableRequests"); |
4944 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_4, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Completing pending ServiceTableRequests"); |
4897 // check request type for every pending request and complete |
4945 // check request type for every pending request and complete |
4898 for ( TInt i = 0; i < serviceTableRequestsCount; i++ ) |
4946 for ( TInt i = 0; i < serviceTableRequestsCount; i++ ) |
4899 { |
4947 { |
4900 TServiceTableRequests* req = iServiceTableRequests[ i ]; |
4948 TServiceTableRequests* req = iServiceTableRequests[ i ]; |
4901 if ( RMobilePhone::ESIMServiceTable == *req->iTable ) |
4949 if ( RMobilePhone::ESIMServiceTable == *req->iTable ) |
4902 { |
4950 { |
4903 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending ESIMServiceTableRequest"); |
4951 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_5, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending ESIMServiceTableRequest"); |
4904 *(req->iTableData) = *iServiceTableDataCache; |
4952 *(req->iTableData) = *iServiceTableDataCache; |
4905 } |
4953 } |
4906 else if ( RMobilePhone::EUSIMServiceTable == *req->iTable ) |
4954 else if ( RMobilePhone::EUSIMServiceTable == *req->iTable ) |
4907 { |
4955 { |
4908 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending ESIMServiceTableRequest"); |
4956 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_6, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending ESIMServiceTableRequest"); |
4909 *(req->iTableData) = *iServiceTableUSIMDataCache; |
4957 *(req->iTableData) = *iServiceTableUSIMDataCache; |
4910 } |
4958 } |
4911 else |
4959 else |
4912 { |
4960 { |
4913 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending BadRequest - KErrGeneral"); |
4961 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_7, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - pending BadRequest - KErrGeneral"); |
4914 ret = KErrGeneral; |
4962 ret = KErrGeneral; |
4915 } |
4963 } |
4916 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - ReqCompleted for pending req withHandle:%d", req->iReqHandle); |
4964 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_8, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - ReqCompleted for pending req withHandle:%d", req->iReqHandle); |
4917 ReqCompleted(req->iReqHandle, ret); |
4965 ReqCompleted(req->iReqHandle, ret); |
4918 } |
4966 } |
4919 // Reset req handle |
4967 // Reset req handle |
4920 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
4968 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
4921 iServiceTableRequests.ResetAndDestroy(); |
4969 iServiceTableRequests.ResetAndDestroy(); |
4922 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Reset and ResetAndDestroy!"); |
4970 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_9, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Reset and ResetAndDestroy!"); |
4923 } |
4971 } |
4924 |
4972 |
4925 if ( ENoRequest != iPendingServiceTableReq ) |
4973 if ( ENoRequest != iPendingServiceTableReq ) |
4926 { |
4974 { |
4927 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL completing client request"); |
4975 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_10, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL completing client request"); |
4928 // Complete client request if pending |
4976 // Complete client request if pending |
4929 |
4977 |
4930 // Reset req handle. Returns the deleted req handle |
4978 // Reset req handle. Returns the deleted req handle |
4931 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4979 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
4932 EMultimodePhoneGetServiceTable ); |
4980 EMultimodePhoneGetServiceTable ); |
4958 } |
5006 } |
4959 } |
5007 } |
4960 |
5008 |
4961 if ( iCalledOnGet && ( iServiceTableReq->iCaching ) ) |
5009 if ( iCalledOnGet && ( iServiceTableReq->iCaching ) ) |
4962 { |
5010 { |
4963 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Called when reading service tables - "); |
5011 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_11, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Called when reading service tables - "); |
4964 iCalledOnGet = EFalse; |
5012 iCalledOnGet = EFalse; |
4965 iSimCacheQueue = 0; |
5013 iSimCacheQueue = 0; |
4966 iRefreshOngoing = EFalse; |
5014 iRefreshOngoing = EFalse; |
4967 GetServiceTableL( iServiceTableReq->iReqHandle,iServiceTableReq->iTable, |
5015 GetServiceTableL( iServiceTableReq->iReqHandle,iServiceTableReq->iTable, |
4968 iServiceTableReq->iTableData ); |
5016 iServiceTableReq->iTableData ); |
4977 else |
5025 else |
4978 { |
5026 { |
4979 iPendingServiceTableReq = ENoRequest; |
5027 iPendingServiceTableReq = ENoRequest; |
4980 |
5028 |
4981 // Complete request if error occured |
5029 // Complete request if error occured |
4982 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Completing req if error occurred"); |
5030 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESERVICETABLESL_12, "TSY: CMmPhoneTsy::CompleteCacheServiceTablesL - Completing req if error occurred"); |
4983 ReqCompleted( reqHandle, ret ); |
5031 ReqCompleted( reqHandle, ret ); |
4984 } |
5032 } |
4985 } |
5033 } |
4986 } |
5034 } |
4987 } |
5035 } |
4995 // |
5043 // |
4996 void CMmPhoneTsy::CompleteGetServiceTableL( |
5044 void CMmPhoneTsy::CompleteGetServiceTableL( |
4997 RMobilePhone::TMobilePhoneServiceTableV1 aTableData, |
5045 RMobilePhone::TMobilePhoneServiceTableV1 aTableData, |
4998 TInt aErrorCode ) |
5046 TInt aErrorCode ) |
4999 { |
5047 { |
5000 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceTableL Error = %d", aErrorCode); |
5048 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_1, "TSY: CMmPhoneTsy::CompleteGetServiceTableL Error = %d", aErrorCode); |
5001 // Check if timeout has happend, complete to all pending ServiceTable |
5049 // Check if timeout has happend, complete to all pending ServiceTable |
5002 // requests and clear queue |
5050 // requests and clear queue |
5003 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL"); |
5051 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_2, "TSY: CMmPhoneTsy::CompleteGetServiceTableL"); |
5004 if ( KErrTimedOut == aErrorCode ) |
5052 if ( KErrTimedOut == aErrorCode ) |
5005 { |
5053 { |
5006 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL - Timeout happened"); |
5054 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_3, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - Timeout happened"); |
5007 // Reset req handle. Returns the deleted req handle |
5055 // Reset req handle. Returns the deleted req handle |
5008 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5056 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5009 EMultimodePhoneGetServiceTable ); |
5057 EMultimodePhoneGetServiceTable ); |
5010 |
5058 |
5011 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
5059 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
5012 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL - in EMultimodePhoneReqHandleUnknown != reqHandle" ); |
5060 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_4, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - in EMultimodePhoneReqHandleUnknown != reqHandle" ); |
5013 { |
5061 { |
5014 // count pending requests and proceed if any |
5062 // count pending requests and proceed if any |
5015 TInt serviceTableRequestsCount = iServiceTableRequests.Count(); |
5063 TInt serviceTableRequestsCount = iServiceTableRequests.Count(); |
5016 |
5064 |
5017 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceTableL - serviceTableRequestsCount: %d", serviceTableRequestsCount ); |
5065 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_5, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - serviceTableRequestsCount: %d", serviceTableRequestsCount ); |
5018 if ( serviceTableRequestsCount ) |
5066 if ( serviceTableRequestsCount ) |
5019 { |
5067 { |
5020 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL - Completing pending ServiceTableRequests"); |
5068 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_6, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - Completing pending ServiceTableRequests"); |
5021 // complete pending requests |
5069 // complete pending requests |
5022 for ( TInt i = 0; i < serviceTableRequestsCount; i++ ) |
5070 for ( TInt i = 0; i < serviceTableRequestsCount; i++ ) |
5023 { |
5071 { |
5024 TServiceTableRequests* req = iServiceTableRequests[ i ]; |
5072 TServiceTableRequests* req = iServiceTableRequests[ i ]; |
5025 |
5073 |
5026 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetServiceTableL - ReqCompleted for pending req withHandle:%d", req->iReqHandle); |
5074 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_7, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - ReqCompleted for pending req withHandle:%d", req->iReqHandle); |
5027 ReqCompleted(req->iReqHandle, aErrorCode); |
5075 ReqCompleted(req->iReqHandle, aErrorCode); |
5028 } |
5076 } |
5029 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL - in iServiceTableRequests.ResetAndDestroy()" ); |
5077 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_8, "TSY: CMmPhoneTsy::CompleteGetServiceTableL - in iServiceTableRequests.ResetAndDestroy()" ); |
5030 iServiceTableRequests.ResetAndDestroy(); |
5078 iServiceTableRequests.ResetAndDestroy(); |
5031 } |
5079 } |
5032 } |
5080 } |
5033 } |
5081 } |
5034 |
5082 |
5035 if ( ESIMRequest == iPendingServiceTableCacheReq ) |
5083 if ( ESIMRequest == iPendingServiceTableCacheReq ) |
5036 { |
5084 { |
5037 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL got Service Table"); |
5085 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_9, "TSY: CMmPhoneTsy::CompleteGetServiceTableL got Service Table"); |
5038 |
5086 |
5039 delete iServiceTableDataCache; |
5087 delete iServiceTableDataCache; |
5040 iServiceTableDataCache = NULL; |
5088 iServiceTableDataCache = NULL; |
5041 |
5089 |
5042 if ( KErrNone == aErrorCode ) |
5090 if ( KErrNone == aErrorCode ) |
5050 // Request USIM Service Table |
5098 // Request USIM Service Table |
5051 if ( ( CMmPhoneGsmWcdmaExt::EICCTypeSim3G == |
5099 if ( ( CMmPhoneGsmWcdmaExt::EICCTypeSim3G == |
5052 iMmPhoneExtInterface->CurrentICCType() ) && |
5100 iMmPhoneExtInterface->CurrentICCType() ) && |
5053 ENoRequest != iPendingServiceTableCacheReq ) |
5101 ENoRequest != iPendingServiceTableCacheReq ) |
5054 { |
5102 { |
5055 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL requesting USIM Service Table"); |
5103 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_10, "TSY: CMmPhoneTsy::CompleteGetServiceTableL requesting USIM Service Table"); |
5056 |
5104 |
5057 RMobilePhone::TMobilePhoneServiceTable serviceTable = |
5105 RMobilePhone::TMobilePhoneServiceTable serviceTable = |
5058 RMobilePhone::EUSIMServiceTable; |
5106 RMobilePhone::EUSIMServiceTable; |
5059 |
5107 |
5060 iPendingServiceTableCacheReq = EUSIMRequest; |
5108 iPendingServiceTableCacheReq = EUSIMRequest; |
5075 } |
5123 } |
5076 |
5124 |
5077 } |
5125 } |
5078 else if ( EUSIMRequest == iPendingServiceTableCacheReq ) |
5126 else if ( EUSIMRequest == iPendingServiceTableCacheReq ) |
5079 { |
5127 { |
5080 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL got USIM Service Table"); |
5128 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_11, "TSY: CMmPhoneTsy::CompleteGetServiceTableL got USIM Service Table"); |
5081 |
5129 |
5082 delete iServiceTableUSIMDataCache; |
5130 delete iServiceTableUSIMDataCache; |
5083 iServiceTableUSIMDataCache = NULL; |
5131 iServiceTableUSIMDataCache = NULL; |
5084 |
5132 |
5085 if ( KErrNone == aErrorCode ) |
5133 if ( KErrNone == aErrorCode ) |
5099 // Update data only if caching is not ongoing and client request |
5147 // Update data only if caching is not ongoing and client request |
5100 // is pending |
5148 // is pending |
5101 if ( ENoRequest != iPendingServiceTableReq && |
5149 if ( ENoRequest != iPendingServiceTableReq && |
5102 ENoRequest == iPendingServiceTableCacheReq ) |
5150 ENoRequest == iPendingServiceTableCacheReq ) |
5103 { |
5151 { |
5104 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL completing client request"); |
5152 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_12, "TSY: CMmPhoneTsy::CompleteGetServiceTableL completing client request"); |
5105 // Complete client request if pending |
5153 // Complete client request if pending |
5106 |
5154 |
5107 // Reset req handle. Returns the deleted req handle |
5155 // Reset req handle. Returns the deleted req handle |
5108 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5156 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5109 EMultimodePhoneGetServiceTable ); |
5157 EMultimodePhoneGetServiceTable ); |
5115 delete iServiceTableDataCache; |
5163 delete iServiceTableDataCache; |
5116 iServiceTableDataCache = NULL; |
5164 iServiceTableDataCache = NULL; |
5117 |
5165 |
5118 if( KErrNone == aErrorCode ) |
5166 if( KErrNone == aErrorCode ) |
5119 { |
5167 { |
5120 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL copy SIM ST data to client"); |
5168 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_13, "TSY: CMmPhoneTsy::CompleteGetServiceTableL copy SIM ST data to client"); |
5121 iServiceTableDataCache = new (ELeave) |
5169 iServiceTableDataCache = new (ELeave) |
5122 RMobilePhone::TMobilePhoneServiceTableV1(); |
5170 RMobilePhone::TMobilePhoneServiceTableV1(); |
5123 *iServiceTableDataCache = aTableData; |
5171 *iServiceTableDataCache = aTableData; |
5124 *iRetTableData = aTableData; |
5172 *iRetTableData = aTableData; |
5125 } |
5173 } |
5129 delete iServiceTableUSIMDataCache; |
5177 delete iServiceTableUSIMDataCache; |
5130 iServiceTableUSIMDataCache = NULL; |
5178 iServiceTableUSIMDataCache = NULL; |
5131 |
5179 |
5132 if( KErrNone == aErrorCode ) |
5180 if( KErrNone == aErrorCode ) |
5133 { |
5181 { |
5134 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetServiceTableL copy USIM ST data to client"); |
5182 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETSERVICETABLEL_14, "TSY: CMmPhoneTsy::CompleteGetServiceTableL copy USIM ST data to client"); |
5135 iServiceTableUSIMDataCache = new (ELeave) |
5183 iServiceTableUSIMDataCache = new (ELeave) |
5136 RMobilePhone::TMobilePhoneServiceTableV1(); |
5184 RMobilePhone::TMobilePhoneServiceTableV1(); |
5137 *iServiceTableUSIMDataCache = aTableData; |
5185 *iServiceTableUSIMDataCache = aTableData; |
5138 *iRetTableData = aTableData; |
5186 *iRetTableData = aTableData; |
5139 } |
5187 } |
5154 // --------------------------------------------------------------------------- |
5202 // --------------------------------------------------------------------------- |
5155 // |
5203 // |
5156 TInt CMmPhoneTsy::GetServiceTableCancel ( |
5204 TInt CMmPhoneTsy::GetServiceTableCancel ( |
5157 const TTsyReqHandle aTsyReqHandle ) |
5205 const TTsyReqHandle aTsyReqHandle ) |
5158 { |
5206 { |
5159 TFLOGSTRING("TSY: CMmPhoneTsy::GetServiceTableCancel"); |
5207 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSERVICETABLECANCEL_1, "TSY: CMmPhoneTsy::GetServiceTableCancel"); |
5160 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
5208 iTsyReqHandleStore->ResetTsyReqHandle( EMultimodePhoneGetServiceTable ); |
5161 ReqCompleted( aTsyReqHandle, KErrCancel ); |
5209 ReqCompleted( aTsyReqHandle, KErrCancel ); |
5162 |
5210 |
5163 return KErrNone; |
5211 return KErrNone; |
5164 } |
5212 } |
5170 // (other items were commented in a header). |
5218 // (other items were commented in a header). |
5171 // --------------------------------------------------------------------------- |
5219 // --------------------------------------------------------------------------- |
5172 // |
5220 // |
5173 TInt CMmPhoneTsy::SimRefreshRegisterL() |
5221 TInt CMmPhoneTsy::SimRefreshRegisterL() |
5174 { |
5222 { |
5175 TFLOGSTRING( "TSY: CMmPhoneTsy::SimRefreshRegisterL" ); |
5223 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SIMREFRESHREGISTERL_1, "TSY: CMmPhoneTsy::SimRefreshRegisterL" ); |
5176 |
5224 |
5177 TInt ret( KErrNone ); |
5225 TInt ret( KErrNone ); |
5178 |
5226 |
5179 // Add all supported file types to be registered for refresh |
5227 // Add all supported file types to be registered for refresh |
5180 TUint16 filesToRegister = KCacheAdn | KCacheFdn | KCacheServiceTable |
5228 TUint16 filesToRegister = KCacheAdn | KCacheFdn | KCacheServiceTable |
5189 EMmTsySimRefreshRegisterIPC, &dataPackage ); |
5237 EMmTsySimRefreshRegisterIPC, &dataPackage ); |
5190 |
5238 |
5191 if ( KErrNone != ret ) |
5239 if ( KErrNone != ret ) |
5192 { |
5240 { |
5193 // the sending has failed |
5241 // the sending has failed |
5194 TFLOGSTRING( "TSY: CMmPhoneTsy::SimRefreshRegisterL, Registration for Refresh failed" ); |
5242 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SIMREFRESHREGISTERL_2, "TSY: CMmPhoneTsy::SimRefreshRegisterL, Registration for Refresh failed" ); |
5195 } |
5243 } |
5196 |
5244 |
5197 return ret; |
5245 return ret; |
5198 } |
5246 } |
5199 |
5247 |
5204 // --------------------------------------------------------------------------- |
5252 // --------------------------------------------------------------------------- |
5205 // |
5253 // |
5206 void CMmPhoneTsy::CompleteSimRefreshRegister( |
5254 void CMmPhoneTsy::CompleteSimRefreshRegister( |
5207 TInt aErrorCode ) |
5255 TInt aErrorCode ) |
5208 { |
5256 { |
5209 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteSimRefreshRegisterL Error = %d", aErrorCode ); |
5257 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETESIMREFRESHREGISTER_1, "TSY: CMmPhoneTsy::CompleteSimRefreshRegisterL Error = %d", aErrorCode ); |
5210 |
5258 |
5211 if( KErrNone == aErrorCode ) |
5259 if( KErrNone == aErrorCode ) |
5212 { |
5260 { |
5213 iSimRefreshRegisterOk = ETrue; |
5261 iSimRefreshRegisterOk = ETrue; |
5214 } |
5262 } |
5220 // (other items were commented in a header). |
5268 // (other items were commented in a header). |
5221 // --------------------------------------------------------------------------- |
5269 // --------------------------------------------------------------------------- |
5222 // |
5270 // |
5223 TBool CMmPhoneTsy::GetSimRefreshRegister() |
5271 TBool CMmPhoneTsy::GetSimRefreshRegister() |
5224 { |
5272 { |
5225 TFLOGSTRING2( "TSY: CMmPhoneTsy::GetSimRefreshRegister iSimRefreshRegisterOk = %d", iSimRefreshRegisterOk ); |
5273 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSIMREFRESHREGISTER_1, "TSY: CMmPhoneTsy::GetSimRefreshRegister iSimRefreshRegisterOk = %d", iSimRefreshRegisterOk ); |
5226 |
5274 |
5227 return iSimRefreshRegisterOk; |
5275 return iSimRefreshRegisterOk; |
5228 } |
5276 } |
5229 |
5277 |
5230 // --------------------------------------------------------------------------- |
5278 // --------------------------------------------------------------------------- |
5235 void CMmPhoneTsy::CompleteUpdateLifeTimer( |
5283 void CMmPhoneTsy::CompleteUpdateLifeTimer( |
5236 TInt aErrorCode ) |
5284 TInt aErrorCode ) |
5237 { |
5285 { |
5238 if( KErrNone != aErrorCode) |
5286 if( KErrNone != aErrorCode) |
5239 { |
5287 { |
5240 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteUpdateLifeTimer Error = %d", aErrorCode ); |
5288 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEUPDATELIFETIMER_1, "TSY: CMmPhoneTsy::CompleteUpdateLifeTimer Error = %d", aErrorCode ); |
5241 } |
5289 } |
5242 } |
5290 } |
5243 |
5291 |
5244 //--------------------------------------------------------------------------- |
5292 //--------------------------------------------------------------------------- |
5245 // CMmPhoneTsy::GetSimRefreshRegister |
5293 // CMmPhoneTsy::GetSimRefreshRegister |
5294 // --------------------------------------------------------------------------- |
5342 // --------------------------------------------------------------------------- |
5295 // |
5343 // |
5296 void CMmPhoneTsy::CompleteSimRefreshNowL( |
5344 void CMmPhoneTsy::CompleteSimRefreshNowL( |
5297 TUint16 aFilesToRefresh ) |
5345 TUint16 aFilesToRefresh ) |
5298 { |
5346 { |
5299 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteSimRefreshNowL filemask: %d", aFilesToRefresh); |
5347 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETESIMREFRESHNOWL_1, "TSY: CMmPhoneTsy::CompleteSimRefreshNowL filemask: %d", aFilesToRefresh); |
5300 |
5348 |
5301 // Set flag to indicate that refresh has started |
5349 // Set flag to indicate that refresh has started |
5302 iRefreshOngoing = ETrue; |
5350 iRefreshOngoing = ETrue; |
5303 |
5351 |
5304 // Fill cache queue |
5352 // Fill cache queue |
5344 TBool cacheStarted = EFalse; |
5392 TBool cacheStarted = EFalse; |
5345 |
5393 |
5346 //FDN requested? (FDN has the first priority) |
5394 //FDN requested? (FDN has the first priority) |
5347 if( KCacheFdn & iSimCacheQueue ) |
5395 if( KCacheFdn & iSimCacheQueue ) |
5348 { |
5396 { |
5349 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - FDN" ); |
5397 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_1, "TSY: CMmPhoneTsy::CacheNextL - FDN" ); |
5350 pbRequested = KETelIccFdnPhoneBook; |
5398 pbRequested = KETelIccFdnPhoneBook; |
5351 resetFlag = KCacheFdn; |
5399 resetFlag = KCacheFdn; |
5352 } |
5400 } |
5353 else if( KCacheALSline & iSimCacheQueue ) |
5401 else if( KCacheALSline & iSimCacheQueue ) |
5354 { |
5402 { |
5355 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - ALS" ); |
5403 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_2, "TSY: CMmPhoneTsy::CacheNextL - ALS" ); |
5356 ResetMEAlsInfo(); |
5404 ResetMEAlsInfo(); |
5357 pbRequested = KNullDesC; |
5405 pbRequested = KNullDesC; |
5358 cacheStarted = ETrue; |
5406 cacheStarted = ETrue; |
5359 } |
5407 } |
5360 //ADN requested? |
5408 //ADN requested? |
5361 else if( KCacheAdn & iSimCacheQueue ) |
5409 else if( KCacheAdn & iSimCacheQueue ) |
5362 { |
5410 { |
5363 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - ADN" ); |
5411 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_3, "TSY: CMmPhoneTsy::CacheNextL - ADN" ); |
5364 //NOTE: Here should be added the checking of FDN active state |
5412 //NOTE: Here should be added the checking of FDN active state |
5365 pbRequested = KETelIccAdnPhoneBook; |
5413 pbRequested = KETelIccAdnPhoneBook; |
5366 resetFlag = KCacheAdn; |
5414 resetFlag = KCacheAdn; |
5367 } |
5415 } |
5368 //UNKNOWN request (erroneous requests, all valid cases have been |
5416 //UNKNOWN request (erroneous requests, all valid cases have been |
5369 //checked and the queue can be reset) |
5417 //checked and the queue can be reset) |
5370 else |
5418 else |
5371 { |
5419 { |
5372 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - Unknown" ); |
5420 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_4, "TSY: CMmPhoneTsy::CacheNextL - Unknown" ); |
5373 pbRequested = KNullDesC; |
5421 pbRequested = KNullDesC; |
5374 resetFlag = iSimCacheQueue; |
5422 resetFlag = iSimCacheQueue; |
5375 } |
5423 } |
5376 |
5424 |
5377 //PHONE BOOK Request: Is there a phonebook available? |
5425 //PHONE BOOK Request: Is there a phonebook available? |
5378 if( (pbRequested!=KNullDesC) && (iPBList) ) |
5426 if( (pbRequested!=KNullDesC) && (iPBList) ) |
5379 { |
5427 { |
5380 TInt numberOfPBooks = iPBList->GetNumberOfObjects(); |
5428 TInt numberOfPBooks = iPBList->GetNumberOfObjects(); |
5381 TFLOGSTRING2( "TSY: CMmPhoneTsy::CacheNextL - Num Of PBs: %d", numberOfPBooks ); |
5429 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_5, "TSY: CMmPhoneTsy::CacheNextL - Num Of PBs: %d", numberOfPBooks ); |
5382 |
5430 |
5383 //Browse through the phonebook names for the one required |
5431 //Browse through the phonebook names for the one required |
5384 for( TInt i=0; i < numberOfPBooks; i++ ) |
5432 for( TInt i=0; i < numberOfPBooks; i++ ) |
5385 { |
5433 { |
5386 CMmPhoneBookStoreTsy* pbStore = iPBList->GetMmPBByIndex( i ); |
5434 CMmPhoneBookStoreTsy* pbStore = iPBList->GetMmPBByIndex( i ); |
5397 // Set package data |
5445 // Set package data |
5398 package.SetPhoneBookName( pbRequested ); |
5446 package.SetPhoneBookName( pbRequested ); |
5399 TRAP_IGNORE( MessageManager()->HandleRequestL( |
5447 TRAP_IGNORE( MessageManager()->HandleRequestL( |
5400 EMmTsyPhoneBookStoreCacheCancelIPC, &package ); ); |
5448 EMmTsyPhoneBookStoreCacheCancelIPC, &package ); ); |
5401 |
5449 |
5402 #if ( TF_LOGGING_METHOD > 0 ) |
5450 |
5403 if ( pbRequested == KETelIccFdnPhoneBook ) |
5451 if ( pbRequested == KETelIccFdnPhoneBook ) |
5404 { |
5452 { |
5405 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - CancelCache for : KETelIccFdnPhoneBook" ); |
5453 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_6, "TSY: CMmPhoneTsy::CacheNextL - CancelCache for : KETelIccFdnPhoneBook" ); |
5406 } |
5454 } |
5407 else |
5455 else |
5408 { |
5456 { |
5409 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - CancelCache for : KETelIccAdnPhoneBook" ); |
5457 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_7, "TSY: CMmPhoneTsy::CacheNextL - CancelCache for : KETelIccAdnPhoneBook" ); |
5410 } |
5458 } |
5411 #endif // TF_LOGGING_METHOD |
|
5412 } |
5459 } |
5413 // perform the various stages of phonebook |
5460 // perform the various stages of phonebook |
5414 // cache re-initialisation |
5461 // cache re-initialisation |
5415 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - Resetting cache."); |
5462 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_8, "TSY: CMmPhoneTsy::CacheNextL - Resetting cache."); |
5416 pbStore->ResetCacheReady(); |
5463 pbStore->ResetCacheReady(); |
5417 pbStore->ResetInitialisationStatus(); |
5464 pbStore->ResetInitialisationStatus(); |
5418 pbStore->ResetCache(); |
5465 pbStore->ResetCache(); |
5419 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL -> Cache entries" ); |
5466 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_9, "TSY: CMmPhoneTsy::CacheNextL -> Cache entries" ); |
5420 pbStore->CacheEntriesL(); |
5467 pbStore->CacheEntriesL(); |
5421 |
5468 |
5422 cacheStarted = ETrue; |
5469 cacheStarted = ETrue; |
5423 break; |
5470 break; |
5424 } |
5471 } |
5428 //CACHING not started |
5475 //CACHING not started |
5429 //phonebook does not exist, or unknown request, |
5476 //phonebook does not exist, or unknown request, |
5430 //so the file is removed from the cache queue |
5477 //so the file is removed from the cache queue |
5431 if( !cacheStarted ) |
5478 if( !cacheStarted ) |
5432 { |
5479 { |
5433 TFLOGSTRING( "TSY: CMmPhoneTsy::CacheNextL - No PB Could be found, or Unknown request" ); |
5480 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_10, "TSY: CMmPhoneTsy::CacheNextL - No PB Could be found, or Unknown request" ); |
5434 CompleteCacheSimL( resetFlag, ETrue ); //complete with error |
5481 CompleteCacheSimL( resetFlag, ETrue ); //complete with error |
5435 } |
5482 } |
5436 } |
5483 } |
5437 //more files in the queue? |
5484 //more files in the queue? |
5438 result = ( iSimCacheQueue )? ETrue : EFalse; |
5485 result = ( iSimCacheQueue )? ETrue : EFalse; |
5439 |
5486 |
5440 TFLOGSTRING2( "TSY: CMmPhoneTsy::CacheNextL: (Success/Fail = 1/0) %d",(TInt)result ); |
5487 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_CACHENEXTL_11, "TSY: CMmPhoneTsy::CacheNextL: (Success/Fail = 1/0) %d",(TInt)result ); |
5441 return result; |
5488 return result; |
5442 } |
5489 } |
5443 |
5490 |
5444 |
5491 |
5445 // --------------------------------------------------------------------------- |
5492 // --------------------------------------------------------------------------- |
5451 // |
5498 // |
5452 void CMmPhoneTsy::CompleteCacheSimL( |
5499 void CMmPhoneTsy::CompleteCacheSimL( |
5453 TUint8 aFileType, |
5500 TUint8 aFileType, |
5454 TBool aReadError) |
5501 TBool aReadError) |
5455 { |
5502 { |
5456 TFLOGSTRING2( "TSY: CMmPhoneTsy::CompleteCacheSimL, FileType: 0x%x", aFileType ); |
5503 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESIML_1, "TSY: CMmPhoneTsy::CompleteCacheSimL, FileType: 0x%x", aFileType ); |
5457 |
5504 |
5458 TBool filesInCacheQueue(EFalse); //By default: "no more files in cache" |
5505 TBool filesInCacheQueue(EFalse); //By default: "no more files in cache" |
5459 |
5506 |
5460 // Remove file from caching queue |
5507 // Remove file from caching queue |
5461 iSimCacheQueue &= ~aFileType; |
5508 iSimCacheQueue &= ~aFileType; |
5487 // Complete the refresh |
5534 // Complete the refresh |
5488 NotifySimRefreshCompletionL( aReadError ); |
5535 NotifySimRefreshCompletionL( aReadError ); |
5489 } |
5536 } |
5490 else |
5537 else |
5491 { |
5538 { |
5492 TFLOGSTRING( "TSY: CMmPhoneTsy::CompleteCacheSimL, caching still in progress." ); |
5539 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETECACHESIML_2, "TSY: CMmPhoneTsy::CompleteCacheSimL, caching still in progress." ); |
5493 } |
5540 } |
5494 } |
5541 } |
5495 |
5542 |
5496 // --------------------------------------------------------------------------- |
5543 // --------------------------------------------------------------------------- |
5497 // CMmPhoneTsy::NotifySimRefreshCompletionL |
5544 // CMmPhoneTsy::NotifySimRefreshCompletionL |
5500 // --------------------------------------------------------------------------- |
5547 // --------------------------------------------------------------------------- |
5501 // |
5548 // |
5502 void CMmPhoneTsy::NotifySimRefreshCompletionL( |
5549 void CMmPhoneTsy::NotifySimRefreshCompletionL( |
5503 TBool aReadError ) |
5550 TBool aReadError ) |
5504 { |
5551 { |
5505 TFLOGSTRING2( "TSY: CMmPhoneTsy::NotifySimRefreshCompletionL error = %d",aReadError ); |
5552 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYSIMREFRESHCOMPLETIONL_1, "TSY: CMmPhoneTsy::NotifySimRefreshCompletionL error = %d",aReadError ); |
5506 |
5553 |
5507 // Refresh is finished, update flag |
5554 // Refresh is finished, update flag |
5508 iRefreshOngoing = EFalse; |
5555 iRefreshOngoing = EFalse; |
5509 |
5556 |
5510 // Make sure that the list gets empty |
5557 // Make sure that the list gets empty |
5526 // --------------------------------------------------------------------------- |
5573 // --------------------------------------------------------------------------- |
5527 // |
5574 // |
5528 TInt CMmPhoneTsy::ImsAuthenticationL( |
5575 TInt CMmPhoneTsy::ImsAuthenticationL( |
5529 TDes8* aAuthenticationData ) |
5576 TDes8* aAuthenticationData ) |
5530 { |
5577 { |
5531 TFLOGSTRING("TSY: CMmPhoneTsy::ImsAuthenticationL"); |
5578 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_IMSAUTHENTICATIONL_1, "TSY: CMmPhoneTsy::ImsAuthenticationL"); |
5532 |
5579 |
5533 TInt ret = KErrServerBusy; |
5580 TInt ret = KErrServerBusy; |
5534 |
5581 |
5535 // Check if request handle already exists |
5582 // Check if request handle already exists |
5536 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5583 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5579 // |
5626 // |
5580 void CMmPhoneTsy::CompleteImsAuthentication( |
5627 void CMmPhoneTsy::CompleteImsAuthentication( |
5581 CMmDataPackage* aDataPackage, |
5628 CMmDataPackage* aDataPackage, |
5582 TInt aResult ) |
5629 TInt aResult ) |
5583 { |
5630 { |
5584 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteImsAuthentication"); |
5631 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEIMSAUTHENTICATION_1, "TSY: CMmPhoneTsy::CompleteImsAuthentication"); |
5585 |
5632 |
5586 // reset req handle. Returns the deleted req handle |
5633 // reset req handle. Returns the deleted req handle |
5587 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5634 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5588 EMultimodePhoneIMSAuthenticate ); |
5635 EMultimodePhoneIMSAuthenticate ); |
5589 if ( KErrNone == aResult ) |
5636 if ( KErrNone == aResult ) |
5646 // (other items were commented in a header). |
5693 // (other items were commented in a header). |
5647 // --------------------------------------------------------------------------- |
5694 // --------------------------------------------------------------------------- |
5648 // |
5695 // |
5649 TInt CMmPhoneTsy::ImsAuthenticationCancel() |
5696 TInt CMmPhoneTsy::ImsAuthenticationCancel() |
5650 { |
5697 { |
5651 TFLOGSTRING("TSY: CMmPhoneTsy::ImsAuthenticationCancel"); |
5698 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_IMSAUTHENTICATIONCANCEL_1, "TSY: CMmPhoneTsy::ImsAuthenticationCancel"); |
5652 // reset the reqhandle |
5699 // reset the reqhandle |
5653 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5700 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5654 EMultimodePhoneIMSAuthenticate ); |
5701 EMultimodePhoneIMSAuthenticate ); |
5655 |
5702 |
5656 // reset pointer to client data |
5703 // reset pointer to client data |
5672 // --------------------------------------------------------------------------- |
5719 // --------------------------------------------------------------------------- |
5673 // |
5720 // |
5674 TInt CMmPhoneTsy::GetMailboxNumbersL( |
5721 TInt CMmPhoneTsy::GetMailboxNumbersL( |
5675 TDes8* aMailBox ) |
5722 TDes8* aMailBox ) |
5676 { |
5723 { |
5677 TFLOGSTRING("TSY: CMmPhoneTsy::GetMailboxNumbersL"); |
5724 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETMAILBOXNUMBERSL_1, "TSY: CMmPhoneTsy::GetMailboxNumbersL"); |
5678 TInt ret = KErrServerBusy; |
5725 TInt ret = KErrServerBusy; |
5679 |
5726 |
5680 // Check if request handle already exists |
5727 // Check if request handle already exists |
5681 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5728 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
5682 EMultimodePhoneGetMailboxNumbers ); |
5729 EMultimodePhoneGetMailboxNumbers ); |
5709 if ( 0 == pbStore->PhoneBookName()->CompareF( KETelIccVoiceMailBox ) ) |
5756 if ( 0 == pbStore->PhoneBookName()->CompareF( KETelIccVoiceMailBox ) ) |
5710 { |
5757 { |
5711 found = ETrue; |
5758 found = ETrue; |
5712 if( !pbStore->IsPBInitDone() ) |
5759 if( !pbStore->IsPBInitDone() ) |
5713 { |
5760 { |
5714 TFLOGSTRING("TSY: CMmPhoneTsy::GetMailboxNumbersL VoiceMailBox initilizing was not complete... Waiting for completion"); |
5761 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETMAILBOXNUMBERSL_2, "TSY: CMmPhoneTsy::GetMailboxNumbersL VoiceMailBox initilizing was not complete... Waiting for completion"); |
5715 iReqHandleType = EMultimodePhoneGetMailboxNumbers; |
5762 iReqHandleType = EMultimodePhoneGetMailboxNumbers; |
5716 return KErrNone; |
5763 return KErrNone; |
5717 } |
5764 } |
5718 } |
5765 } |
5719 } |
5766 } |
5720 if(!found) |
5767 if(!found) |
5721 { |
5768 { |
5722 TFLOGSTRING("TSY: CMmPhoneTsy::GetMailboxNumbersL VoiceMailBox should be created..."); |
5769 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETMAILBOXNUMBERSL_3, "TSY: CMmPhoneTsy::GetMailboxNumbersL VoiceMailBox should be created..."); |
5723 iMmPhoneBookStoreTsy = |
5770 iMmPhoneBookStoreTsy = |
5724 CMmPhoneBookStoreTsy::NewL( this, KETelIccVoiceMailBox ); |
5771 CMmPhoneBookStoreTsy::NewL( this, KETelIccVoiceMailBox ); |
5725 |
5772 |
5726 TInt addPBSucceeded = iPBList->AddObject( iMmPhoneBookStoreTsy ); |
5773 TInt addPBSucceeded = iPBList->AddObject( iMmPhoneBookStoreTsy ); |
5727 if( !iMmPhoneBookStoreTsy->IsPBInitDone() ) |
5774 if( !iMmPhoneBookStoreTsy->IsPBInitDone() ) |
5757 // |
5804 // |
5758 void CMmPhoneTsy::CompleteGetMailboxNumbers( |
5805 void CMmPhoneTsy::CompleteGetMailboxNumbers( |
5759 CMmDataPackage* aDataPackage, |
5806 CMmDataPackage* aDataPackage, |
5760 TInt aResult ) |
5807 TInt aResult ) |
5761 { |
5808 { |
5762 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteGetMailboxNumbers"); |
5809 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETMAILBOXNUMBERS_1, "TSY: CMmPhoneTsy::CompleteGetMailboxNumbers"); |
5763 |
5810 |
5764 // reset req handle. Returns the deleted req handle |
5811 // reset req handle. Returns the deleted req handle |
5765 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5812 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5766 EMultimodePhoneGetMailboxNumbers ); |
5813 EMultimodePhoneGetMailboxNumbers ); |
5767 |
5814 |
5794 // (other items were commented in a header). |
5841 // (other items were commented in a header). |
5795 // --------------------------------------------------------------------------- |
5842 // --------------------------------------------------------------------------- |
5796 // |
5843 // |
5797 TInt CMmPhoneTsy::GetMailboxNumbersCancel() |
5844 TInt CMmPhoneTsy::GetMailboxNumbersCancel() |
5798 { |
5845 { |
5799 TFLOGSTRING("TSY: CMmPhoneTsy::GetMailboxNumbersCancel"); |
5846 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETMAILBOXNUMBERSCANCEL_1, "TSY: CMmPhoneTsy::GetMailboxNumbersCancel"); |
5800 // reset the reqhandle |
5847 // reset the reqhandle |
5801 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5848 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
5802 EMultimodePhoneGetMailboxNumbers ); |
5849 EMultimodePhoneGetMailboxNumbers ); |
5803 |
5850 |
5804 // reset pointer to client data |
5851 // reset pointer to client data |
5929 //Find the correct tsy object and call its' Complete function |
5976 //Find the correct tsy object and call its' Complete function |
5930 |
5977 |
5931 //Check if the object is the Phone object |
5978 //Check if the object is the Phone object |
5932 if( this == aObject ) |
5979 if( this == aObject ) |
5933 { |
5980 { |
5934 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - this == aObject"); |
5981 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_1, "TSY: CMmPhoneTsy::TimerExpired - this == aObject"); |
5935 //call phone object to complete this request |
5982 //call phone object to complete this request |
5936 this->Complete( aReqHandleType, error ); |
5983 this->Complete( aReqHandleType, error ); |
5937 } |
5984 } |
5938 |
5985 |
5939 //Line does not require timer |
5986 //Line does not require timer |
5940 TInt i( 0 ); |
5987 TInt i( 0 ); |
5941 |
5988 |
5942 //Check if the object is a Call object |
5989 //Check if the object is a Call object |
5943 for ( i = 0; i < iCallList->GetNumberOfObjects(); i++ ) |
5990 for ( i = 0; i < iCallList->GetNumberOfObjects(); i++ ) |
5944 { |
5991 { |
5945 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iCallList->GetNumberOfObjects()"); |
5992 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_2, "TSY: CMmPhoneTsy::TimerExpired - iCallList->GetNumberOfObjects()"); |
5946 //Get call object |
5993 //Get call object |
5947 CMmCallTsy* call = iCallList->GetMmCallByIndex( i ); |
5994 CMmCallTsy* call = iCallList->GetMmCallByIndex( i ); |
5948 //check if the current call is the object that we are |
5995 //check if the current call is the object that we are |
5949 //trying to find |
5996 //trying to find |
5950 if( call == aObject ) |
5997 if( call == aObject ) |
5951 { |
5998 { |
5952 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - call == aObject"); |
5999 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_3, "TSY: CMmPhoneTsy::TimerExpired - call == aObject"); |
5953 //call the complete method |
6000 //call the complete method |
5954 call->Complete( aReqHandleType, error ); |
6001 call->Complete( aReqHandleType, error ); |
5955 //object found, break |
6002 //object found, break |
5956 break; |
6003 break; |
5957 } |
6004 } |
5958 } |
6005 } |
5959 |
6006 |
5960 // Check if the object is a ConferenceCall object |
6007 // Check if the object is a ConferenceCall object |
5961 if ( iMmConferenceCall == aObject ) |
6008 if ( iMmConferenceCall == aObject ) |
5962 { |
6009 { |
5963 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmConferenceCall"); |
6010 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_4, "TSY: CMmPhoneTsy::TimerExpired - iMmConferenceCall"); |
5964 iMmConferenceCall->Complete( aReqHandleType, error ); |
6011 iMmConferenceCall->Complete( aReqHandleType, error ); |
5965 } |
6012 } |
5966 //OTHER MODULES |
6013 //OTHER MODULES |
5967 |
6014 |
5968 //Check if the object is a PBStore object |
6015 //Check if the object is a PBStore object |
5969 for ( i = 0; i < iPBList->GetNumberOfObjects(); i++ ) |
6016 for ( i = 0; i < iPBList->GetNumberOfObjects(); i++ ) |
5970 { |
6017 { |
5971 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iPBList->GetNumberOfObjects()"); |
6018 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_5, "TSY: CMmPhoneTsy::TimerExpired - iPBList->GetNumberOfObjects()"); |
5972 //Get PBStore object |
6019 //Get PBStore object |
5973 CMmPhoneBookStoreTsy* pbStore = iPBList->GetMmPBByIndex( i ); |
6020 CMmPhoneBookStoreTsy* pbStore = iPBList->GetMmPBByIndex( i ); |
5974 //check if the current PB is the object that we are |
6021 //check if the current PB is the object that we are |
5975 //trying to find |
6022 //trying to find |
5976 if ( pbStore == aObject ) |
6023 if ( pbStore == aObject ) |
5977 { |
6024 { |
5978 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - aPBStore == aObject"); |
6025 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_6, "TSY: CMmPhoneTsy::TimerExpired - aPBStore == aObject"); |
5979 //call the complete method |
6026 //call the complete method |
5980 pbStore->Complete( aReqHandleType, error ); |
6027 pbStore->Complete( aReqHandleType, error ); |
5981 //object found, break |
6028 //object found, break |
5982 break; |
6029 break; |
5983 } |
6030 } |
5984 } |
6031 } |
5985 |
6032 |
5986 // Check if the object is the SMS object |
6033 // Check if the object is the SMS object |
5987 if ( iMmSmsTsy == aObject ) |
6034 if ( iMmSmsTsy == aObject ) |
5988 { |
6035 { |
5989 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmSmsTsy == aObject"); |
6036 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_7, "TSY: CMmPhoneTsy::TimerExpired - iMmSmsTsy == aObject"); |
5990 //call the complete method |
6037 //call the complete method |
5991 iMmSmsTsy->Complete( aReqHandleType, error ); |
6038 iMmSmsTsy->Complete( aReqHandleType, error ); |
5992 } |
6039 } |
5993 // Check if the object is the Broadcast object |
6040 // Check if the object is the Broadcast object |
5994 else if ( iMmBroadcastTsy == aObject ) |
6041 else if ( iMmBroadcastTsy == aObject ) |
5995 { |
6042 { |
5996 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmBroadcastTsy == aObject"); |
6043 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_8, "TSY: CMmPhoneTsy::TimerExpired - iMmBroadcastTsy == aObject"); |
5997 //call the complete method |
6044 //call the complete method |
5998 iMmBroadcastTsy->Complete( aReqHandleType, error ); |
6045 iMmBroadcastTsy->Complete( aReqHandleType, error ); |
5999 } |
6046 } |
6000 // Check if the object is the USSD object |
6047 // Check if the object is the USSD object |
6001 else if ( iMmUssdTsy == aObject ) |
6048 else if ( iMmUssdTsy == aObject ) |
6002 { |
6049 { |
6003 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmUssdTsy == aObject"); |
6050 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_9, "TSY: CMmPhoneTsy::TimerExpired - iMmUssdTsy == aObject"); |
6004 //call the complete method |
6051 //call the complete method |
6005 iMmUssdTsy->Complete( aReqHandleType, error ); |
6052 iMmUssdTsy->Complete( aReqHandleType, error ); |
6006 } |
6053 } |
6007 // Check if the object is the ONstore object |
6054 // Check if the object is the ONstore object |
6008 else if ( iMmONStoreTsy == aObject ) |
6055 else if ( iMmONStoreTsy == aObject ) |
6009 { |
6056 { |
6010 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmONStoreTsy == aObject"); |
6057 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_10, "TSY: CMmPhoneTsy::TimerExpired - iMmONStoreTsy == aObject"); |
6011 //call the complete method |
6058 //call the complete method |
6012 iMmONStoreTsy->Complete( aReqHandleType, error ); |
6059 iMmONStoreTsy->Complete( aReqHandleType, error ); |
6013 } |
6060 } |
6014 // Check if the object is the ENstore object |
6061 // Check if the object is the ENstore object |
6015 else if ( iMmENStoreTsy == aObject ) |
6062 else if ( iMmENStoreTsy == aObject ) |
6016 { |
6063 { |
6017 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmENStoreTsy == aObject"); |
6064 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_11, "TSY: CMmPhoneTsy::TimerExpired - iMmENStoreTsy == aObject"); |
6018 //call the complete method |
6065 //call the complete method |
6019 iMmENStoreTsy->Complete( aReqHandleType, error ); |
6066 iMmENStoreTsy->Complete( aReqHandleType, error ); |
6020 } |
6067 } |
6021 else if ( iMmCustomTsy == aObject ) |
6068 else if ( iMmCustomTsy == aObject ) |
6022 { |
6069 { |
6023 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - iMmCustomTsy == aObject"); |
6070 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_12, "TSY: CMmPhoneTsy::TimerExpired - iMmCustomTsy == aObject"); |
6024 iMmCustomTsy->Complete( aReqHandleType, error , aIPC ); |
6071 iMmCustomTsy->Complete( aReqHandleType, error , aIPC ); |
6025 } |
6072 } |
6026 |
6073 |
6027 //THESE DO NOT USE REQ HANDLE STORE -> CANNOT USE TIMER |
6074 //THESE DO NOT USE REQ HANDLE STORE -> CANNOT USE TIMER |
6028 // SAT |
6075 // SAT |
6030 // If Packet Data is included, complete method from Packet Service TSY |
6077 // If Packet Data is included, complete method from Packet Service TSY |
6031 // must be called to handler completes if aObject is part of Packet |
6078 // must be called to handler completes if aObject is part of Packet |
6032 // Data session |
6079 // Data session |
6033 else if ( NULL != iMmPacketServiceTsy ) |
6080 else if ( NULL != iMmPacketServiceTsy ) |
6034 { |
6081 { |
6035 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - NULL != iMmPacketServiceTsy"); |
6082 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_13, "TSY: CMmPhoneTsy::TimerExpired - NULL != iMmPacketServiceTsy"); |
6036 //call the complete method |
6083 //call the complete method |
6037 iMmPacketServiceTsy->Complete( aObject, aReqHandleType, error ); |
6084 iMmPacketServiceTsy->Complete( aObject, aReqHandleType, error ); |
6038 } |
6085 } |
6039 else |
6086 else |
6040 { |
6087 { |
6041 TFLOGSTRING("TSY: CMmPhoneTsy::TimerExpired - else"); |
6088 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_TIMEREXPIRED_14, "TSY: CMmPhoneTsy::TimerExpired - else"); |
6042 } |
6089 } |
6043 } |
6090 } |
6044 |
6091 |
6045 // --------------------------------------------------------------------------- |
6092 // --------------------------------------------------------------------------- |
6046 // CMmPhoneTsy::SetTypeOfResponse |
6093 // CMmPhoneTsy::SetTypeOfResponse |
6071 timeOut = KMmPhoneStopDTMFToneTimeOut; |
6118 timeOut = KMmPhoneStopDTMFToneTimeOut; |
6072 break; |
6119 break; |
6073 // All Calls Termination |
6120 // All Calls Termination |
6074 case EMultimodePhoneTerminateAllCalls: |
6121 case EMultimodePhoneTerminateAllCalls: |
6075 timeOut = KMmPhoneTerminateAllCallsTimeOut; |
6122 timeOut = KMmPhoneTerminateAllCallsTimeOut; |
6123 break; |
|
6124 // Active Calls Termination |
|
6125 case EMultimodePhoneTerminateActiveCalls: |
|
6126 timeOut = KMmPhoneTerminateActiveCallsTimeOut; |
|
6076 break; |
6127 break; |
6077 //NET |
6128 //NET |
6078 case EMultimodePhoneSelectNetwork: |
6129 case EMultimodePhoneSelectNetwork: |
6079 timeOut = KMmPhoneSelectNetworkTimeOut; |
6130 timeOut = KMmPhoneSelectNetworkTimeOut; |
6080 break; |
6131 break; |
6270 RMobilePhone::TMobilePhoneLockSetting setting; |
6321 RMobilePhone::TMobilePhoneLockSetting setting; |
6271 RMobilePhone::TMobilePhoneCspFileV1 emptyCspFile; |
6322 RMobilePhone::TMobilePhoneCspFileV1 emptyCspFile; |
6272 RMobilePhone::TMobilePhoneServiceTableV1 emptyServiceTable; |
6323 RMobilePhone::TMobilePhoneServiceTableV1 emptyServiceTable; |
6273 RMobilePhoneStore::TMobilePhoneStoreInfoV1 emptyPhoneStoreInfo; |
6324 RMobilePhoneStore::TMobilePhoneStoreInfoV1 emptyPhoneStoreInfo; |
6274 TInt trapError = KErrNone; |
6325 TInt trapError = KErrNone; |
6275 TFLOGSTRING2("TSY: CMmPhoneTsy::Complete - ReqHandleType: %d", aReqHandleType); |
6326 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETE_1, "TSY: CMmPhoneTsy::Complete - ReqHandleType: %d", aReqHandleType); |
6276 switch( aReqHandleType ) |
6327 switch( aReqHandleType ) |
6277 { |
6328 { |
6278 case EMultimodePhoneTerminateAllCalls: |
6329 case EMultimodePhoneTerminateAllCalls: |
6279 CompleteTerminateAllCallsReq(aError); |
6330 CompleteTerminateAllCallsReq(aError); |
6280 break; |
6331 break; |
6332 case EMultimodePhoneTerminateActiveCalls: |
|
6333 CompleteTerminateActiveCallsReq(aError); |
|
6334 break; |
|
6281 //DTMF |
6335 //DTMF |
6282 case EMultimodePhoneSendDTMFTones: |
6336 case EMultimodePhoneSendDTMFTones: |
6283 case EMultimodePhoneStartDTMFTone: |
6337 case EMultimodePhoneStartDTMFTone: |
6284 case EMultimodePhoneStopDTMFTone: |
6338 case EMultimodePhoneStopDTMFTone: |
6285 // forward to DTMF Tsy |
6339 // forward to DTMF Tsy |
6400 break; |
6454 break; |
6401 case EMultimodePhoneGetFdnStatus: |
6455 case EMultimodePhoneGetFdnStatus: |
6402 CompleteGetFdnStatus( NULL, aError ); |
6456 CompleteGetFdnStatus( NULL, aError ); |
6403 break; |
6457 break; |
6404 default: |
6458 default: |
6405 TFLOGSTRING("TSY: CMmPhoneTsy::Complete default handle type" ); |
6459 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETE_2, "TSY: CMmPhoneTsy::Complete default handle type" ); |
6406 if ( iTsyReqHandleStore->GetTsyReqHandle( |
6460 if ( iTsyReqHandleStore->GetTsyReqHandle( |
6407 aReqHandleType )) |
6461 aReqHandleType )) |
6408 { |
6462 { |
6409 ReqCompleted( iTsyReqHandleStore->ResetTsyReqHandle( |
6463 ReqCompleted( iTsyReqHandleStore->ResetTsyReqHandle( |
6410 aReqHandleType ), aError ); |
6464 aReqHandleType ), aError ); |
6485 // |
6539 // |
6486 void CMmPhoneTsy::ReqCompleted( |
6540 void CMmPhoneTsy::ReqCompleted( |
6487 const TTsyReqHandle aTsyReqHandle, |
6541 const TTsyReqHandle aTsyReqHandle, |
6488 const TInt aError ) |
6542 const TInt aError ) |
6489 { |
6543 { |
6490 TFLOGSTRING3("TSY: CMmPhoneTsy::Request Completed - Handle:%d Error:%d", aTsyReqHandle, aError); |
6544 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_REQCOMPLETED_1, "TSY: CMmPhoneTsy::Request Completed - Handle:%d Error:%d", aTsyReqHandle, aError); |
6491 |
6545 |
6492 CTelObject::ReqCompleted( aTsyReqHandle, aError ); |
6546 CTelObject::ReqCompleted( aTsyReqHandle, aError ); |
6493 |
6547 |
6494 } |
6548 } |
6495 #endif |
6549 #endif |
6712 // |
6766 // |
6713 CMmSecurityTsy* CMmPhoneTsy::GetSecurityTsy() |
6767 CMmSecurityTsy* CMmPhoneTsy::GetSecurityTsy() |
6714 { |
6768 { |
6715 return iMmSecurityTsy; |
6769 return iMmSecurityTsy; |
6716 } |
6770 } |
6771 |
|
6717 |
6772 |
6718 // --------------------------------------------------------------------------- |
6773 // --------------------------------------------------------------------------- |
6719 // CMmPhoneTsy::IsRequestPossibleInOffLine |
6774 // CMmPhoneTsy::IsRequestPossibleInOffLine |
6720 // Checks wether a ETel request can be performed or not while offline mode is |
6775 // Checks wether a ETel request can be performed or not while offline mode is |
6721 // enabled' |
6776 // enabled' |
6842 |
6897 |
6843 default: |
6898 default: |
6844 break; |
6899 break; |
6845 } |
6900 } |
6846 |
6901 |
6847 TFLOGSTRING3("TSY: CMmPhoneTsy::IsRequestPossibleInOffline - IPC:%d, ret:%d", aIpc, isRequestPossible); |
6902 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ISREQUESTPOSSIBLEINOFFLINE_1, "TSY: CMmPhoneTsy::IsRequestPossibleInOffline - IPC:%d, ret:%d", aIpc, isRequestPossible); |
6848 return isRequestPossible; |
6903 return isRequestPossible; |
6849 } |
6904 } |
6850 |
6905 |
6851 // ---------------------------------------------------------------------------- |
6906 // ---------------------------------------------------------------------------- |
6852 // CMmPhoneTsy::CompleteGetCallForwardingNumber |
6907 // CMmPhoneTsy::CompleteGetCallForwardingNumber |
6859 { |
6914 { |
6860 //Copy data from package |
6915 //Copy data from package |
6861 iCallForwardingNumber.Zero(); |
6916 iCallForwardingNumber.Zero(); |
6862 aDataPackage->UnPackData( iCallForwardingNumber ); |
6917 aDataPackage->UnPackData( iCallForwardingNumber ); |
6863 |
6918 |
6864 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetCallForwardingNumber number = %S ", &iCallForwardingNumber); |
6919 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETCALLFORWARDINGNUMBER_1, "TSY: CMmPhoneTsy::CompleteGetCallForwardingNumber number = %S ", iCallForwardingNumber); |
6865 |
6920 |
6866 } |
6921 } |
6867 |
6922 |
6868 // --------------------------------------------------------------------------- |
6923 // --------------------------------------------------------------------------- |
6869 // CMmPhoneTsy::EnumerateAPNEntriesL |
6924 // CMmPhoneTsy::EnumerateAPNEntriesL |
6873 // |
6928 // |
6874 TInt CMmPhoneTsy::EnumerateAPNEntriesL( |
6929 TInt CMmPhoneTsy::EnumerateAPNEntriesL( |
6875 const TTsyReqHandle aTsyReqHandle, |
6930 const TTsyReqHandle aTsyReqHandle, |
6876 TUint32* aIndex ) |
6931 TUint32* aIndex ) |
6877 { |
6932 { |
6878 TFLOGSTRING("TSY: CMmPhoneTsy::EnumerateAPNEntries"); |
6933 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ENUMERATEAPNENTRIESL_1, "TSY: CMmPhoneTsy::EnumerateAPNEntries"); |
6879 |
6934 |
6880 // Check if request handle already exists |
6935 // Check if request handle already exists |
6881 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6936 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
6882 EMultimodePhoneEnumerateAPNEntries ); |
6937 EMultimodePhoneEnumerateAPNEntries ); |
6883 |
6938 |
6925 // (other items were commented in a header). |
6980 // (other items were commented in a header). |
6926 // --------------------------------------------------------------------------- |
6981 // --------------------------------------------------------------------------- |
6927 // |
6982 // |
6928 TInt CMmPhoneTsy::EnumerateAPNEntriesCancel() |
6983 TInt CMmPhoneTsy::EnumerateAPNEntriesCancel() |
6929 { |
6984 { |
6930 TFLOGSTRING("CMmPhoneTsy::EnumerateAPNEntriesCancel"); |
6985 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ENUMERATEAPNENTRIESCANCEL_1, "CMmPhoneTsy::EnumerateAPNEntriesCancel"); |
6931 iRetAPNEntries = NULL; |
6986 iRetAPNEntries = NULL; |
6932 |
6987 |
6933 //reset the req handle |
6988 //reset the req handle |
6934 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6989 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6935 EMultimodePhoneEnumerateAPNEntries ); |
6990 EMultimodePhoneEnumerateAPNEntries ); |
6951 // |
7006 // |
6952 void CMmPhoneTsy::CompleteEnumerateAPNEntries( |
7007 void CMmPhoneTsy::CompleteEnumerateAPNEntries( |
6953 CMmDataPackage* aDataPackage, |
7008 CMmDataPackage* aDataPackage, |
6954 TInt aErrorCode ) |
7009 TInt aErrorCode ) |
6955 { |
7010 { |
6956 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteEnumerateAPNEntries Error: %d", aErrorCode); |
7011 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEENUMERATEAPNENTRIES_1, "TSY: CMmPhoneTsy::CompleteEnumerateAPNEntries Error: %d", aErrorCode); |
6957 |
7012 |
6958 //reset req handle. Returns the deleted req handle |
7013 //reset req handle. Returns the deleted req handle |
6959 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7014 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
6960 EMultimodePhoneEnumerateAPNEntries ); |
7015 EMultimodePhoneEnumerateAPNEntries ); |
6961 |
7016 |
6987 TInt CMmPhoneTsy::GetAPNnameL( |
7042 TInt CMmPhoneTsy::GetAPNnameL( |
6988 const TTsyReqHandle aTsyReqHandle, |
7043 const TTsyReqHandle aTsyReqHandle, |
6989 TUint32* aIndex, |
7044 TUint32* aIndex, |
6990 TDes8* aAPN ) |
7045 TDes8* aAPN ) |
6991 { |
7046 { |
6992 TFLOGSTRING("TSY: CMmPhoneTsy::GetAPNnameL"); |
7047 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETAPNNAMEL_1, "TSY: CMmPhoneTsy::GetAPNnameL"); |
6993 |
7048 |
6994 TInt ret = KErrServerBusy; |
7049 TInt ret = KErrServerBusy; |
6995 |
7050 |
6996 // Check if request handle already exists |
7051 // Check if request handle already exists |
6997 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7052 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7041 // (other items were commented in a header). |
7096 // (other items were commented in a header). |
7042 // --------------------------------------------------------------------------- |
7097 // --------------------------------------------------------------------------- |
7043 // |
7098 // |
7044 TInt CMmPhoneTsy::GetAPNnameCancel() |
7099 TInt CMmPhoneTsy::GetAPNnameCancel() |
7045 { |
7100 { |
7046 TFLOGSTRING("CMmPhoneTsy::GetAPNnameCancel"); |
7101 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETAPNNAMECANCEL_1, "CMmPhoneTsy::GetAPNnameCancel"); |
7047 iRetAPNname = NULL; |
7102 iRetAPNname = NULL; |
7048 |
7103 |
7049 //reset the req handle |
7104 //reset the req handle |
7050 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7105 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7051 EMultimodePhoneGetAPNname ); |
7106 EMultimodePhoneGetAPNname ); |
7067 // |
7122 // |
7068 void CMmPhoneTsy::CompleteGetAPNname( |
7123 void CMmPhoneTsy::CompleteGetAPNname( |
7069 CMmDataPackage* aDataPackage, |
7124 CMmDataPackage* aDataPackage, |
7070 TInt aErrorCode ) |
7125 TInt aErrorCode ) |
7071 { |
7126 { |
7072 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetAPNname Error: %d", aErrorCode); |
7127 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETAPNNAME_1, "TSY: CMmPhoneTsy::CompleteGetAPNname Error: %d", aErrorCode); |
7073 |
7128 |
7074 //reset req handle. Returns the deleted req handle |
7129 //reset req handle. Returns the deleted req handle |
7075 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7130 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7076 EMultimodePhoneGetAPNname ); |
7131 EMultimodePhoneGetAPNname ); |
7077 |
7132 |
7109 // --------------------------------------------------------------------------- |
7164 // --------------------------------------------------------------------------- |
7110 // |
7165 // |
7111 void CMmPhoneTsy::SetAlsState( |
7166 void CMmPhoneTsy::SetAlsState( |
7112 TBool aState ) |
7167 TBool aState ) |
7113 { |
7168 { |
7114 TFLOGSTRING2("TSY: CMmPhoneTsy::SetAlsState Error: %d", aState); |
7169 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETALSSTATE_1, "TSY: CMmPhoneTsy::SetAlsState Error: %d", aState); |
7115 |
7170 |
7116 // Check where set was called |
7171 // Check where set was called |
7117 if( iCspFileAlsSet ) |
7172 if( iCspFileAlsSet ) |
7118 { |
7173 { |
7119 // Set Csp file's ALS state |
7174 // Set Csp file's ALS state |
7146 // --------------------------------------------------------------------------- |
7201 // --------------------------------------------------------------------------- |
7147 // |
7202 // |
7148 RMobilePhone::TMobilePhoneALSLine CMmPhoneTsy::MapMEALSLine( |
7203 RMobilePhone::TMobilePhoneALSLine CMmPhoneTsy::MapMEALSLine( |
7149 TInt aAlsLineInfo ) |
7204 TInt aAlsLineInfo ) |
7150 { |
7205 { |
7151 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSLine"); |
7206 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_1, "TSY: CMmPhoneTsy::MapMEALSLine"); |
7152 |
7207 |
7153 RMobilePhone::TMobilePhoneALSLine lineInfo; |
7208 RMobilePhone::TMobilePhoneALSLine lineInfo; |
7154 |
7209 |
7155 switch ( aAlsLineInfo ) |
7210 switch ( aAlsLineInfo ) |
7156 { |
7211 { |
7157 case 0://TInt from CentRep |
7212 case 0://TInt from CentRep |
7158 lineInfo = RMobilePhone::EAlternateLinePrimary; |
7213 lineInfo = RMobilePhone::EAlternateLinePrimary; |
7159 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSInfo Line line = EAlternateLinePrimary"); |
7214 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_2, "TSY: CMmPhoneTsy::MapMEALSInfo Line line = EAlternateLinePrimary"); |
7160 break; |
7215 break; |
7161 case 1://TInt from CentRep |
7216 case 1://TInt from CentRep |
7162 lineInfo = RMobilePhone::EAlternateLineAuxiliary; |
7217 lineInfo = RMobilePhone::EAlternateLineAuxiliary; |
7163 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineAuxiliary"); |
7218 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_3, "TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineAuxiliary"); |
7164 break; |
7219 break; |
7165 case 2://TInt from CentRep |
7220 case 2://TInt from CentRep |
7166 lineInfo = RMobilePhone::EAlternateLineUnknown; |
7221 lineInfo = RMobilePhone::EAlternateLineUnknown; |
7167 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineUnknown"); |
7222 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_4, "TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineUnknown"); |
7168 break; |
7223 break; |
7169 case 3://TInt from CentRep |
7224 case 3://TInt from CentRep |
7170 lineInfo = RMobilePhone::EAlternateLineNotAvailable; |
7225 lineInfo = RMobilePhone::EAlternateLineNotAvailable; |
7171 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineNotAvailable"); |
7226 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_5, "TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineNotAvailable"); |
7172 break; |
7227 break; |
7173 default: |
7228 default: |
7174 lineInfo = RMobilePhone::EAlternateLineUnknown; |
7229 lineInfo = RMobilePhone::EAlternateLineUnknown; |
7175 TFLOGSTRING("TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineUnknown"); |
7230 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_MAPMEALSLINE_6, "TSY: CMmPhoneTsy::MapMEALSLine line = EAlternateLineUnknown"); |
7176 break; |
7231 break; |
7177 } |
7232 } |
7178 |
7233 |
7179 return lineInfo; |
7234 return lineInfo; |
7180 } |
7235 } |
7186 // --------------------------------------------------------------------------- |
7241 // --------------------------------------------------------------------------- |
7187 // |
7242 // |
7188 void CMmPhoneTsy::ResetMEAlsInfo() |
7243 void CMmPhoneTsy::ResetMEAlsInfo() |
7189 { |
7244 { |
7190 |
7245 |
7191 TFLOGSTRING("TSY: CMmPhoneTsy::ResetMEAlsInfo"); |
7246 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_RESETMEALSINFO_1, "TSY: CMmPhoneTsy::ResetMEAlsInfo"); |
7192 |
7247 |
7193 iCentRep->Reset(); |
7248 iCentRep->Reset(); |
7194 |
7249 |
7195 if( iSimCacheQueue && ( KCacheALSline & iSimCacheQueue ) ) |
7250 if( iSimCacheQueue && ( KCacheALSline & iSimCacheQueue ) ) |
7196 { |
7251 { |
7197 TFLOGSTRING("TSY: CMmPhoneTsy::ResetMEAlsInfo -> CompleteCacheSimL"); |
7252 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_RESETMEALSINFO_2, "TSY: CMmPhoneTsy::ResetMEAlsInfo -> CompleteCacheSimL"); |
7198 // function can leave, so there for it must be trapped, the error |
7253 // function can leave, so there for it must be trapped, the error |
7199 // value is ingnored, because the functionality doesn't depend on it |
7254 // value is ingnored, because the functionality doesn't depend on it |
7200 TRAP_IGNORE( CompleteCacheSimL( KCacheALSline, EFalse ) ); |
7255 TRAP_IGNORE( CompleteCacheSimL( KCacheALSline, EFalse ) ); |
7201 } |
7256 } |
7202 |
7257 |
7208 // (other items were commented in a header). |
7263 // (other items were commented in a header). |
7209 // --------------------------------------------------------------------------- |
7264 // --------------------------------------------------------------------------- |
7210 // |
7265 // |
7211 CRepository* CMmPhoneTsy::GetCfisCenRep() |
7266 CRepository* CMmPhoneTsy::GetCfisCenRep() |
7212 { |
7267 { |
7213 TFLOGSTRING("TSY: CMmPhoneTsy::GetCfisCenRep"); |
7268 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCFISCENREP_1, "TSY: CMmPhoneTsy::GetCfisCenRep"); |
7214 |
7269 |
7215 if( iCFISCentRep ) |
7270 if( iCFISCentRep ) |
7216 { |
7271 { |
7217 return iCFISCentRep; |
7272 return iCFISCentRep; |
7218 } |
7273 } |
7226 // (other items were commented in a header). |
7281 // (other items were commented in a header). |
7227 // --------------------------------------------------------------------------- |
7282 // --------------------------------------------------------------------------- |
7228 // |
7283 // |
7229 CRepository* CMmPhoneTsy::GetMwisCenRep() |
7284 CRepository* CMmPhoneTsy::GetMwisCenRep() |
7230 { |
7285 { |
7231 TFLOGSTRING("TSY: CMmPhoneTsy::GetMwisCenRep"); |
7286 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETMWISCENREP_1, "TSY: CMmPhoneTsy::GetMwisCenRep"); |
7232 |
7287 |
7233 if( iMWISCentRep ) |
7288 if( iMWISCentRep ) |
7234 { |
7289 { |
7235 return iMWISCentRep; |
7290 return iMWISCentRep; |
7236 } |
7291 } |
7244 // (other items were commented in a header). |
7299 // (other items were commented in a header). |
7245 // --------------------------------------------------------------------------- |
7300 // --------------------------------------------------------------------------- |
7246 // |
7301 // |
7247 CRepository* CMmPhoneTsy::GetCfisPRCenRep() |
7302 CRepository* CMmPhoneTsy::GetCfisPRCenRep() |
7248 { |
7303 { |
7249 TFLOGSTRING("TSY: CMmPhoneTsy::GetCfisPRCenRep"); |
7304 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETCFISPRCENREP_1, "TSY: CMmPhoneTsy::GetCfisPRCenRep"); |
7250 |
7305 |
7251 if( iCFISPrivateCentRep ) |
7306 if( iCFISPrivateCentRep ) |
7252 { |
7307 { |
7253 return iCFISPrivateCentRep; |
7308 return iCFISPrivateCentRep; |
7254 } |
7309 } |
7262 // (other items were commented in a header). |
7317 // (other items were commented in a header). |
7263 // --------------------------------------------------------------------------- |
7318 // --------------------------------------------------------------------------- |
7264 // |
7319 // |
7265 void CMmPhoneTsy::GetSubscriberIdForTSYL() |
7320 void CMmPhoneTsy::GetSubscriberIdForTSYL() |
7266 { |
7321 { |
7267 TFLOGSTRING("TSY: CMmPhoneTsy::GetSubscriberIdForTSYL"); |
7322 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSUBSCRIBERIDFORTSYL_1, "TSY: CMmPhoneTsy::GetSubscriberIdForTSYL"); |
7268 |
7323 |
7269 // Check if some client has already requested this |
7324 // Check if some client has already requested this |
7270 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7325 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7271 EMultimodePhoneGetSubscriberId ); |
7326 EMultimodePhoneGetSubscriberId ); |
7272 |
7327 |
7276 iTSYSubscriberIdReq = ETrue; |
7331 iTSYSubscriberIdReq = ETrue; |
7277 iMessageManager->HandleRequestL( EMobilePhoneGetSubscriberId ); |
7332 iMessageManager->HandleRequestL( EMobilePhoneGetSubscriberId ); |
7278 } |
7333 } |
7279 else |
7334 else |
7280 { |
7335 { |
7281 TFLOGSTRING("TSY: CMmPhoneTsy::GetSubscriberIdForTSYL - Already requested"); |
7336 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETSUBSCRIBERIDFORTSYL_2, "TSY: CMmPhoneTsy::GetSubscriberIdForTSYL - Already requested"); |
7282 } |
7337 } |
7283 } |
7338 } |
7284 |
7339 |
7285 // --------------------------------------------------------------------------- |
7340 // --------------------------------------------------------------------------- |
7286 // CMmPhoneTsy::AppendAPNNameL |
7341 // CMmPhoneTsy::AppendAPNNameL |
7289 // --------------------------------------------------------------------------- |
7344 // --------------------------------------------------------------------------- |
7290 // |
7345 // |
7291 TInt CMmPhoneTsy::AppendAPNNameL( |
7346 TInt CMmPhoneTsy::AppendAPNNameL( |
7292 RMobilePhone::TAPNEntryV3* aAPNEntry ) |
7347 RMobilePhone::TAPNEntryV3* aAPNEntry ) |
7293 { |
7348 { |
7294 TFLOGSTRING("TSY: CMmPhoneTsy::AppendAPNNameL"); |
7349 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_APPENDAPNNAMEL_1, "TSY: CMmPhoneTsy::AppendAPNNameL"); |
7295 |
7350 |
7296 TInt ret ( KErrServerBusy ); |
7351 TInt ret ( KErrServerBusy ); |
7297 |
7352 |
7298 //check if handle is not in use already |
7353 //check if handle is not in use already |
7299 TTsyReqHandle phoneAppendAPNNameHandle = |
7354 TTsyReqHandle phoneAppendAPNNameHandle = |
7322 // (other items were commented in a header). |
7377 // (other items were commented in a header). |
7323 // --------------------------------------------------------------------------- |
7378 // --------------------------------------------------------------------------- |
7324 // |
7379 // |
7325 TInt CMmPhoneTsy::AppendAPNNameCancel() |
7380 TInt CMmPhoneTsy::AppendAPNNameCancel() |
7326 { |
7381 { |
7327 TFLOGSTRING("TSY: CMmPhoneTsy::AppendAPNNameCancel"); |
7382 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_APPENDAPNNAMECANCEL_1, "TSY: CMmPhoneTsy::AppendAPNNameCancel"); |
7328 // reset the reqhandle |
7383 // reset the reqhandle |
7329 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7384 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7330 EMultimodePhoneAppendAPNName ); |
7385 EMultimodePhoneAppendAPNName ); |
7331 |
7386 |
7332 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7387 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7345 // --------------------------------------------------------------------------- |
7400 // --------------------------------------------------------------------------- |
7346 // |
7401 // |
7347 void CMmPhoneTsy::CompleteAppendAPNName( |
7402 void CMmPhoneTsy::CompleteAppendAPNName( |
7348 TInt aErrorCode ) |
7403 TInt aErrorCode ) |
7349 { |
7404 { |
7350 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteAppendAPNName. Error: %d", aErrorCode); |
7405 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEAPPENDAPNNAME_1, "TSY: CMmPhoneTsy::CompleteAppendAPNName. Error: %d", aErrorCode); |
7351 |
7406 |
7352 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7407 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7353 EMultimodePhoneAppendAPNName ); |
7408 EMultimodePhoneAppendAPNName ); |
7354 |
7409 |
7355 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7410 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7366 // |
7421 // |
7367 TInt CMmPhoneTsy::DeleteAPNNameL( |
7422 TInt CMmPhoneTsy::DeleteAPNNameL( |
7368 const TTsyReqHandle aTsyReqHandle, |
7423 const TTsyReqHandle aTsyReqHandle, |
7369 TUint32* aIndex ) |
7424 TUint32* aIndex ) |
7370 { |
7425 { |
7371 TFLOGSTRING2("TSY: CMmPhoneTsy::DeleteAPNNameL, index = %d", aIndex); |
7426 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DELETEAPNNAMEL_1, "TSY: CMmPhoneTsy::DeleteAPNNameL, index = %d", aIndex); |
7372 |
7427 |
7373 // get the handle |
7428 // get the handle |
7374 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7429 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7375 EMultimodePhoneDeleteAPNName ); |
7430 EMultimodePhoneDeleteAPNName ); |
7376 |
7431 |
7406 // (other items were commented in a header). |
7461 // (other items were commented in a header). |
7407 // --------------------------------------------------------------------------- |
7462 // --------------------------------------------------------------------------- |
7408 // |
7463 // |
7409 TInt CMmPhoneTsy::DeleteAPNNameCancel() |
7464 TInt CMmPhoneTsy::DeleteAPNNameCancel() |
7410 { |
7465 { |
7411 TFLOGSTRING("TSY: CMmPhoneTsy::DeleteAPNNameCancel"); |
7466 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_DELETEAPNNAMECANCEL_1, "TSY: CMmPhoneTsy::DeleteAPNNameCancel"); |
7412 // reset the reqhandle |
7467 // reset the reqhandle |
7413 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7468 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7414 EMultimodePhoneDeleteAPNName ); |
7469 EMultimodePhoneDeleteAPNName ); |
7415 |
7470 |
7416 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7471 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7428 // --------------------------------------------------------------------------- |
7483 // --------------------------------------------------------------------------- |
7429 // |
7484 // |
7430 void CMmPhoneTsy::CompleteDeleteAPNName( |
7485 void CMmPhoneTsy::CompleteDeleteAPNName( |
7431 TInt aErrorCode ) |
7486 TInt aErrorCode ) |
7432 { |
7487 { |
7433 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteDeleteAPNName. Error: %d", aErrorCode); |
7488 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEDELETEAPNNAME_1, "TSY: CMmPhoneTsy::CompleteDeleteAPNName. Error: %d", aErrorCode); |
7434 |
7489 |
7435 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7490 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7436 EMultimodePhoneDeleteAPNName ); |
7491 EMultimodePhoneDeleteAPNName ); |
7437 |
7492 |
7438 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7493 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7448 // (other items were commented in a header). |
7503 // (other items were commented in a header). |
7449 // --------------------------------------------------------------------------- |
7504 // --------------------------------------------------------------------------- |
7450 // |
7505 // |
7451 TInt CMmPhoneTsy::NotifyAPNListChanged() |
7506 TInt CMmPhoneTsy::NotifyAPNListChanged() |
7452 { |
7507 { |
7453 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyAPNListChanged"); |
7508 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYAPNLISTCHANGED_1, "TSY: CMmPhoneTsy::NotifyAPNListChanged"); |
7454 |
7509 |
7455 iReqHandleType = EMultimodePhoneNotifyAPNListChange; |
7510 iReqHandleType = EMultimodePhoneNotifyAPNListChange; |
7456 |
7511 |
7457 return KErrNone; |
7512 return KErrNone; |
7458 } |
7513 } |
7464 // (other items were commented in a header). |
7519 // (other items were commented in a header). |
7465 // --------------------------------------------------------------------------- |
7520 // --------------------------------------------------------------------------- |
7466 // |
7521 // |
7467 TInt CMmPhoneTsy::NotifyAPNListChangedCancel() |
7522 TInt CMmPhoneTsy::NotifyAPNListChangedCancel() |
7468 { |
7523 { |
7469 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyAPNListChangedCancel"); |
7524 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYAPNLISTCHANGEDCANCEL_1, "TSY: CMmPhoneTsy::NotifyAPNListChangedCancel"); |
7470 |
7525 |
7471 TTsyReqHandle reqHandle = iTsyReqHandleStore-> |
7526 TTsyReqHandle reqHandle = iTsyReqHandleStore-> |
7472 ResetTsyReqHandle( EMultimodePhoneNotifyAPNListChange ); |
7527 ResetTsyReqHandle( EMultimodePhoneNotifyAPNListChange ); |
7473 |
7528 |
7474 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7529 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7486 // --------------------------------------------------------------------------- |
7541 // --------------------------------------------------------------------------- |
7487 // |
7542 // |
7488 void CMmPhoneTsy::CompleteNotifyAPNListChanged( |
7543 void CMmPhoneTsy::CompleteNotifyAPNListChanged( |
7489 TInt aErrorCode ) |
7544 TInt aErrorCode ) |
7490 { |
7545 { |
7491 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyAPNListChanged"); |
7546 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYAPNLISTCHANGED_1, "TSY: CMmPhoneTsy::CompleteNotifyAPNListChanged"); |
7492 |
7547 |
7493 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7548 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7494 EMultimodePhoneNotifyAPNListChange ); |
7549 EMultimodePhoneNotifyAPNListChange ); |
7495 |
7550 |
7496 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7551 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7508 // |
7563 // |
7509 TInt CMmPhoneTsy::SetAPNControlListServiceStatusL( |
7564 TInt CMmPhoneTsy::SetAPNControlListServiceStatusL( |
7510 const TTsyReqHandle aTsyReqHandle, |
7565 const TTsyReqHandle aTsyReqHandle, |
7511 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7566 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7512 { |
7567 { |
7513 TFLOGSTRING("TSY: CMmPhoneTsy::SetAPNControlListServiceStatusL."); |
7568 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETAPNCONTROLLISTSERVICESTATUSL_1, "TSY: CMmPhoneTsy::SetAPNControlListServiceStatusL."); |
7514 |
7569 |
7515 iSetAclStatus = aAPNControlListServiceStatus; |
7570 iSetAclStatus = aAPNControlListServiceStatus; |
7516 |
7571 |
7517 // get the handle |
7572 // get the handle |
7518 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7573 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7550 // (other items were commented in a header). |
7605 // (other items were commented in a header). |
7551 // --------------------------------------------------------------------------- |
7606 // --------------------------------------------------------------------------- |
7552 // |
7607 // |
7553 TInt CMmPhoneTsy::SetAPNControlListServiceStatusCancel() |
7608 TInt CMmPhoneTsy::SetAPNControlListServiceStatusCancel() |
7554 { |
7609 { |
7555 TFLOGSTRING("TSY: CMmPhoneTsy::SetAPNControlListServiceStatusCancel"); |
7610 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETAPNCONTROLLISTSERVICESTATUSCANCEL_1, "TSY: CMmPhoneTsy::SetAPNControlListServiceStatusCancel"); |
7556 |
7611 |
7557 // erase pointer to client data |
7612 // erase pointer to client data |
7558 iSetAclStatus = NULL; |
7613 iSetAclStatus = NULL; |
7559 |
7614 |
7560 // reset the reqhandle |
7615 // reset the reqhandle |
7576 // --------------------------------------------------------------------------- |
7631 // --------------------------------------------------------------------------- |
7577 // |
7632 // |
7578 void CMmPhoneTsy::CompleteSetAPNControlListServiceStatus( |
7633 void CMmPhoneTsy::CompleteSetAPNControlListServiceStatus( |
7579 TInt aErrorCode ) |
7634 TInt aErrorCode ) |
7580 { |
7635 { |
7581 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteSetAPNControlListServiceStatus. Error: %d", aErrorCode); |
7636 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETESETAPNCONTROLLISTSERVICESTATUS_1, "TSY: CMmPhoneTsy::CompleteSetAPNControlListServiceStatus. Error: %d", aErrorCode); |
7582 |
7637 |
7583 //reset req handle. Returns the deleted req handle |
7638 //reset req handle. Returns the deleted req handle |
7584 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7639 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7585 EMultimodePhoneSetAPNControlListServiceStatus ); |
7640 EMultimodePhoneSetAPNControlListServiceStatus ); |
7586 |
7641 |
7599 // |
7654 // |
7600 TInt CMmPhoneTsy::GetAPNControlListServiceStatusL( |
7655 TInt CMmPhoneTsy::GetAPNControlListServiceStatusL( |
7601 const TTsyReqHandle aTsyReqHandle, |
7656 const TTsyReqHandle aTsyReqHandle, |
7602 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7657 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7603 { |
7658 { |
7604 TFLOGSTRING("TSY: CMmPhoneTsy::GetAPNControlListServiceStatusL"); |
7659 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETAPNCONTROLLISTSERVICESTATUSL_1, "TSY: CMmPhoneTsy::GetAPNControlListServiceStatusL"); |
7605 |
7660 |
7606 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7661 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7607 EMultimodePhoneGetAPNControlListServiceStatus ); |
7662 EMultimodePhoneGetAPNControlListServiceStatus ); |
7608 |
7663 |
7609 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7664 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7640 // (other items were commented in a header). |
7695 // (other items were commented in a header). |
7641 // --------------------------------------------------------------------------- |
7696 // --------------------------------------------------------------------------- |
7642 // |
7697 // |
7643 TInt CMmPhoneTsy::GetAPNControlListServiceStatusCancel() |
7698 TInt CMmPhoneTsy::GetAPNControlListServiceStatusCancel() |
7644 { |
7699 { |
7645 TFLOGSTRING("TSY: CMmPhoneTsy::GetAPNControlListServiceStatusCancel"); |
7700 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_GETAPNCONTROLLISTSERVICESTATUSCANCEL_1, "TSY: CMmPhoneTsy::GetAPNControlListServiceStatusCancel"); |
7646 // reset the reqhandle |
7701 // reset the reqhandle |
7647 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7702 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7648 EMultimodePhoneGetAPNControlListServiceStatus ); |
7703 EMultimodePhoneGetAPNControlListServiceStatus ); |
7649 |
7704 |
7650 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7705 if ( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7663 // |
7718 // |
7664 void CMmPhoneTsy::CompleteGetAPNControlListServiceStatus( |
7719 void CMmPhoneTsy::CompleteGetAPNControlListServiceStatus( |
7665 CMmDataPackage* aDataPackage, |
7720 CMmDataPackage* aDataPackage, |
7666 TInt aErrorCode ) |
7721 TInt aErrorCode ) |
7667 { |
7722 { |
7668 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteGetAPNControlListServiceStatus. Error %d", aErrorCode); |
7723 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETEGETAPNCONTROLLISTSERVICESTATUS_1, "TSY: CMmPhoneTsy::CompleteGetAPNControlListServiceStatus. Error %d", aErrorCode); |
7669 |
7724 |
7670 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7725 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7671 EMultimodePhoneGetAPNControlListServiceStatus ); |
7726 EMultimodePhoneGetAPNControlListServiceStatus ); |
7672 |
7727 |
7673 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7728 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7702 // --------------------------------------------------------------------------- |
7757 // --------------------------------------------------------------------------- |
7703 // |
7758 // |
7704 TInt CMmPhoneTsy::NotifyAPNControlListServiceStatusChange( |
7759 TInt CMmPhoneTsy::NotifyAPNControlListServiceStatusChange( |
7705 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7760 RMobilePhone::TAPNControlListServiceStatus* aAPNControlListServiceStatus ) |
7706 { |
7761 { |
7707 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyAPNControlListServiceStatusChange"); |
7762 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYAPNCONTROLLISTSERVICESTATUSCHANGE_1, "TSY: CMmPhoneTsy::NotifyAPNControlListServiceStatusChange"); |
7708 |
7763 |
7709 iRetNotifyAclStatus = aAPNControlListServiceStatus; |
7764 iRetNotifyAclStatus = aAPNControlListServiceStatus; |
7710 iReqHandleType = EMultimodePhoneNotifyAPNControlListServiceStatusChange; |
7765 iReqHandleType = EMultimodePhoneNotifyAPNControlListServiceStatusChange; |
7711 |
7766 |
7712 return KErrNone; |
7767 return KErrNone; |
7719 // (other items were commented in a header). |
7774 // (other items were commented in a header). |
7720 // --------------------------------------------------------------------------- |
7775 // --------------------------------------------------------------------------- |
7721 // |
7776 // |
7722 TInt CMmPhoneTsy::NotifyAPNControlListServiceStatusChangeCancel() |
7777 TInt CMmPhoneTsy::NotifyAPNControlListServiceStatusChangeCancel() |
7723 { |
7778 { |
7724 TFLOGSTRING("TSY: CMmPhoneTsy::NotifyAPNControlListServiceStatusChangeCancel"); |
7779 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYAPNCONTROLLISTSERVICESTATUSCHANGECANCEL_1, "TSY: CMmPhoneTsy::NotifyAPNControlListServiceStatusChangeCancel"); |
7725 |
7780 |
7726 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7781 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7727 EMultimodePhoneNotifyAPNControlListServiceStatusChange ); |
7782 EMultimodePhoneNotifyAPNControlListServiceStatusChange ); |
7728 |
7783 |
7729 |
7784 |
7744 // |
7799 // |
7745 void CMmPhoneTsy::CompleteNotifyAPNControlListServiceStatusChange( |
7800 void CMmPhoneTsy::CompleteNotifyAPNControlListServiceStatusChange( |
7746 CMmDataPackage* aDataPackage, |
7801 CMmDataPackage* aDataPackage, |
7747 TInt aErrorCode ) |
7802 TInt aErrorCode ) |
7748 { |
7803 { |
7749 TFLOGSTRING("TSY: CMmPhoneTsy::CompleteNotifyAPNControlListServiceStatusChange"); |
7804 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYAPNCONTROLLISTSERVICESTATUSCHANGE_1, "TSY: CMmPhoneTsy::CompleteNotifyAPNControlListServiceStatusChange"); |
7750 |
7805 |
7751 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7806 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
7752 EMultimodePhoneNotifyAPNControlListServiceStatusChange ); |
7807 EMultimodePhoneNotifyAPNControlListServiceStatusChange ); |
7753 |
7808 |
7754 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7809 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7830 { |
7885 { |
7831 TUint32 duration = KLifeTimeUpdateInterval; |
7886 TUint32 duration = KLifeTimeUpdateInterval; |
7832 CMmDataPackage dataPackage; |
7887 CMmDataPackage dataPackage; |
7833 dataPackage.PackData( &duration ); |
7888 dataPackage.PackData( &duration ); |
7834 |
7889 |
7835 TFLOGSTRING2("TSY: CMmPhoneTsy::CompleteNotifyCallDurationChange - \ |
7890 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_COMPLETENOTIFYCALLDURATIONCHANGE_1, "TSY: CMmPhoneTsy::CompleteNotifyCallDurationChange - \duration: %d", duration); |
7836 duration: %d", duration); |
|
7837 |
7891 |
7838 #ifdef USING_CTSY_DISPATCHER |
7892 #ifdef USING_CTSY_DISPATCHER |
7839 TRAP_IGNORE(iMessageManager->HandleRequestL( |
7893 TRAP_IGNORE(iMessageManager->HandleRequestL( |
7840 ECtsyUpdateLifeTimeReq, &dataPackage ); |
7894 ECtsyUpdateLifeTimeReq, &dataPackage ); |
7841 ); |
7895 ); |
7849 // --------------------------------------------------------------------------- |
7903 // --------------------------------------------------------------------------- |
7850 // CMmPhoneTsy::NotifyTelephonyAudioControlError |
7904 // CMmPhoneTsy::NotifyTelephonyAudioControlError |
7851 // Receives error notifications from Telephony audio control |
7905 // Receives error notifications from Telephony audio control |
7852 // --------------------------------------------------------------------------- |
7906 // --------------------------------------------------------------------------- |
7853 // |
7907 // |
7854 #if TF_LOGGING_METHOD == 1 |
7908 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG) |
7855 void CMmPhoneTsy::NotifyTelephonyAudioControlError( const TName& aCallName, |
7909 void CMmPhoneTsy::NotifyTelephonyAudioControlError( const TName& aCallName, |
7856 const TInt& aError ) |
7910 const TInt& aError ) |
7857 { |
7911 { |
7858 TFLOGSTRING3("TSY: CMmPhoneTsy::NotifyAudioControlError. Call name:%S, Error code %d", &aCallName, aError ); |
7912 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_NOTIFYTELEPHONYAUDIOCONTROLERROR_1, "TSY: CMmPhoneTsy::NotifyAudioControlError. Call name:%S, Error code %d", aCallName, aError ); |
7859 #else |
7913 #else |
7860 void CMmPhoneTsy::NotifyTelephonyAudioControlError( const TName& /*aCallName*/, |
7914 void CMmPhoneTsy::NotifyTelephonyAudioControlError( const TName& /*aCallName*/, |
7861 const TInt& /*aError*/ ) |
7915 const TInt& /*aError*/ ) |
7862 { |
7916 { |
7863 #endif // TF_LOGGING_METHOD |
7917 #endif // |
7864 |
7918 |
7865 TInt callCount( iCallList->GetNumberOfObjects() ); |
7919 TInt callCount( iCallList->GetNumberOfObjects() ); |
7866 // find all the audio calls and hang up them all |
7920 // find all the audio calls and hang up them all |
7867 for ( TInt i = callCount; 0 < i; i-- ) |
7921 for ( TInt i = callCount; 0 < i; i-- ) |
7868 { |
7922 { |
7885 // (other items were commented in a header). |
7939 // (other items were commented in a header). |
7886 // --------------------------------------------------------------------------- |
7940 // --------------------------------------------------------------------------- |
7887 // |
7941 // |
7888 void CMmPhoneTsy::SetPBInitActiveStatus( TBool aIsInitializationActive ) |
7942 void CMmPhoneTsy::SetPBInitActiveStatus( TBool aIsInitializationActive ) |
7889 { |
7943 { |
7890 TFLOGSTRING2("TSY: CMmPhoneTsy::SetPBInitActiveStatus: - prev.status %i", iIsInitializationActive); |
7944 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETPBINITACTIVESTATUS_1, "TSY: CMmPhoneTsy::SetPBInitActiveStatus: - prev.status %u", (TUint)iIsInitializationActive); |
7891 TFLOGSTRING2("TSY: CMmPhoneTsy::SetPBInitActiveStatus: %i", aIsInitializationActive); |
7945 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SETPBINITACTIVESTATUS_2, "TSY: CMmPhoneTsy::SetPBInitActiveStatus: %u", (TUint)aIsInitializationActive); |
7892 |
7946 |
7893 iIsInitializationActive = aIsInitializationActive; |
7947 iIsInitializationActive = aIsInitializationActive; |
7894 } |
7948 } |
7895 |
7949 |
7896 // --------------------------------------------------------------------------- |
7950 // --------------------------------------------------------------------------- |
7899 // (other items were commented in a header). |
7953 // (other items were commented in a header). |
7900 // --------------------------------------------------------------------------- |
7954 // --------------------------------------------------------------------------- |
7901 // |
7955 // |
7902 TBool CMmPhoneTsy::IsPBInitActive() |
7956 TBool CMmPhoneTsy::IsPBInitActive() |
7903 { |
7957 { |
7904 TFLOGSTRING2("TSY: CMmPhoneTsy::IsPBInitActive: %i", iIsInitializationActive); |
7958 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ISPBINITACTIVE_1, "TSY: CMmPhoneTsy::IsPBInitActive: %x", (TUint)iIsInitializationActive); |
7905 |
7959 |
7906 return iIsInitializationActive; |
7960 return iIsInitializationActive; |
7907 } |
7961 } |
7908 |
7962 |
7909 // --------------------------------------------------------------------------- |
7963 // --------------------------------------------------------------------------- |
7932 // (other items were commented in a header). |
7986 // (other items were commented in a header). |
7933 // --------------------------------------------------------------------------- |
7987 // --------------------------------------------------------------------------- |
7934 // |
7988 // |
7935 TBool CMmPhoneTsy::IsSIMReady() |
7989 TBool CMmPhoneTsy::IsSIMReady() |
7936 { |
7990 { |
7937 TFLOGSTRING2("TSY: CMmPhoneTsy::IsSIMReady: %i", iBootState.iSIMReady); |
7991 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ISSIMREADY_1, "TSY: CMmPhoneTsy::IsSIMReady: %u", (TUint)iBootState.iSIMReady); |
7938 return iBootState.iSIMReady; |
7992 return iBootState.iSIMReady; |
7939 } |
7993 } |
7940 |
7994 |
7941 // --------------------------------------------------------------------------- |
7995 // --------------------------------------------------------------------------- |
7942 // CMmPhoneTsy::SaveFdnInfoDetails |
7996 // CMmPhoneTsy::SaveFdnInfoDetails |
7944 // (other items were commented in a header). |
7998 // (other items were commented in a header). |
7945 // --------------------------------------------------------------------------- |
7999 // --------------------------------------------------------------------------- |
7946 // |
8000 // |
7947 void CMmPhoneTsy::SaveFdnInfoDetails( TInt aResult, CMmDataPackage* aDataPackage ) |
8001 void CMmPhoneTsy::SaveFdnInfoDetails( TInt aResult, CMmDataPackage* aDataPackage ) |
7948 { |
8002 { |
7949 TFLOGSTRING2("TSY: CMmPhoneTsy::SaveFdnInfoDetails aResult: %d", aResult ); |
8003 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SAVEFDNINFODETAILS_1, "TSY: CMmPhoneTsy::SaveFdnInfoDetails aResult: %d", aResult ); |
7950 |
8004 |
7951 // Store FDN info only in successfull case |
8005 // Store FDN info only in successfull case |
7952 if ( KErrNone == aResult ) |
8006 if ( KErrNone == aResult ) |
7953 { |
8007 { |
7954 TPBFdnInfo pbFdnInfo; |
8008 TPBFdnInfo pbFdnInfo; |
7955 aDataPackage->UnPackData( pbFdnInfo ); |
8009 aDataPackage->UnPackData( pbFdnInfo ); |
7956 iPhoneBookState->iFDNNumOfEntries = pbFdnInfo.iFDNNumOfEntries; |
8010 iPhoneBookState->iFDNNumOfEntries = pbFdnInfo.iFDNNumOfEntries; |
7957 iPhoneBookState->iFDNNumberLengthMax = pbFdnInfo.iFDNNumberLengthMax; |
8011 iPhoneBookState->iFDNNumberLengthMax = pbFdnInfo.iFDNNumberLengthMax; |
7958 iPhoneBookState->iFDNTextLengthMax = pbFdnInfo.iFDNTextLengthMax; |
8012 iPhoneBookState->iFDNTextLengthMax = pbFdnInfo.iFDNTextLengthMax; |
7959 |
8013 |
7960 TFLOGSTRING2("TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNNumOfEntries: %i",iPhoneBookState->iFDNNumOfEntries ); |
8014 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SAVEFDNINFODETAILS_2, "TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNNumOfEntries: %d",iPhoneBookState->iFDNNumOfEntries ); |
7961 TFLOGSTRING2("TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNNumberLengthMax: %i",iPhoneBookState->iFDNNumberLengthMax ); |
8015 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SAVEFDNINFODETAILS_3, "TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNNumberLengthMax: %d",iPhoneBookState->iFDNNumberLengthMax ); |
7962 TFLOGSTRING2("TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNTextLengthMax: %i",iPhoneBookState->iFDNTextLengthMax ); |
8016 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_SAVEFDNINFODETAILS_4, "TSY: CMmPhoneTsy::SaveFdnInfoDetails - iFDNTextLengthMax: %d",iPhoneBookState->iFDNTextLengthMax ); |
7963 } |
8017 } |
7964 } |
8018 } |
7965 |
8019 |
7966 // --------------------------------------------------------------------------- |
8020 // --------------------------------------------------------------------------- |
7967 // CMmPhoneTsy::IsModemStatusReady |
8021 // CMmPhoneTsy::IsModemStatusReady |
7969 // (other items were commented in a header). |
8023 // (other items were commented in a header). |
7970 // --------------------------------------------------------------------------- |
8024 // --------------------------------------------------------------------------- |
7971 // |
8025 // |
7972 TBool CMmPhoneTsy::IsModemStatusReady() const |
8026 TBool CMmPhoneTsy::IsModemStatusReady() const |
7973 { |
8027 { |
7974 TFLOGSTRING2("TSY: CMmPhoneTsy::IsModemStatusReady: %i", iIsModemReady ); |
8028 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_ISMODEMSTATUSREADY_1, "TSY: CMmPhoneTsy::IsModemStatusReady: %u", (TUint)iIsModemReady ); |
7975 |
8029 |
7976 return iIsModemReady; |
8030 return iIsModemReady; |
7977 } |
8031 } |
7978 |
8032 |
7979 // --------------------------------------------------------------------------- |
8033 // --------------------------------------------------------------------------- |
7982 // (other items were commented in a header). |
8036 // (other items were commented in a header). |
7983 // --------------------------------------------------------------------------- |
8037 // --------------------------------------------------------------------------- |
7984 // |
8038 // |
7985 void CMmPhoneTsy::PhoneBookStoreInitCompleteL(TInt aError) |
8039 void CMmPhoneTsy::PhoneBookStoreInitCompleteL(TInt aError) |
7986 { |
8040 { |
7987 TFLOGSTRING("TSY: CMmPhoneTsy::PhoneBookStoreInitCompleteL "); |
8041 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPHONETSY_PHONEBOOKSTOREINITCOMPLETEL_1, "TSY: CMmPhoneTsy::PhoneBookStoreInitCompleteL "); |
7988 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
8042 TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle( |
7989 EMultimodePhoneGetMailboxNumbers ); |
8043 EMultimodePhoneGetMailboxNumbers ); |
7990 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
8044 if( EMultimodePhoneReqHandleUnknown != reqHandle ) |
7991 { |
8045 { |
7992 if( KErrNone != aError ) |
8046 if( KErrNone != aError ) |