equal
deleted
inserted
replaced
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 { |