engine/src/PodcastModel.cpp
branchRCL_3
changeset 368 b131f7696342
parent 367 4b75876aa85a
equal deleted inserted replaced
367:4b75876aa85a 368:b131f7696342
   237 	DP("CPodcastModel::PlayPausePodcastL BEGIN");
   237 	DP("CPodcastModel::PlayPausePodcastL BEGIN");
   238 	TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName()));
   238 	TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName()));
   239 	
   239 	
   240 	if (err == KErrNone)
   240 	if (err == KErrNone)
   241 		{
   241 		{
   242 		aPodcast->SetPlayState(EPlayed);
   242 		iShowEngine->PostPlayHandling(aPodcast);
   243 		iShowEngine->UpdateShowL(*aPodcast);
       
   244 		}
   243 		}
   245 	else
   244 	else
   246 		{
   245 		{
   247 		User::Leave(err);
   246 		User::Leave(err);
   248 		}
   247 		}
   486 
   485 
   487 EXPORT_C void CPodcastModel::MarkSelectionPlayedL()
   486 EXPORT_C void CPodcastModel::MarkSelectionPlayedL()
   488 	{
   487 	{
   489 	for (int i=0;i<iActiveShowList.Count();i++) {
   488 	for (int i=0;i<iActiveShowList.Count();i++) {
   490 		if(iActiveShowList[i]->PlayState() != EPlayed) {
   489 		if(iActiveShowList[i]->PlayState() != EPlayed) {
   491 			iActiveShowList[i]->SetPlayState(EPlayed);
   490 			ShowEngine().PostPlayHandling(iActiveShowList[i]);
   492 			iShowEngine->UpdateShowL(*iActiveShowList[i]);
       
   493 		}
   491 		}
   494 	}
   492 	}
   495 	}
   493 	}
   496 
   494 
   497 TInt CPodcastModel::FindActiveShowByUid(TUint aUid)
   495 TInt CPodcastModel::FindActiveShowByUid(TUint aUid)