equal
deleted
inserted
replaced
554 void CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL( |
554 void CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL( |
555 RMmCustomAPI::TViagCacheRecordContent* aViagRecord, |
555 RMmCustomAPI::TViagCacheRecordContent* aViagRecord, |
556 TInt aError ) |
556 TInt aError ) |
557 { |
557 { |
558 TFLOGSTRING("TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL"); |
558 TFLOGSTRING("TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL"); |
|
559 iLastViagHomeZoneCacheError = aError; |
559 if (iCurrentlyRetrievedCache == NULL) |
560 if (iCurrentlyRetrievedCache == NULL) |
560 { |
561 { |
561 // Got an unexpected update... ignore! |
562 // Got an unexpected update... ignore! |
562 return; |
563 return; |
563 } |
564 } |
641 } |
642 } |
642 } |
643 } |
643 else |
644 else |
644 { |
645 { |
645 // caching aborted |
646 // caching aborted |
646 delete iCurrentlyRetrievedCache; |
647 delete iCurrentlyRetrievedCache; |
647 iCurrentlyRetrievedCache = NULL; |
648 iCurrentlyRetrievedCache = NULL; |
648 TFLOGSTRING2("TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL:There was a problem reading cache values from SIM, error=%d", aError); |
649 TFLOGSTRING2("TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL:There was a problem reading cache values from SIM, error=%d", aError); |
|
650 //iViagHomeZoneCacheReady = ETrue; |
|
651 TFLOGSTRING("TSY: CMmSIMTsy::CompleteReadViagHomeZoneCacheRespL: Caching completed unsuccessfully!"); |
|
652 |
|
653 for (TInt i = 0; i < iReadViagHomeZoneCacheRequests.Count(); i++) |
|
654 { |
|
655 TFLOGSTRING2("TSY: CMmSIMTsy::CompleteReadDynamicViagHomeZoneCacheRespL: for i:%d", i); |
|
656 TReadViagHomeZoneCacheRequest* req = |
|
657 iReadViagHomeZoneCacheRequests[i]; |
|
658 iMmCustomTsy->ReqCompleted(req->iReqHandle, aError); |
|
659 } |
|
660 iReadViagHomeZoneCacheRequests.ResetAndDestroy(); |
|
661 |
649 } |
662 } |
650 } |
663 } |
651 |
664 |
652 // --------------------------------------------------------------------------- |
665 // --------------------------------------------------------------------------- |
653 // CMmSIMTsy::ReadViagHomeZoneCacheCancel |
666 // CMmSIMTsy::ReadViagHomeZoneCacheCancel |
746 new (ELeave) TReadViagHomeZoneCacheRequest(); |
759 new (ELeave) TReadViagHomeZoneCacheRequest(); |
747 req->iReqHandle = aTsyReqHandle; |
760 req->iReqHandle = aTsyReqHandle; |
748 req->iViagRecordId = aViagRecordId; |
761 req->iViagRecordId = aViagRecordId; |
749 req->iViagRecordContent = aViagRecordContent; |
762 req->iViagRecordContent = aViagRecordContent; |
750 iReadViagHomeZoneCacheRequests.AppendL( req ); |
763 iReadViagHomeZoneCacheRequests.AppendL( req ); |
|
764 if(iLastViagHomeZoneCacheError != KErrNone) |
|
765 { |
|
766 // Got an error last time, ask again |
|
767 StartDynamicCachingL(); |
|
768 } |
751 } |
769 } |
752 |
770 |
753 // complete to client |
771 // complete to client |
754 if ( iViagHomeZoneCacheReady ) |
772 if ( iViagHomeZoneCacheReady ) |
755 { |
773 { |
880 // --------------------------------------------------------------------------- |
898 // --------------------------------------------------------------------------- |
881 // |
899 // |
882 void CMmSIMTsy::StartDynamicCachingL() |
900 void CMmSIMTsy::StartDynamicCachingL() |
883 { |
901 { |
884 TFLOGSTRING("TSY: CMmSIMTsy::StartDynamicCachingL"); |
902 TFLOGSTRING("TSY: CMmSIMTsy::StartDynamicCachingL"); |
885 |
903 iLastViagHomeZoneCacheError = KErrNone; |
886 // Make sure there are no ongoing dynamic caching requests.. |
904 // Make sure there are no ongoing dynamic caching requests.. |
887 if( iCurrentlyRetrievedCache ) |
905 if( iCurrentlyRetrievedCache ) |
888 { |
906 { |
889 TFLOGSTRING("TSY: CMmSIMTsy::StartDynamicCachingL - iCurrentlyRetrievedCache already exists - no new request done"); |
907 TFLOGSTRING("TSY: CMmSIMTsy::StartDynamicCachingL - iCurrentlyRetrievedCache already exists - no new request done"); |
890 return; |
908 return; |