application/src/PodcastAppui.cpp
branchRCL_3
changeset 367 4b75876aa85a
parent 304 9d25c062a380
equal deleted inserted replaced
342:9441fb8fd60d 367:4b75876aa85a
   208 
   208 
   209 void CPodcastAppUi::NaviShowTabGroupL()
   209 void CPodcastAppUi::NaviShowTabGroupL()
   210 	{
   210 	{
   211 	iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviPane->ResourceDecorator()->DecoratedControl());
   211 	iTabGroup = STATIC_CAST(CAknTabGroup*, iNaviPane->ResourceDecorator()->DecoratedControl());
   212 	iTabGroup->SetObserver(this); 
   212 	iTabGroup->SetObserver(this); 
       
   213 
   213 	iNaviStyle = ENaviTabGroup;
   214 	iNaviStyle = ENaviTabGroup;
   214 	UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows());
   215 	UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows());
       
   216 	}
       
   217 
       
   218 void CPodcastAppUi::SetTabsDimmed(TBool aDimmed)
       
   219 	{
       
   220 	iTabGroup->SetDimmed(aDimmed);
   215 	}
   221 	}
   216 
   222 
   217 void CPodcastAppUi::TabChangedL (TInt aIndex)
   223 void CPodcastAppUi::TabChangedL (TInt aIndex)
   218 	{
   224 	{
   219 	DP("CPodcastListView::TabChangedL ");
   225 	DP("CPodcastListView::TabChangedL ");
   225 		if (aIndex == KTabIdFeeds) 
   231 		if (aIndex == KTabIdFeeds) 
   226 			{
   232 			{
   227 			if (iFeedView->ViewingShows())
   233 			if (iFeedView->ViewingShows())
   228 				{
   234 				{
   229 				newview = KUidPodcastShowsViewID;
   235 				newview = KUidPodcastShowsViewID;
       
   236 				messageUid = TUid::Uid(2);
   230 				}
   237 				}
   231 			else
   238 			else
   232 				{
   239 				{
   233 				newview = KUidPodcastFeedViewID;
   240 				newview = KUidPodcastFeedViewID;
   234 				}
   241 				}
   235 			} 
   242 			} 
       
   243 		else if (aIndex == KTabIdNew)
       
   244 			{
       
   245 			newview = KUidPodcastShowsViewID;
       
   246 			messageUid = KUidShowNewShows;
       
   247 			}
   236 		else if (aIndex == KTabIdQueue)
   248 		else if (aIndex == KTabIdQueue)
   237 			{
   249 			{
   238 			newview = KUidPodcastQueueViewID;
   250 			newview = KUidPodcastQueueViewID;
   239 			} 
   251 			} 
   240 		else 
   252 		else