phoneapp/phoneuicontrol/src/cphonestate.cpp
branchRCL_3
changeset 7 544e34b3255a
parent 6 38529f706030
child 9 91c2fb4b78df
equal deleted inserted replaced
6:38529f706030 7:544e34b3255a
  4703 // CPhoneState::SetToolbarDimming
  4703 // CPhoneState::SetToolbarDimming
  4704 // ---------------------------------------------------------
  4704 // ---------------------------------------------------------
  4705 //
  4705 //
  4706 EXPORT_C void CPhoneState::SetToolbarDimming( TBool aDimmed )
  4706 EXPORT_C void CPhoneState::SetToolbarDimming( TBool aDimmed )
  4707     {
  4707     {
  4708     if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) )
  4708 	if ( FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling ) )
  4709         {
  4709         {
  4710         TPhoneCmdParamBoolean booleanParam;
  4710 		// Check that we are not undimming toolbar in security mode
  4711         booleanParam.SetBoolean( aDimmed );
  4711 		if ( !( !aDimmed && iStateMachine->SecurityMode()->IsSecurityMode() ) )
  4712         TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL(
  4712 			{
  4713             EPhoneViewSetToolbarDimming, &booleanParam ));
  4713 			TPhoneCmdParamBoolean booleanParam;
       
  4714 			booleanParam.SetBoolean( aDimmed );
       
  4715 			TRAP_IGNORE( iViewCommandHandle->ExecuteCommandL(
       
  4716 				EPhoneViewSetToolbarDimming, &booleanParam ));
       
  4717 			}
  4714         }
  4718         }
  4715     }
  4719     }
  4716 
  4720 
  4717 // ---------------------------------------------------------
  4721 // ---------------------------------------------------------
  4718 // CPhoneState::SetToolbarButtonLoudspeakerEnabled
  4722 // CPhoneState::SetToolbarButtonLoudspeakerEnabled