equal
deleted
inserted
replaced
282 UpdateListboxItemsL(); |
282 UpdateListboxItemsL(); |
283 UpdateToolbar(); |
283 UpdateToolbar(); |
284 DP("CPodcastSearchView::OpmlParsingComplete END"); |
284 DP("CPodcastSearchView::OpmlParsingComplete END"); |
285 } |
285 } |
286 |
286 |
287 void CPodcastSearchView::UpdateToolbar() |
287 void CPodcastSearchView::UpdateToolbar(TBool aVisible) |
288 { |
288 { |
289 TBool disableAdd = iItemArray->MdcaCount() == 0 || iSearchRunning; |
289 TBool disableAdd = iItemArray->MdcaCount() == 0 || iSearchRunning; |
290 |
290 |
291 CAknToolbar* toolbar = Toolbar(); |
291 CAknToolbar* toolbar = Toolbar(); |
292 |
292 |
293 if (toolbar) |
293 if (toolbar) |
294 { |
294 { |
|
295 toolbar->SetToolbarVisibility(aVisible); |
295 toolbar->SetItemDimmed(EPodcastAddSearchResult, disableAdd, ETrue ); |
296 toolbar->SetItemDimmed(EPodcastAddSearchResult, disableAdd, ETrue ); |
296 toolbar->HideItem(EPodcastSearch, iSearchRunning, ETrue ); |
297 toolbar->HideItem(EPodcastSearch, iSearchRunning, ETrue ); |
297 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iSearchRunning, ETrue); |
298 toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iSearchRunning, ETrue); |
298 } |
299 } |
299 } |
300 } |