application/src/PodcastFeedView.cpp
branchRCL_3
changeset 292 655dbce90b70
parent 272 e6d095ba6756
child 297 d3cc41f88e82
--- a/application/src/PodcastFeedView.cpp	Mon Oct 25 14:03:07 2010 +0100
+++ b/application/src/PodcastFeedView.cpp	Mon Oct 25 14:04:32 2010 +0100
@@ -873,6 +873,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));