application/src/PodcastFeedView.cpp
changeset 36 e010fc411ddc
parent 35 66c5303f3610
parent 33 64ed1227e68d
child 37 1644b7cd063e
child 45 56d4e0784e5d
--- a/application/src/PodcastFeedView.cpp	Sat Mar 06 10:22:09 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Sat Mar 06 10:28:29 2010 +0000
@@ -189,6 +189,7 @@
 		} 
 	else 
 		{
+		UpdateListboxItemsL();		
 		UpdateToolbar();
 
 		if (iFirstActivateAfterLaunch)
@@ -371,6 +372,11 @@
 				aFeedInfo.LastUpdated().FormatL(updatedDate, KDateFormatShort());
 				}
 			}
+		
+		if(aFeedInfo.LastError() != KErrNone)
+			{
+			GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
+			}
 		}
 	CArrayPtr<CGulIcon>* icons = iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->IconArray();
 	
@@ -395,16 +401,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 +413,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);
 	}
 	}