equal
deleted
inserted
replaced
476 |
476 |
477 if(aSizeDownloaded > 0) |
477 if(aSizeDownloaded > 0) |
478 { |
478 { |
479 if (aShowInfo.ShowSize() > 0) |
479 if (aShowInfo.ShowSize() > 0) |
480 { |
480 { |
481 TInt showSize = aShowInfo.ShowSize() >= aSizeDownloaded ? aShowInfo.ShowSize() : aSizeDownloaded; |
481 TUint showSize = aShowInfo.ShowSize() >= (TUint) aSizeDownloaded ? aShowInfo.ShowSize() : (TUint) aSizeDownloaded; |
482 infoSize.Format(KSizeDownloadingOf(), ((float) aSizeDownloaded / (float) KSizeMb), |
482 infoSize.Format(KSizeDownloadingOf(), ((float) aSizeDownloaded / (float) KSizeMb), |
483 ((float) showSize / (float)KSizeMb)); |
483 ((float) showSize / (float)KSizeMb)); |
484 } |
484 } |
485 else |
485 else |
486 { |
486 { |
722 UpdateToolbar(); |
722 UpdateToolbar(); |
723 } |
723 } |
724 |
724 |
725 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
725 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane) |
726 { |
726 { |
727 if(aResourceId == R_PODCAST_SHOWSVIEW_MENU && !iShowNewShows) |
727 if(aResourceId == R_PODCAST_SHOWSVIEW_MENU) |
728 { |
728 { |
729 TBool showMarkAllPlayed = EFalse; |
729 TBool hideMarkAllPlayed = ETrue; |
730 for (int i=0;i<iPodcastModel.ActiveShowList().Count();i++) |
730 for (int i=0;i<iPodcastModel.ActiveShowList().Count();i++) |
731 { |
731 { |
732 CShowInfo* info = iPodcastModel.ActiveShowList()[i]; |
732 CShowInfo* info = iPodcastModel.ActiveShowList()[i]; |
733 if (info->PlayState() == ENeverPlayed) |
733 if (info->PlayState() == ENeverPlayed) |
734 { |
734 { |
735 showMarkAllPlayed = ETrue; |
735 hideMarkAllPlayed = EFalse; |
736 break; |
736 break; |
737 } |
737 } |
738 |
738 |
739 } |
739 } |
740 |
740 |
741 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
741 TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid(); |
742 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || !showMarkAllPlayed); |
742 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || hideMarkAllPlayed || iShowNewShows); |
743 } |
743 } |
744 } |
744 } |
745 |
745 |
746 void CPodcastShowsView::DisplayShowInfoDialogL() |
746 void CPodcastShowsView::DisplayShowInfoDialogL() |
747 { |
747 { |