Added query when marking all played in shows view; Fix for auto delete RCL_3
authorSebastian Brannstrom <sebastianb@symbian.org>
Mon, 22 Nov 2010 13:11:27 +0000
branchRCL_3
changeset 388 5f24605de6cf
parent 387 422f96ee6672
child 389 47702f1a34e0
Added query when marking all played in shows view; Fix for auto delete
application/src/PodcastShowsView.cpp
engine/src/ShowEngine.cpp
--- a/application/src/PodcastShowsView.cpp	Mon Nov 22 00:32:23 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Mon Nov 22 13:11:27 2010 +0000
@@ -648,14 +648,12 @@
 			break;
 		case EPodcastMarkAllPlayed:
 			{
-			if (iShowNewShows) {
-				TBuf<KMaxMessageLength> msg;
-				iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
-				if (!ShowQueryMessageL(msg))
-					{
-					break;
-					}
-			}
+			TBuf<KMaxMessageLength> msg;
+			iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
+			if (!ShowQueryMessageL(msg))
+				{
+				break;
+				}
 			iPodcastModel.MarkSelectionPlayedL();
 			UpdateListboxItemsL();
 			}
@@ -836,7 +834,7 @@
 		{
 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
 		info->SetPlayState(aPlayed ? EPlayed : ENeverPlayed);
-		if (aPlayed)
+		if (aPlayed && info->DownloadState() == EDownloaded)
 			{
 			// PostPlayHandling calls UpdateShow, which is slow, so we don't need to do it again
 			iPodcastModel.ShowEngine().PostPlayHandling(info);
--- a/engine/src/ShowEngine.cpp	Mon Nov 22 00:32:23 2010 +0000
+++ b/engine/src/ShowEngine.cpp	Mon Nov 22 13:11:27 2010 +0000
@@ -1718,6 +1718,7 @@
 		deleteDate.HomeTime();
 		deleteDate += daysAhead;
 		aShow->SetDeleteDate(deleteDate);
+		DP2("Setting show %S to be deleted on the %d th", &aShow->Title(), deleteDate.DayNoInMonth()+1);
 		}
 	
 	UpdateShowL(*aShow);