engine/src/FeedInfo.cpp
changeset 93 bbf5c5204844
parent 92 dc142c8740eb
child 97 b52f6033af15
--- a/engine/src/FeedInfo.cpp	Wed Mar 31 08:41:07 2010 +0200
+++ b/engine/src/FeedInfo.cpp	Wed Mar 31 14:50:33 2010 +0200
@@ -17,6 +17,8 @@
 */
 
 #include "FeedInfo.h"
+#include "FeedEngine.h"
+#include "PodcastModel.h"
 #include <e32hashtab.h>
 #include <fbs.h>
 #include <bautils.h>
@@ -209,7 +211,7 @@
 		{
 		iFeedIcon = CEikonEnv::Static()->CreateBitmapL(cacheFileName, 0);
 		}	
-	}
+	} 
 
 EXPORT_C TBool CFeedInfo::CustomTitle() const
 	{
@@ -241,9 +243,8 @@
 	iFeedIcon->Duplicate(aBitmapToClone->Handle());
 	}
 
-void CFeedInfo::ImageOperationCompleteL(TInt aError, TUint /*aHandle*/)
-	{
-		
+void CFeedInfo::ImageOperationCompleteL(TInt aError, TUint /*aHandle*/, CPodcastModel& aPodcastModel)
+	{		
 	if (aError == KErrNone && iImageFileName && iFeedIcon)
 		{
 		TFileName cacheFileName;
@@ -253,5 +254,6 @@
 		cacheFileName.Append(parser.Name());
 		cacheFileName.Append(KMbmExtension());		
 		iFeedIcon->Save(cacheFileName);					
+		aPodcastModel.FeedEngine().NotifyFeedUpdateComplete(this->iUid, KErrNone);
 		}
 	}