283 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/, |
283 void CPodcastQueueView::HandleListBoxEventL(CEikListBox* /*aListBox*/, |
284 TListBoxEvent aEventType) |
284 TListBoxEvent aEventType) |
285 { |
285 { |
286 switch (aEventType) |
286 switch (aEventType) |
287 { |
287 { |
|
288 #ifndef SYMBIAN1_UI |
|
289 case EEventItemClicked: |
|
290 #endif |
288 case EEventEnterKeyPressed: |
291 case EEventEnterKeyPressed: |
289 case EEventItemActioned: |
292 case EEventItemActioned: |
290 case EEventItemDoubleClicked: |
293 case EEventItemDoubleClicked: |
291 break; |
294 break; |
292 default: |
295 default: |
568 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
571 RShowInfoArray &fItems = iPodcastModel.ActiveShowList(); |
569 TInt itemCnt = fItems.Count(); |
572 TInt itemCnt = fItems.Count(); |
570 if (iListContainer->IsVisible()) { |
573 if (iListContainer->IsVisible()) { |
571 toolbar->SetToolbarVisibility(aVisible); |
574 toolbar->SetToolbarVisibility(aVisible); |
572 } |
575 } |
573 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
|
574 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
576 toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue); |
575 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
|
576 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
577 toolbar->SetItemDimmed(EPodcastRemoveAllDownloads, itemCnt == 0, ETrue); |
577 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
578 toolbar->HideItem(EPodcastSuspendDownloads,iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
578 toolbar->HideItem(EPodcastResumeDownloads,!iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
579 toolbar->HideItem(EPodcastResumeDownloads,!iPodcastModel.SettingsEngine().DownloadSuspended(), ETrue); |
|
580 #ifdef SYMBIAN1_UI |
|
581 toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue); |
|
582 toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue); |
|
583 #endif |
579 } |
584 } |
580 } |
585 } |
581 |
586 |
582 void CPodcastQueueView::DownloadQueueUpdatedL(TInt /*aDownloadingShows*/, TInt /*aQueuedShows*/) |
587 void CPodcastQueueView::DownloadQueueUpdatedL(TInt /*aDownloadingShows*/, TInt /*aQueuedShows*/) |
583 { |
588 { |