application/src/PodcastShowsView.cpp
branchsymbian1
changeset 288 757e84a30b9a
parent 166 58268495eb35
child 336 3d6c1417e8bd
equal deleted inserted replaced
287:e6a88732eb8f 288:757e84a30b9a
   651 	
   651 	
   652 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   652 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   653 {
   653 {
   654 	if(aResourceId == R_PODCAST_SHOWSVIEW_MENU)
   654 	if(aResourceId == R_PODCAST_SHOWSVIEW_MENU)
   655 		{
   655 		{
       
   656 		TBool showMarkAllPlayed = EFalse;
       
   657 		for (int i=0;i<iPodcastModel.ActiveShowList().Count();i++)
       
   658 			{
       
   659 			CShowInfo* info = iPodcastModel.ActiveShowList()[i];
       
   660 			if (info->PlayState() == ENeverPlayed)
       
   661 				{
       
   662 				showMarkAllPlayed = ETrue;
       
   663 				break;
       
   664 				}
       
   665 			
       
   666 			}
       
   667 		
   656 		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
   668 		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
   657 		aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState);
   669 		aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || !showMarkAllPlayed);
       
   670 
       
   671 			
   658 		}
   672 		}
   659 }
   673 }
   660 	
   674 	
   661 void CPodcastShowsView::DisplayShowInfoDialogL()
   675 void CPodcastShowsView::DisplayShowInfoDialogL()
   662 	{
   676 	{