phoneapp/phoneuicontrol/src/cphonecbamanager.cpp
changeset 46 bc5a64e5bc3c
parent 37 ba76fc04e6c2
child 50 377c906a8701
child 51 f39ed5e045e0
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
    35 #include "phoneui.hrh"
    35 #include "phoneui.hrh"
    36 
    36 
    37 #include "tphonecmdparamboolean.h"
    37 #include "tphonecmdparamboolean.h"
    38 #include "tphonecmdparaminteger.h"
    38 #include "tphonecmdparaminteger.h"
    39 #include "tphonecmdparamcallstatedata.h"
    39 #include "tphonecmdparamcallstatedata.h"
       
    40 #include "tphonecmdparamboolean.h"
    40 
    41 
    41 
    42 
    42 // ======== MEMBER FUNCTIONS ========
    43 // ======== MEMBER FUNCTIONS ========
    43 
    44 
    44 // ---------------------------------------------------------------------------
    45 // ---------------------------------------------------------------------------
   110     const TPEAudioOutput audioOutput =
   111     const TPEAudioOutput audioOutput =
   111         iStateMachine.PhoneEngineInfo()->AudioOutput();
   112         iStateMachine.PhoneEngineInfo()->AudioOutput();
   112 
   113 
   113     TBool btAvailable = iStateMachine.PhoneEngineInfo()->AudioOutputAvailable(
   114     TBool btAvailable = iStateMachine.PhoneEngineInfo()->AudioOutputAvailable(
   114         EPEBTAudioAccessory );
   115         EPEBTAudioAccessory );
   115 
   116     
       
   117     TPhoneCmdParamBoolean btParam;
       
   118     btParam.SetBoolean( audioOutput == EPEBTAudioAccessory );        
       
   119     iViewCommandHandle.ExecuteCommand(EPhoneViewSetBlueToothFlag,&btParam);
       
   120 
       
   121     TPhoneCmdParamBoolean btAvailableParam;
       
   122     btAvailableParam.SetBoolean( btAvailable );        
       
   123     iViewCommandHandle.ExecuteCommand(
       
   124             EPhoneViewSetBluetoothAvailableFlag,&btAvailableParam);
       
   125     
   116     // Call setup cases
   126     // Call setup cases
   117     if ( EPhoneCallHandlingCallSetupCBA == aResource )
   127     if ( EPhoneCallHandlingCallSetupCBA == aResource )
   118         {
   128         {
   119         if ( !FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling) )
   129         if ( !FeatureManager::FeatureSupported( KFeatureIdTouchCallHandling) )
   120             {
   130             {