62 TRAP( leaveCode, iViagDynamicCache = new ( ELeave ) |
62 TRAP( leaveCode, iViagDynamicCache = new ( ELeave ) |
63 CArrayFixFlat<RMmCustomAPI::TViagCacheRecordContent>( |
63 CArrayFixFlat<RMmCustomAPI::TViagCacheRecordContent>( |
64 ( KPhEngMaxViagHomeZones * KPhEngMaxCacheId ) ); ); |
64 ( KPhEngMaxViagHomeZones * KPhEngMaxCacheId ) ); ); |
65 if ( leaveCode ) |
65 if ( leaveCode ) |
66 { |
66 { |
67 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_CONSTRUCTL_2, "TSY: CMmSIMTsy::ConstructL: Could not construct o2 HomeZone dynamic cache, error=%d", leaveCode); |
67 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_CONSTRUCTL_2, "TSY: CMmSIMTsy::ConstructL: Could not construct o2 HomeZone dynamic cache, error=%{TSymbianErrorCodes}", leaveCode); |
68 iViagDynamicCache = NULL; |
68 iViagDynamicCache = NULL; |
69 } |
69 } |
70 else |
70 else |
71 { |
71 { |
72 // initialise |
72 // initialise |
153 TInt CMmSIMTsy::DoExtFuncL( |
153 TInt CMmSIMTsy::DoExtFuncL( |
154 const TTsyReqHandle aTsyReqHandle, |
154 const TTsyReqHandle aTsyReqHandle, |
155 const TInt aIpc, |
155 const TInt aIpc, |
156 const TDataPackage& aPackage ) |
156 const TDataPackage& aPackage ) |
157 { |
157 { |
158 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_DOEXTFUNCL_1, "TSY: CMmSIMTsy::DoExtFuncL - IPC:%d Handle:%d", aIpc, aTsyReqHandle); |
158 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_DOEXTFUNCL_1, "TSY: CMmSIMTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", (TUint)aIpc, aTsyReqHandle, (TUint)this); |
159 TInt ret( KErrGeneral ); |
159 TInt ret( KErrGeneral ); |
160 |
160 |
161 // Ensure the ReqHandleType is unset. |
161 // Ensure the ReqHandleType is unset. |
162 // This will detect cases where this method indirectly calls itself |
162 // This will detect cases where this method indirectly calls itself |
163 // (e.g. servicing a client call that causes a self-reposting notification to complete and thus repost). |
163 // (e.g. servicing a client call that causes a self-reposting notification to complete and thus repost). |
218 // We've finished with this value now. Clear it so it doesn't leak |
218 // We've finished with this value now. Clear it so it doesn't leak |
219 // up to any other instances of this method down the call stack |
219 // up to any other instances of this method down the call stack |
220 iReqHandleType = ESIMTsyReqHandleUnknown; |
220 iReqHandleType = ESIMTsyReqHandleUnknown; |
221 } |
221 } |
222 |
222 |
|
223 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_DOEXTFUNCL_2, "<-- TSY: CMmSIMTsy::DoExtFuncL, error = %{TSymbianErrorCodes}", ret); |
223 return ret; |
224 return ret; |
224 } |
225 } |
225 |
226 |
226 // --------------------------------------------------------------------------- |
227 // --------------------------------------------------------------------------- |
227 // CMmSIMTsy::ReqModeL |
228 // CMmSIMTsy::ReqModeL |
457 void CMmSIMTsy::CompleteReadViagHomeZoneParamsResp( |
458 void CMmSIMTsy::CompleteReadViagHomeZoneParamsResp( |
458 RMmCustomAPI::TViagParams* aParams, |
459 RMmCustomAPI::TViagParams* aParams, |
459 RMmCustomAPI::TViagElements* aElems, |
460 RMmCustomAPI::TViagElements* aElems, |
460 TInt aError ) |
461 TInt aError ) |
461 { |
462 { |
462 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_1, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - aError: %d", aError ); |
463 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_1, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - aError: %{TSymbianErrorCodes}", aError ); |
463 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
464 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
464 ESIMRequestTypeReadParams ); |
465 ESIMRequestTypeReadParams ); |
465 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
466 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
466 { |
467 { |
467 if ( aError == KErrNone && iViagParams && iViagElems ) |
468 if ( aError == KErrNone && iViagParams && iViagElems ) |
472 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_4, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - iSubscribedZoneAndVersion: %d", iViagParams->iSubscribedZoneAndVersion ); |
473 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_4, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - iSubscribedZoneAndVersion: %d", iViagParams->iSubscribedZoneAndVersion ); |
473 |
474 |
474 for ( TUint8 i = 0; i < RMmCustomAPI::KViagElementCount; i++ ) |
475 for ( TUint8 i = 0; i < RMmCustomAPI::KViagElementCount; i++ ) |
475 { |
476 { |
476 iViagElems[ i ].iCoordinates.iX = aElems->At(i).iCoordinates.iX; |
477 iViagElems[ i ].iCoordinates.iX = aElems->At(i).iCoordinates.iX; |
477 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_5, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iX: %d", i, aElems->At(i).iCoordinates.iX ); |
478 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_5, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iX: %d", (TUint)i, aElems->At(i).iCoordinates.iX ); |
478 |
479 |
479 iViagElems[ i ].iCoordinates.iY = aElems->At(i).iCoordinates.iY; |
480 iViagElems[ i ].iCoordinates.iY = aElems->At(i).iCoordinates.iY; |
480 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_6, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iY: %d", i, aElems->At(i).iCoordinates.iY ); |
481 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_6, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iY: %d", (TUint)i, aElems->At(i).iCoordinates.iY ); |
481 |
482 |
482 iViagElems[ i ].iCoordinates.iR2 = aElems-> |
483 iViagElems[ i ].iCoordinates.iR2 = aElems-> |
483 At(i).iCoordinates.iR2; |
484 At(i).iCoordinates.iR2; |
484 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_7, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iR2: %d", i, aElems->At(i).iCoordinates.iR2 ); |
485 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_7, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iR2: %d", (TUint)i, aElems->At(i).iCoordinates.iR2 ); |
485 |
486 |
486 iViagElems[ i ].iCoordinates.iZoneId = aElems-> |
487 iViagElems[ i ].iCoordinates.iZoneId = aElems-> |
487 At(i).iCoordinates.iZoneId; |
488 At(i).iCoordinates.iZoneId; |
488 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_8, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iZoneId: %d", i, aElems->At(i).iCoordinates.iZoneId ); |
489 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONEPARAMSRESP_8, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneParamsResp - Element: %d, iZoneId: %d", i, aElems->At(i).iCoordinates.iZoneId ); |
489 |
490 |
658 else |
659 else |
659 { |
660 { |
660 // caching aborted |
661 // caching aborted |
661 delete iCurrentlyRetrievedCache; |
662 delete iCurrentlyRetrievedCache; |
662 iCurrentlyRetrievedCache = NULL; |
663 iCurrentlyRetrievedCache = NULL; |
663 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONECACHERESPL_5, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL:There was a problem reading cache values from SIM, error=%d", aError); |
664 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONECACHERESPL_5, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL:There was a problem reading cache values from SIM, error=%{TSymbianErrorCodes}", aError); |
664 //iViagHomeZoneCacheReady = ETrue; |
665 //iViagHomeZoneCacheReady = ETrue; |
665 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONECACHERESPL_6, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL: Caching completed unsuccessfully!"); |
666 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEREADVIAGHOMEZONECACHERESPL_6, "TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL: Caching completed unsuccessfully!"); |
666 |
667 |
667 for (TInt i = 0; i < iReadViagHomeZoneCacheRequests.Count(); i++) |
668 for (TInt i = 0; i < iReadViagHomeZoneCacheRequests.Count(); i++) |
668 { |
669 { |
872 // ---------------------------------------------------------------------------- |
873 // ---------------------------------------------------------------------------- |
873 // |
874 // |
874 void CMmSIMTsy::CompleteWriteViagHomeZoneUHZIUESettingsResp( |
875 void CMmSIMTsy::CompleteWriteViagHomeZoneUHZIUESettingsResp( |
875 TInt aError ) |
876 TInt aError ) |
876 { |
877 { |
877 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEWRITEVIAGHOMEZONEUHZIUESETTINGSRESP_1, "TSY: CMmSIMTsy::CompleteWriteViagHomeZoneUHZIUESettingsResp error = %d",aError); |
878 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEWRITEVIAGHOMEZONEUHZIUESETTINGSRESP_1, "TSY: CMmSIMTsy::CompleteWriteViagHomeZoneUHZIUESettingsResp error = %{TSymbianErrorCodes}",aError); |
878 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
879 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
879 ESIMRequestTypeWriteSettings ); |
880 ESIMRequestTypeWriteSettings ); |
880 |
881 |
881 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
882 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
882 { |
883 { |
925 TInt trapError; |
926 TInt trapError; |
926 TRAP( trapError, iCurrentlyRetrievedCache = new (ELeave) |
927 TRAP( trapError, iCurrentlyRetrievedCache = new (ELeave) |
927 RMmCustomAPI::TViagCacheRecordId(); ); |
928 RMmCustomAPI::TViagCacheRecordId(); ); |
928 if ( trapError ) |
929 if ( trapError ) |
929 { |
930 { |
930 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_STARTDYNAMICCACHINGL_3, "TSY: CMmSIMTsy::StartDynamicCachingL:Could not start caching, error=%d", trapError); |
931 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_STARTDYNAMICCACHINGL_3, "TSY: CMmSIMTsy::StartDynamicCachingL:Could not start caching, error=%{TSymbianErrorCodes}", trapError); |
931 return; |
932 return; |
932 } |
933 } |
933 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_STARTDYNAMICCACHINGL_4, "TSY: CMmSIMTsy::StartDynamicCachingL:Starting caching now."); |
934 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_STARTDYNAMICCACHINGL_4, "TSY: CMmSIMTsy::StartDynamicCachingL:Starting caching now."); |
934 iCurrentlyRetrievedCache->iCacheId = 1; // caches range from 1 to 4 |
935 iCurrentlyRetrievedCache->iCacheId = 1; // caches range from 1 to 4 |
935 iCurrentlyRetrievedCache->iRecordId = 0; // records range from 0 to 20 |
936 iCurrentlyRetrievedCache->iRecordId = 0; // records range from 0 to 20 |
1191 // --------------------------------------------------------------------------- |
1192 // --------------------------------------------------------------------------- |
1192 // |
1193 // |
1193 void CMmSIMTsy::CompleteDeleteSimCbTopic( |
1194 void CMmSIMTsy::CompleteDeleteSimCbTopic( |
1194 TInt aError ) |
1195 TInt aError ) |
1195 { |
1196 { |
1196 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEDELETESIMCBTOPIC_1, "TSY: CMmSIMTsy::CompleteDeleteSimCbTopic- aError: %d", aError); |
1197 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETEDELETESIMCBTOPIC_1, "TSY: CMmSIMTsy::CompleteDeleteSimCbTopic- aError: %{TSymbianErrorCodes}", aError); |
1197 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
1198 TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle( |
1198 ESIMRequestTypeDeleteSimCbTopic ); |
1199 ESIMRequestTypeDeleteSimCbTopic ); |
1199 |
1200 |
1200 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
1201 if ( ESIMTsyReqHandleUnknown != reqHandle ) |
1201 { |
1202 { |
1301 // --------------------------------------------------------------------------- |
1302 // --------------------------------------------------------------------------- |
1302 void CMmSIMTsy::Complete( |
1303 void CMmSIMTsy::Complete( |
1303 TInt aReqHandleType, |
1304 TInt aReqHandleType, |
1304 TInt aError ) |
1305 TInt aError ) |
1305 { |
1306 { |
1306 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETE_1, "CustomTSY: CMmSIMTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%d\n", aReqHandleType, aError ); |
1307 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSIMTSY_COMPLETE_1, "CustomTSY: CMmSIMTsy::Complete.\n\t ReqHandleType:%d \n\t Error:%{TSymbianErrorCodes}\n", aReqHandleType, aError ); |
1307 |
1308 |
1308 // All possible TSY req handle types are listed in the |
1309 // All possible TSY req handle types are listed in the |
1309 // switch case below. |
1310 // switch case below. |
1310 switch ( aReqHandleType ) |
1311 switch ( aReqHandleType ) |
1311 { |
1312 { |