application/src/PodcastAppui.cpp
changeset 35 66c5303f3610
parent 24 ca50ea154990
child 37 1644b7cd063e
child 45 56d4e0784e5d
equal deleted inserted replaced
30:7bca37ba5fa9 35:66c5303f3610
   200 	iTabGroup->SetObserver(this);
   200 	iTabGroup->SetObserver(this);
   201 
   201 
   202 	iNaviPane->PushL(*iNaviTabGroup);
   202 	iNaviPane->PushL(*iNaviTabGroup);
   203 	iNaviStyle = ENaviTabGroup;
   203 	iNaviStyle = ENaviTabGroup;
   204 
   204 
   205 	UpdateQueueTab(iPodcastModel->ShowEngine().GetNumDownloadingShows());
   205 	UpdateQueueTabL(iPodcastModel->ShowEngine().GetNumDownloadingShows());
   206 	}
   206 	}
   207 
   207 
   208 void CPodcastAppUi::TabChangedL (TInt aIndex)
   208 void CPodcastAppUi::TabChangedL (TInt aIndex)
   209 	{
   209 	{
   210 	DP("CPodcastListView::TabChangedL ");
   210 	DP("CPodcastListView::TabChangedL ");
   234 		{
   234 		{
   235 		iTabGroup->SetActiveTabByIndex(aIndex);
   235 		iTabGroup->SetActiveTabByIndex(aIndex);
   236 		}
   236 		}
   237 }
   237 }
   238 
   238 
   239 void CPodcastAppUi::HandleTimeout(const CTimeout& /*aId*/, TInt /*aError*/)
   239 void CPodcastAppUi::HandleTimeoutL(const CTimeout& /*aId*/, TInt /*aError*/)
   240 	{
   240 	{
   241 	iFeedView->CheckResumeDownload();
   241 	iFeedView->CheckResumeDownloadL();
   242 	}
   242 	}
   243 
   243 
   244 void CPodcastAppUi::UpdateQueueTab(TInt aQueueLength)
   244 void CPodcastAppUi::UpdateQueueTabL(TInt aQueueLength)
   245 	{
   245 	{
   246 	if (iNaviStyle == ENaviTabGroup)
   246 	if (iNaviStyle == ENaviTabGroup)
   247 		{
   247 		{
   248 		if (aQueueLength == 0)
   248 		if (aQueueLength == 0)
   249 			{
   249 			{
   262 			CleanupStack::PopAndDestroy(queueTemplate);	
   262 			CleanupStack::PopAndDestroy(queueTemplate);	
   263 			}
   263 			}
   264 		}
   264 		}
   265 	}
   265 	}
   266 
   266 
   267 void CPodcastAppUi::TabLeft()
   267 void CPodcastAppUi::TabLeftL()
   268 	{
   268 	{
   269 	if (iNaviStyle == ENaviTabGroup) 
   269 	if (iNaviStyle == ENaviTabGroup) 
   270 		{
   270 		{
   271 		TInt ati = iTabGroup->ActiveTabIndex();
   271 		TInt ati = iTabGroup->ActiveTabIndex();
   272 		if(ati > 0)
   272 		if(ati > 0)
   275 			TabChangedL(ati-1);
   275 			TabChangedL(ati-1);
   276 			}
   276 			}
   277 		}
   277 		}
   278 	}
   278 	}
   279 
   279 
   280 void CPodcastAppUi::TabRight()
   280 void CPodcastAppUi::TabRightL()
   281 	{
   281 	{
   282 	if (iNaviStyle == ENaviTabGroup) 
   282 	if (iNaviStyle == ENaviTabGroup) 
   283 		{
   283 		{
   284 		TInt ati = iTabGroup->ActiveTabIndex();
   284 		TInt ati = iTabGroup->ActiveTabIndex();
   285 		if(ati < iTabGroup->TabCount()-1)
   285 		if(ati < iTabGroup->TabCount()-1)