application/src/PodcastFeedView.cpp
changeset 32 26a3f2dfba08
parent 26 71493655568a
child 33 64ed1227e68d
--- a/application/src/PodcastFeedView.cpp	Wed Mar 03 22:24:42 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Wed Mar 03 23:56:05 2010 +0000
@@ -371,6 +371,11 @@
 				aFeedInfo.LastUpdated().FormatL(updatedDate, KDateFormatShort());
 				}
 			}
+		
+		if(aFeedInfo.LastError() != KErrNone)
+			{
+			GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
+			}
 		}
 	CArrayPtr<CGulIcon>* icons = iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->IconArray();
 	
@@ -395,16 +400,11 @@
 			if(BaflUtils::FileExists(iPodcastModel.FsSession(), aFeedInfo.ImageFileName()))
 			{
 			// If this fails, no reason to worry
-			TRAP_IGNORE(iPodcastModel.ImageHandler().LoadFileAndScaleL(aFeedInfo.FeedIcon(), aFeedInfo.ImageFileName(), TSize(64,56), *this));
+			TRAP_IGNORE(iPodcastModel.ImageHandler().LoadFileAndScaleL(aFeedInfo.FeedIcon(), aFeedInfo.ImageFileName(), TSize(64,56), *this, aFeedInfo.Uid()));
 			}
 		}
 	}
 	
-	if(aFeedInfo.LastError() != KErrNone)
-		{
-		GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
-		}
-		
 	if (unplayedShows.Length() > 0) {
 		unplayedShows.Insert(0,_L(", "));
 	}
@@ -412,10 +412,10 @@
 	iListboxFormatbuffer.Format(KFeedFormat(), iconIndex, &(aFeedInfo.Title()), &updatedDate,  &unplayedShows);
 	}
 
-void CPodcastFeedView::ImageOperationCompleteL(TInt aError)
+void CPodcastFeedView::ImageOperationCompleteL(TInt aError, TUint aHandle)
 	{
 	if (aError == KErrNone) {
-		UpdateListboxItemsL();
+	UpdateFeedInfoStatusL(aHandle, EFalse);
 	}
 	}