application/src/PodcastSearchView.cpp
changeset 13 f58e3c482bd9
parent 11 f6c975c3b702
child 14 4e75731546eb
equal deleted inserted replaced
12:47c8595ffc70 13:f58e3c482bd9
   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 }