application/src/PodcastFeedView.cpp
branchsymbian1
changeset 289 ba99740139d0
parent 268 4f37d00ca76e
child 296 80f1da5ac28b
--- a/application/src/PodcastFeedView.cpp	Mon Oct 25 14:03:39 2010 +0100
+++ b/application/src/PodcastFeedView.cpp	Mon Oct 25 14:04:32 2010 +0100
@@ -880,6 +880,25 @@
 	showsDownloading.ResetAndDestroy();
 	}
 
+void CPodcastFeedView::CheckConfirmExit()
+	{
+	RShowInfoArray showsDownloading;
+	iPodcastModel.ShowEngine().GetShowsDownloadingL(showsDownloading);
+
+	if (showsDownloading.Count() > 0 && !iPodcastModel.SettingsEngine().DownloadSuspended())
+		{
+		TBuf<256> msg;
+		iEikonEnv->ReadResourceL(msg, R_EXIT_SHOWS_DOWNLOADING);
+		
+		if (!ShowQueryMessageL(msg))
+			{
+			return;
+			}
+		}
+	
+	AppUi()->Exit();
+	}
+
 void CPodcastFeedView::OpmlParsingComplete(TInt aError, TUint aNumFeedsImported)
 	{
 	TRAP_IGNORE(OpmlParsingCompleteL(aError, aNumFeedsImported));