application/src/PodcastShowsView.cpp
changeset 87 31d05afa1a52
parent 84 3b59b88b089e
child 88 1cc7501102a8
--- a/application/src/PodcastShowsView.cpp	Sat Apr 24 20:10:46 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Sat Apr 24 21:46:17 2010 +0100
@@ -69,10 +69,30 @@
 			EMbmPodcastAudio_failed_mask,
 			EMbmPodcastAudio_suspended,
 			EMbmPodcastAudio_suspended_mask,
+			EMbmPodcastVideo,
+			EMbmPodcastVideo_mask,
+			EMbmPodcastVideo_new,
+			EMbmPodcastVideo_new_mask,
+			EMbmPodcastVideo_queued,
+			EMbmPodcastVideo_queued_mask,
+			EMbmPodcastVideo_downloading,
+			EMbmPodcastVideo_downloading_mask,
+			EMbmPodcastVideo_downloaded,
+			EMbmPodcastVideo_downloaded_mask,
+			EMbmPodcastVideo_downloaded_new,
+			EMbmPodcastVideo_downloaded_new_mask,
+			EMbmPodcastVideo_failed,
+			EMbmPodcastVideo_failed_mask,
+			EMbmPodcastVideo_suspended,
+			EMbmPodcastVideo_suspended_mask,
+			EMbmPodcastFeed,
+			EMbmPodcastFeed_mask,
 			0,
 			0
 	};
 
+const TInt KVideoIconOffset = 8;
+
 CPodcastShowsView* CPodcastShowsView::NewL(CPodcastModel& aPodcastModel)
 	{
 	CPodcastShowsView* self = CPodcastShowsView::NewLC(aPodcastModel);
@@ -120,9 +140,9 @@
 	TInt pos = 0;
 	while (KShowIconArrayIds[pos] > 0)
 		{
-		// Load the bitmap for play icon	
-		CFbsBitmap* bitmap= NULL;//iEikonEnv->CreateBitmapL( _L("*"), KIconArrayIds[pos]);
-		CFbsBitmap* mask=  NULL;////iEikonEnv->CreateBitmapL( _L("*"), KIconArrayIds[pos+1] );
+		// Load the icon	
+		CFbsBitmap* bitmap= NULL;
+		CFbsBitmap* mask=  NULL;
 		AknIconUtils::CreateIconL(bitmap,
 					                          mask,
 					                          iEikonEnv->EikAppUi()->Application()->BitmapStoreName(),
@@ -131,7 +151,7 @@
 		CleanupStack::PushL(bitmap);		
 		CleanupStack::PushL(mask);
 		
-		// Append the play icon to icon array
+		// Append the icon to icon array
 		icons->AppendL(CGulIcon::NewL(bitmap, mask) );
 		CleanupStack::Pop(2); // bitmap, mask
 		pos+=2;
@@ -372,6 +392,11 @@
 			aIconIndex = EFailedShowIcon;
 			break;
 		}
+	
+	if (aShowInfo->ShowType() == EVideoPodcast)
+		{
+		aIconIndex += KVideoIconOffset;
+		}
 	}