engine/src/PodcastModel.cpp
changeset 134 46baf9a7cadd
parent 133 5f9e7e14eb11
child 162 d15654dbe9b8
equal deleted inserted replaced
133:5f9e7e14eb11 134:46baf9a7cadd
   232 	return *iConnectionEngine;
   232 	return *iConnectionEngine;
   233 }
   233 }
   234 
   234 
   235 EXPORT_C void CPodcastModel::PlayPausePodcastL(CShowInfo* aPodcast, TBool /* aPlayOnInit */) 
   235 EXPORT_C void CPodcastModel::PlayPausePodcastL(CShowInfo* aPodcast, TBool /* aPlayOnInit */) 
   236 	{
   236 	{
       
   237 	DP("CPodcastModel::PlayPausePodcastL BEGIN");
   237 	TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName()));
   238 	TRAPD(err, LaunchFileEmbeddedL(aPodcast->FileName()));
   238 	
   239 	
   239 	if (err == KErrNone)
   240 	if (err == KErrNone)
   240 		{
   241 		{
   241 		aPodcast->SetPlayState(EPlayed);
   242 		aPodcast->SetPlayState(EPlayed);
   242 		iShowEngine->UpdateShowL(*aPodcast);
   243 		iShowEngine->UpdateShowL(*aPodcast);
   243 		}
   244 		}
   244 	
   245 	else
       
   246 		{
       
   247 		User::Leave(err);
       
   248 		}
       
   249 	DP("CPodcastModel::PlayPausePodcastL END");
   245 	}
   250 	}
   246 
   251 
   247 EXPORT_C CFeedInfo* CPodcastModel::ActiveFeedInfo()
   252 EXPORT_C CFeedInfo* CPodcastModel::ActiveFeedInfo()
   248 {
   253 {
   249 	return iActiveFeed;
   254 	return iActiveFeed;