equal
deleted
inserted
replaced
630 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
630 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
631 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState); |
631 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState); |
632 |
632 |
633 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
633 TInt index = iListContainer->Listbox()->CurrentItemIndex(); |
634 |
634 |
635 TBool showMarkAllPlayed = EFalse; |
|
636 for (int i=0;i<iPodcastModel.ActiveShowList().Count();i++) |
|
637 { |
|
638 CShowInfo* info = iPodcastModel.ActiveShowList()[i]; |
|
639 if (info->PlayState() == ENeverPlayed) |
|
640 { |
|
641 showMarkAllPlayed = ETrue; |
|
642 break; |
|
643 } |
|
644 |
|
645 } |
|
646 |
|
647 if (index >= 0 && index < iPodcastModel.ActiveShowList().Count()) |
635 if (index >= 0 && index < iPodcastModel.ActiveShowList().Count()) |
648 { |
636 { |
649 CShowInfo* info = iPodcastModel.ActiveShowList()[index]; |
637 CShowInfo* info = iPodcastModel.ActiveShowList()[index]; |
650 |
638 |
651 TBool hideDownloadShowCmd = info->DownloadState() != ENotDownloaded; |
639 TBool hideDownloadShowCmd = info->DownloadState() != ENotDownloaded; |
655 aMenuPane->SetItemDimmed(EPodcastMarkAsPlayed, hideMarkOld); |
643 aMenuPane->SetItemDimmed(EPodcastMarkAsPlayed, hideMarkOld); |
656 aMenuPane->SetItemDimmed(EPodcastMarkAsUnplayed, !hideMarkOld); |
644 aMenuPane->SetItemDimmed(EPodcastMarkAsUnplayed, !hideMarkOld); |
657 |
645 |
658 aMenuPane->SetItemDimmed(EPodcastDownloadShow, hideDownloadShowCmd); |
646 aMenuPane->SetItemDimmed(EPodcastDownloadShow, hideDownloadShowCmd); |
659 aMenuPane->SetItemDimmed(EPodcastDeleteShow, hideDeleteShowCmd); |
647 aMenuPane->SetItemDimmed(EPodcastDeleteShow, hideDeleteShowCmd); |
660 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, !showMarkAllPlayed); |
|
661 } |
648 } |
662 } |
649 } |
663 } |
650 } |
664 |
651 |
665 void CPodcastShowsView::DisplayShowInfoDialogL() |
652 void CPodcastShowsView::DisplayShowInfoDialogL() |