equal
deleted
inserted
replaced
584 HBufC *waitText = iEikonEnv->AllocReadResourceLC(R_SEARCHING); |
584 HBufC *waitText = iEikonEnv->AllocReadResourceLC(R_SEARCHING); |
585 ShowWaitDialogL(*waitText); |
585 ShowWaitDialogL(*waitText); |
586 CleanupStack::PopAndDestroy(waitText); |
586 CleanupStack::PopAndDestroy(waitText); |
587 |
587 |
588 iOpmlState = EOpmlSearching; |
588 iOpmlState = EOpmlSearching; |
589 iPodcastModel.FeedEngine().SearchForFeedL(url); |
589 TRAPD(err, iPodcastModel.FeedEngine().SearchForFeedL(url)); |
|
590 |
|
591 if (err != KErrNone) |
|
592 { |
|
593 delete iWaitDialog; |
|
594 iOpmlState = EOpmlIdle; |
|
595 } |
590 } |
596 } |
591 else |
597 else |
592 { |
598 { |
593 PodcastUtils::FixProtocolsL(url); |
599 PodcastUtils::FixProtocolsL(url); |
594 |
600 |
844 { |
850 { |
845 case KErrCouldNotConnect: |
851 case KErrCouldNotConnect: |
846 { |
852 { |
847 TBuf<KMaxMessageLength> message; |
853 TBuf<KMaxMessageLength> message; |
848 iEikonEnv->ReadResourceL(message, R_PODCAST_CONNECTION_ERROR); |
854 iEikonEnv->ReadResourceL(message, R_PODCAST_CONNECTION_ERROR); |
|
855 delete iWaitDialog; |
|
856 iOpmlState = EOpmlIdle; |
849 ShowErrorMessageL(message); |
857 ShowErrorMessageL(message); |
850 } |
858 } |
851 break; |
859 break; |
852 case KErrNone: |
860 case KErrNone: |
853 default: // we don't do more error handling here, just show 0 imported feeds |
861 default: // we don't do more error handling here, just show 0 imported feeds |