equal
deleted
inserted
replaced
507 if(iUpdatingRunning) |
507 if(iUpdatingRunning) |
508 { |
508 { |
509 iPodcastModel.FeedEngine().CancelUpdateAllFeeds(); |
509 iPodcastModel.FeedEngine().CancelUpdateAllFeeds(); |
510 } |
510 } |
511 }break; |
511 }break; |
512 case EAknSoftkeyExit: |
|
513 { |
|
514 RShowInfoArray dlQueue; |
|
515 iPodcastModel.ShowEngine().GetShowsDownloadingL(dlQueue); |
|
516 TUint queueCount = dlQueue.Count(); |
|
517 dlQueue.ResetAndDestroy(); |
|
518 dlQueue.Close(); |
|
519 |
|
520 if (queueCount > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) |
|
521 { |
|
522 TBuf<KMaxMessageLength> message; |
|
523 iEikonEnv->ReadResourceL(message, R_EXIT_SHOWS_DOWNLOADING); |
|
524 if(ShowQueryMessageL(message)) |
|
525 { |
|
526 // pass it on to AppUi, which will exit for us |
|
527 CPodcastListView::HandleCommandL(aCommand); |
|
528 } |
|
529 } |
|
530 else |
|
531 { |
|
532 // nothing in queue, or downloading suspended |
|
533 CPodcastListView::HandleCommandL(aCommand); |
|
534 } |
|
535 } |
|
536 break; |
|
537 default: |
512 default: |
538 CPodcastListView::HandleCommandL(aCommand); |
513 CPodcastListView::HandleCommandL(aCommand); |
539 break; |
514 break; |
540 } |
515 } |
541 |
516 |
874 showsDownloading.ResetAndDestroy(); |
849 showsDownloading.ResetAndDestroy(); |
875 } |
850 } |
876 |
851 |
877 void CPodcastFeedView::CheckConfirmExit() |
852 void CPodcastFeedView::CheckConfirmExit() |
878 { |
853 { |
|
854 DP("CPodcastFeedView::CheckConfirmExit"); |
879 RShowInfoArray showsDownloading; |
855 RShowInfoArray showsDownloading; |
880 iPodcastModel.ShowEngine().GetShowsDownloadingL(showsDownloading); |
856 iPodcastModel.ShowEngine().GetShowsDownloadingL(showsDownloading); |
881 |
857 TUint count = showsDownloading.Count(); |
882 if (showsDownloading.Count() > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) |
858 showsDownloading.ResetAndDestroy(); |
|
859 showsDownloading.Close(); |
|
860 |
|
861 if (count > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended()) |
883 { |
862 { |
884 TBuf<256> msg; |
863 TBuf<256> msg; |
885 iEikonEnv->ReadResourceL(msg, R_EXIT_SHOWS_DOWNLOADING); |
864 iEikonEnv->ReadResourceL(msg, R_EXIT_SHOWS_DOWNLOADING); |
886 |
865 |
887 if (!ShowQueryMessageL(msg)) |
866 if (!ShowQueryMessageL(msg)) |
945 iEikonEnv->ReadResourceL(message, R_SEARCH_NORESULTS); |
924 iEikonEnv->ReadResourceL(message, R_SEARCH_NORESULTS); |
946 ShowErrorMessageL(message); |
925 ShowErrorMessageL(message); |
947 } |
926 } |
948 else |
927 else |
949 { |
928 { |
|
929 iToolbar->SetToolbarVisibility(EFalse); |
950 AppUi()->ActivateLocalViewL(KUidPodcastSearchViewID, TUid::Uid(0), KNullDesC8()); |
930 AppUi()->ActivateLocalViewL(KUidPodcastSearchViewID, TUid::Uid(0), KNullDesC8()); |
951 } |
931 } |
952 iOpmlState = EOpmlIdle; |
932 iOpmlState = EOpmlIdle; |
953 break; |
933 break; |
954 default: |
934 default: |