application/src/PodcastShowsView.cpp
branchsymbian1
changeset 384 004e149c6f0b
parent 377 684802056d6f
equal deleted inserted replaced
382:102470b85c8e 384:004e149c6f0b
   655 		case EPodcastMarkAsUnplayed:
   655 		case EPodcastMarkAsUnplayed:
   656 			HandleSetShowPlayedL(EFalse);
   656 			HandleSetShowPlayedL(EFalse);
   657 			break;
   657 			break;
   658 		case EPodcastMarkAllPlayed:
   658 		case EPodcastMarkAllPlayed:
   659 			{
   659 			{
   660 			if (iShowNewShows) {
   660 			TBuf<KMaxMessageLength> msg;
   661 				TBuf<KMaxMessageLength> msg;
   661 			iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
   662 				iEikonEnv->ReadResourceL(msg, R_MARK_ALL_OLD_QUERY);
   662 			if (!ShowQueryMessageL(msg))
   663 				if (!ShowQueryMessageL(msg))
   663 				{
   664 					{
   664 				break;
   665 					break;
   665 				}
   666 					}
       
   667 			}
       
   668 			iPodcastModel.MarkSelectionPlayedL();
   666 			iPodcastModel.MarkSelectionPlayedL();
   669 			UpdateListboxItemsL();
   667 			UpdateListboxItemsL();
   670 			}
   668 			}
   671 			break;
   669 			break;
   672 		case EPodcastDeleteShow:
   670 		case EPodcastDeleteShow:
   934 				
   932 				
   935 	if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   933 	if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   936 		{
   934 		{
   937 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
   935 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
   938 		info->SetPlayState(aPlayed ? EPlayed : ENeverPlayed);
   936 		info->SetPlayState(aPlayed ? EPlayed : ENeverPlayed);
   939 		if (aPlayed)
   937 		if (aPlayed && info->DownloadState() == EDownloaded)
   940 			{
   938 			{
   941 			// PostPlayHandling calls UpdateShow, which is slow, so we don't need to do it again
   939 			// PostPlayHandling calls UpdateShow, which is slow, so we don't need to do it again
   942 			iPodcastModel.ShowEngine().PostPlayHandling(info);
   940 			iPodcastModel.ShowEngine().PostPlayHandling(info);
   943 			}
   941 			}
   944 		else
   942 		else