Re-enabled queue count in tabs
authorteknolog
Thu, 25 Feb 2010 21:20:11 +0000
changeset 16 7a4b769d94c8
parent 15 93d9f66bf50b
child 17 4bcc91e70483
Re-enabled queue count in tabs
application/src/PodcastAppui.cpp
application/src/PodcastShowsView.cpp
--- a/application/src/PodcastAppui.cpp	Thu Feb 25 21:08:38 2010 +0000
+++ b/application/src/PodcastAppui.cpp	Thu Feb 25 21:20:11 2010 +0000
@@ -161,11 +161,7 @@
 		
 	HBufC *label3 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_QUEUE);
 	iTabGroup->AddTabL(KTabIdQueue,*label3);
-	
-//	HBufC *label4 = iEikonEnv->AllocReadResourceLC(R_TABGROUP_SEARCH);			
-//	iTabGroup->AddTabL(KTabIdSearch,*label4);
-//	
-//	CleanupStack::PopAndDestroy(label4);
+
 	CleanupStack::PopAndDestroy(label3);
 	CleanupStack::PopAndDestroy(label1);
 	
@@ -174,6 +170,8 @@
 
 	iNaviPane->Pop();
 	SetTabsVisibleL(ETrue);
+	
+	UpdateQueueTab(iPodcastModel->ShowEngine().GetNumDownloadingShows());
 	}
 
 void CPodcastAppUi::TabChangedL (TInt aIndex)
--- a/application/src/PodcastShowsView.cpp	Thu Feb 25 21:08:38 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Thu Feb 25 21:20:11 2010 +0000
@@ -871,9 +871,9 @@
 		}
 	}
 
-void CPodcastShowsView::DownloadQueueUpdatedL(TInt /*aDownloadingShows*/, TInt /*aQueuedShows*/)
+void CPodcastShowsView::DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows)
 	{
-	//((CPodcastAppUi*)AppUi())->UpdateQueueTab(aDownloadingShows+aQueuedShows);
+	((CPodcastAppUi*)AppUi())->UpdateQueueTab(aDownloadingShows+aQueuedShows);
 	}
 
 void CPodcastShowsView::FeedUpdateAllCompleteL(TFeedState /*aState*/)