engine/src/PodcastModel.cpp
branch3rded
changeset 390 d7abecc9d189
parent 343 9c56bf585696
--- a/engine/src/PodcastModel.cpp	Sat Nov 13 15:05:16 2010 +0000
+++ b/engine/src/PodcastModel.cpp	Mon Nov 22 15:41:41 2010 +0000
@@ -228,8 +228,7 @@
 	
 	if (err == KErrNone)
 		{
-		aPodcast->SetPlayState(EPlayed);
-		iShowEngine->UpdateShowL(*aPodcast);
+		iShowEngine->PostPlayHandling(aPodcast);
 		}
 	else
 		{
@@ -457,12 +456,17 @@
 	iShowEngine->GetShowsByFeedL(iActiveShowList, aFeedUid);
 	}
 
+EXPORT_C void CPodcastModel::GetNewShowsL()
+	{
+	iActiveShowList.ResetAndDestroy();
+	iShowEngine->GetNewShowsL(iActiveShowList);
+	}
+
 EXPORT_C void CPodcastModel::MarkSelectionPlayedL()
 	{
 	for (int i=0;i<iActiveShowList.Count();i++) {
 		if(iActiveShowList[i]->PlayState() != EPlayed) {
-			iActiveShowList[i]->SetPlayState(EPlayed);
-			iShowEngine->UpdateShowL(*iActiveShowList[i]);
+			ShowEngine().PostPlayHandling(iActiveShowList[i]);
 		}
 	}
 	}