bluetoothengine/btui/Ecom/src/BTUIBlockedDevicesView.cpp
branchRCL_3
changeset 39 5a89845f78e2
parent 35 95674584745d
equal deleted inserted replaced
35:95674584745d 39:5a89845f78e2
   263         {
   263         {
   264         iTabHelper->CreateTabGroupL( Id(), 
   264         iTabHelper->CreateTabGroupL( Id(), 
   265             static_cast<CArrayPtrFlat<MGSTabbedView>*>
   265             static_cast<CArrayPtrFlat<MGSTabbedView>*>
   266             (iBaseView->TabbedViews()) ); 
   266             (iBaseView->TabbedViews()) ); 
   267         }
   267         }
       
   268         
       
   269 
       
   270     MenuBar()->SetContextMenuTitleResourceId(
       
   271             R_BTUI_MENUBAR_BLOCK_DEVICES_VIEW); 
   268         
   272         
   269 	// notify observer   
   273 	// notify observer   
   270     if( iActivationObserver  && iConstructAsGsPlugin == EFalse)
   274     if( iActivationObserver  && iConstructAsGsPlugin == EFalse)
   271     {    	    
   275     {    	    
   272         iActivationObserver->PluginViewActivated(EBlockedDevicesViewId);        
   276         iActivationObserver->PluginViewActivated(EBlockedDevicesViewId);        
   347 		{			
   351 		{			
   348 		aMenu->SetItemDimmed(EAknCmdHelp,
   352 		aMenu->SetItemDimmed(EAknCmdHelp,
   349 		  !FeatureManager::FeatureSupported( KFeatureIdHelp ) );
   353 		  !FeatureManager::FeatureSupported( KFeatureIdHelp ) );
   350 		}
   354 		}
   351     
   355     
   352     // do not show "unblock" and "unblock all" commands 
   356     // do not "unblock all" commands 
   353     // if there is nothing to unblock
   357     // if there is nothing to unblock
   354 	if (aResId == R_BTUI_BLOCK_DEVICES_VIEW_MENU)
   358 	if (aResId == R_BTUI_BLOCK_DEVICES_VIEW_MENU)
   355 	    {
   359 	    {
   356         if( iContainer->CountItems() == 0) 
   360         if( iContainer->CountItems() == 0) 
   357             {        
   361             {        
   358             aMenu->SetItemDimmed(EBTUICmdUnblock, ETrue);
       
   359             aMenu->SetItemDimmed(EBTUICmdUnblockAll, ETrue);            
   362             aMenu->SetItemDimmed(EBTUICmdUnblockAll, ETrue);            
   360             }
   363             }
   361         else
   364         else
   362             {
   365             {
   363             aMenu->SetItemDimmed(EBTUICmdUnblockAll, EFalse);
   366             aMenu->SetItemDimmed(EBTUICmdUnblockAll, EFalse);
   364             aMenu->SetItemDimmed(EBTUICmdUnblock, ETrue);
       
   365             }
   367             }
   366 	    }
   368 	    }
   367 	TRACE_FUNC_EXIT        
   369 	TRACE_FUNC_EXIT        
   368     }
   370     }
   369 
   371