application/src/PodcastShowsView.cpp
branch3rded
changeset 343 9c56bf585696
parent 177 269e3f3e544a
child 390 d7abecc9d189
--- a/application/src/PodcastShowsView.cpp	Sat Oct 23 17:30:22 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Sat Nov 13 13:54:36 2010 +0000
@@ -105,14 +105,11 @@
 
 void CPodcastShowsView::ConstructL()
 	{
-	DP("CPodcastShowsView::ConstructL BEGIN");
 	BaseConstructL(R_PODCAST_SHOWSVIEW);
 	CPodcastListView::ConstructL();
 	
 	CreateIconsL();
-	
-	iListContainer->Listbox()->SetListBoxObserver(this);
-	
+		
 	iPodcastModel.FeedEngine().AddObserver(this);
 	iPodcastModel.ShowEngine().AddObserver(this);
 	
@@ -143,7 +140,8 @@
 		pos+=2;
 		}
 		
-	iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->SetIconArrayL(icons);
+	//iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->SetIconArrayL(icons);
+	iListContainer->SetListboxIcons(icons);
 	CleanupStack::Pop(icons); // icons
 	}
 
@@ -173,7 +171,9 @@
 				break;
 			case 106:
 			case '#':
-				HandleCommandL(EPodcastShowInfo);
+				if (activeShow->DownloadState() == ENotDownloaded) {
+					HandleCommandL(EPodcastDownloadShow);
+				}
 				break;
 			case EKeyBackspace:
 			case EKeyDelete:
@@ -486,6 +486,7 @@
 
 void CPodcastShowsView::UpdateListboxItemsL()
 	{
+	DP("CPodcastShowsView::UpdateListboxItemsL BEGIN");
 	if (iListContainer->IsVisible())
 		{
 		TListItemProperties itemProps;
@@ -552,6 +553,7 @@
 				}				
 			}
 		}
+	DP("CPodcastShowsView::UpdateListboxItemsL END");
 	}
 
 /**