application/src/PodcastQueueView.cpp
branchRCL_3
changeset 295 67f53e831ab0
parent 265 72305c65726c
child 301 f5af16df2425
equal deleted inserted replaced
294:e5240be0ddbb 295:67f53e831ab0
   272 			if(resumeAfterMove)
   272 			if(resumeAfterMove)
   273 				{
   273 				{
   274 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   274 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   275 				}
   275 				}
   276 				
   276 				
       
   277 			UpdateListboxItemsL();
   277 			iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
   278 			iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
   278 			UpdateListboxItemsL();
       
   279 			}
   279 			}
   280 			break;
   280 			break;
   281 		case EPodcastMoveDownloadDown:
   281 		case EPodcastMoveDownloadDown:
   282 			{
   282 			{
   283 			TInt index = iListContainer->Listbox()->CurrentItemIndex();
   283 			TInt index = iListContainer->Listbox()->CurrentItemIndex();
   296 			if(resumeAfterMove)
   296 			if(resumeAfterMove)
   297 				{
   297 				{
   298 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   298 				iPodcastModel.ShowEngine().ResumeDownloadsL();
   299 				}
   299 				}
   300 			
   300 			
   301 			iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
   301 			UpdateListboxItemsL();
   302 			UpdateListboxItemsL();
   302 			iListContainer->Listbox()->SetCurrentItemIndex(index + 1);
   303 			}
   303 			}
   304 			break;
   304 			break;
   305 		case EPodcastSuspendDownloads:
   305 		case EPodcastSuspendDownloads:
   306 			{
   306 			{
   307 			iDontUpdateList = ETrue;
   307 			iDontUpdateList = ETrue;
   325 	UpdateToolbar();
   325 	UpdateToolbar();
   326 	}
   326 	}
   327 	
   327 	
   328 void CPodcastQueueView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   328 void CPodcastQueueView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   329 	{
   329 	{
   330 	if(aResourceId == R_PODCAST_SHOWSVIEW_MENU)
   330 	if(aResourceId == R_PODCAST_QUEUEVIEW_MENU)
   331 		{
   331 		{
   332 		aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, ETrue);
       
   333 		
       
   334 		TBool dimDown = (iListContainer->Listbox()->CurrentItemIndex() >= iPodcastModel.ActiveShowList().Count() - 1 ?
   332 		TBool dimDown = (iListContainer->Listbox()->CurrentItemIndex() >= iPodcastModel.ActiveShowList().Count() - 1 ?
   335 				ETrue : EFalse);
   333 				ETrue : EFalse);
   336 		TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ?
   334 		TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ?
   337 				ETrue : EFalse);
   335 				ETrue : EFalse);
   338 		
   336