phoneapp/phoneuicontrol/src/cphonecbamanager.cpp
changeset 50 377c906a8701
parent 46 bc5a64e5bc3c
child 65 2a5d4ab426d3
equal deleted inserted replaced
46:bc5a64e5bc3c 50:377c906a8701
   146             {
   146             {
   147             resourceId = EPhoneEmptyBackCBA;
   147             resourceId = EPhoneEmptyBackCBA;
   148             }
   148             }
   149         else
   149         else
   150             {
   150             {
   151             TBool dtmfEditorVisible = iViewCommandHandle.HandleCommandL(
       
   152                     EPhoneViewIsDTMFEditorVisible ) ==
       
   153                     EPhoneViewResponseSuccess;
       
   154             TPhoneCmdParamInteger activeCallCount;
   151             TPhoneCmdParamInteger activeCallCount;
   155             iViewCommandHandle.ExecuteCommandL(
   152             iViewCommandHandle.ExecuteCommandL(
   156                     EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   153                     EPhoneViewGetCountOfActiveCalls, &activeCallCount );
   157             
   154             
   158             TPhoneCmdParamCallStateData callStateData;
   155             TPhoneCmdParamCallStateData callStateData;
   160             iViewCommandHandle.HandleCommandL(
   157             iViewCommandHandle.HandleCommandL(
   161                     EPhoneViewGetCallIdByState, &callStateData );
   158                     EPhoneViewGetCallIdByState, &callStateData );
   162             
   159             
   163             TInt incomingCall = callStateData.CallId();
   160             TInt incomingCall = callStateData.CallId();
   164 
   161 
   165             if( dtmfEditorVisible )
   162             if( activeCallCount.Integer() == ENoActiveCalls )
   166                 {
       
   167                 resourceId = EPhoneDtmfDialerCBA;
       
   168                 }                    
       
   169             else if( activeCallCount.Integer() == ENoActiveCalls )
       
   170                 {
   163                 {
   171                 resourceId = EPhoneNumberAcqCBA;
   164                 resourceId = EPhoneNumberAcqCBA;
   172                 }
   165                 }
   173             else if ( activeCallCount.Integer() > ENoActiveCalls &&  
   166             else if ( activeCallCount.Integer() > ENoActiveCalls &&  
   174                       incomingCall > KErrNotFound )
   167                       incomingCall > KErrNotFound )
   279     if ( iStateMachine.PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP 
   272     if ( iStateMachine.PhoneEngineInfo()->CallType( aCallId ) == EPECallTypeVoIP 
   280         || iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() == 0 )
   273         || iStateMachine.PhoneEngineInfo()->RemotePhoneNumber( aCallId ).Length() == 0 )
   281         {
   274         {
   282         softRejectActivated = EFalse;
   275         softRejectActivated = EFalse;
   283         }
   276         }
   284     TPhoneCmdParamBoolean softRejectParam;
       
   285     softRejectParam.SetBoolean( softRejectActivated );
       
   286     iViewCommandHandle.ExecuteCommandL( EPhoneViewSetSoftRejectFlag,
       
   287         &softRejectParam );
       
   288 
   277 
   289     TInt incomingCbaResourceId;
   278     TInt incomingCbaResourceId;
   290 
   279 
   291     if ( iState->IsSwivelClosed() )
   280     if ( iState->IsSwivelClosed() )
   292         {
   281         {