application/src/PodcastShowsView.cpp
branchRCL_3
changeset 388 5f24605de6cf
parent 383 931d0db6374d
equal deleted inserted replaced
387:422f96ee6672 388:5f24605de6cf
   646 		case EPodcastMarkAsUnplayed:
   646 		case EPodcastMarkAsUnplayed:
   647 			HandleSetShowPlayedL(EFalse);
   647 			HandleSetShowPlayedL(EFalse);
   648 			break;
   648 			break;
   649 		case EPodcastMarkAllPlayed:
   649 		case EPodcastMarkAllPlayed:
   650 			{
   650 			{
   651 			if (iShowNewShows) {
   651 			TBuf<KMaxMessageLength> msg;
   652 				TBuf<KMaxMessageLength> msg;
   652 			iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
   653 				iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
   653 			if (!ShowQueryMessageL(msg))
   654 				if (!ShowQueryMessageL(msg))
   654 				{
   655 					{
   655 				break;
   656 					break;
   656 				}
   657 					}
       
   658 			}
       
   659 			iPodcastModel.MarkSelectionPlayedL();
   657 			iPodcastModel.MarkSelectionPlayedL();
   660 			UpdateListboxItemsL();
   658 			UpdateListboxItemsL();
   661 			}
   659 			}
   662 			break;
   660 			break;
   663 		case EPodcastDeleteShow:
   661 		case EPodcastDeleteShow:
   834 				
   832 				
   835 	if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   833 	if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   836 		{
   834 		{
   837 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
   835 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
   838 		info->SetPlayState(aPlayed ? EPlayed : ENeverPlayed);
   836 		info->SetPlayState(aPlayed ? EPlayed : ENeverPlayed);
   839 		if (aPlayed)
   837 		if (aPlayed && info->DownloadState() == EDownloaded)
   840 			{
   838 			{
   841 			// PostPlayHandling calls UpdateShow, which is slow, so we don't need to do it again
   839 			// PostPlayHandling calls UpdateShow, which is slow, so we don't need to do it again
   842 			iPodcastModel.ShowEngine().PostPlayHandling(info);
   840 			iPodcastModel.ShowEngine().PostPlayHandling(info);
   843 			}
   841 			}
   844 		else
   842 		else