application/src/PodcastQueueView.cpp
branchnewlist
changeset 353 33963ffd3082
parent 347 b8d687bb7ca1
child 355 075b3a49cb55
equal deleted inserted replaced
352:31f9864a37ac 353:33963ffd3082
   335 			{
   335 			{
   336 			DisplayShowInfoDialogL();
   336 			DisplayShowInfoDialogL();
   337 			}
   337 			}
   338 			break;
   338 			break;
   339 		default:
   339 		default:
   340 			CPodcastListView::HandleCommandL(aCommand);
   340 			CPodcastShowsView::HandleCommandL(aCommand);
   341 			break;
   341 			break;
   342 		}
   342 		}
   343 	iListContainer->SetLongTapDetectedL(EFalse); // in case we got here by long tapping
   343 	iListContainer->SetLongTapDetectedL(EFalse); // in case we got here by long tapping
   344 	UpdateToolbar();
   344 	UpdateToolbar();
   345 	}
   345 	}
   389 		TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ?
   389 		TBool dimUp = (iListContainer->Listbox()->CurrentItemIndex() <= 0 ?
   390 				ETrue : EFalse);
   390 				ETrue : EFalse);
   391 		
   391 		
   392 		iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadDown, dimDown);
   392 		iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadDown, dimDown);
   393 		iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadUp, dimUp);
   393 		iStylusPopupMenu->SetItemDimmed(EPodcastMoveDownloadUp, dimUp);
   394 		
   394 
       
   395 		TInt index = iListContainer->Listbox()->CurrentItemIndex();
       
   396 		CShowInfo *info = iPodcastModel.ActiveShowList()[index];
       
   397 
       
   398 		iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsPlayed, info->PlayState() != ENeverPlayed);
       
   399 		iStylusPopupMenu->SetItemDimmed(EPodcastMarkAsUnplayed, info->PlayState() == ENeverPlayed);
       
   400 	
   395 		iStylusPopupMenu->ShowMenu();
   401 		iStylusPopupMenu->ShowMenu();
   396 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   402 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   397     }
   403     }
   398     
   404     
   399 	DP("CPodcastQueueView::HandleLongTapEventL END");
   405 	DP("CPodcastQueueView::HandleLongTapEventL END");