558 { |
558 { |
559 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, ETrue); |
559 aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, ETrue); |
560 } |
560 } |
561 } |
561 } |
562 |
562 |
563 void CPodcastQueueView::UpdateToolbar() |
563 void CPodcastQueueView::UpdateToolbar(TBool aVisible) |
564 { |
564 { |
565 CAknToolbar* toolbar = Toolbar(); |
565 CAknToolbar* toolbar = Toolbar(); |
566 |
566 |
567 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
567 if (toolbar) { |
568 TInt itemCnt = fItems.Count(); |
568 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
569 |
569 TInt itemCnt = fItems.Count(); |
570 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
570 toolbar->SetToolbarVisibility(aVisible); |
571 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
571 |
572 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
572 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
573 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
573 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
574 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
574 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
575 toolbar->HideItem(EPodcastResumeDownloads,!iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
575 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
|
576 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
|
577 toolbar->HideItem(EPodcastResumeDownloads,!iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
|
578 } |
576 } |
579 } |
577 |
580 |
578 void CPodcastQueueView::DownloadQueueUpdatedL(TInt /*aDownloadingShows*/, TInt /*aQueuedShows*/) |
581 void CPodcastQueueView::DownloadQueueUpdatedL(TInt /*aDownloadingShows*/, TInt /*aQueuedShows*/) |
579 { |
582 { |
580 } |
583 } |