phoneapp/phoneuistates/src/cphoneconferenceandcallsetup.cpp
branchRCL_3
changeset 69 8baf28733c3d
parent 62 5266b1f337bd
child 81 c26cc2a7c548
equal deleted inserted replaced
62:5266b1f337bd 69:8baf28733c3d
   246 //
   246 //
   247 void CPhoneConferenceAndCallSetup::HandleConnectingL( TInt aCallId )
   247 void CPhoneConferenceAndCallSetup::HandleConnectingL( TInt aCallId )
   248     {
   248     {
   249     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneConferenceAndCallSetup::HandleConnectingL()");
   249     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneConferenceAndCallSetup::HandleConnectingL()");
   250     
   250     
   251     BeginUiUpdateLC();
   251     TransitionHandlerL().BeginUiUpdateLC();
   252         
   252         
   253     UpdateRemoteInfoDataL ( aCallId );
   253     UpdateRemoteInfoDataL ( aCallId );
   254     
   254     
   255     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   255     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   256     
   256     
   280     TPhoneCmdParamCallHeaderData callHeaderParam;
   280     TPhoneCmdParamCallHeaderData callHeaderParam;
   281     callHeaderParam.SetCallState( EPEStateConnecting );
   281     callHeaderParam.SetCallState( EPEStateConnecting );
   282     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   282     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   283         &callHeaderParam );       
   283         &callHeaderParam );       
   284         
   284         
   285     EndUiUpdate();        
   285     TransitionHandlerL().EndUiUpdate();
   286     }
   286     }
   287     
   287     
   288 // -----------------------------------------------------------
   288 // -----------------------------------------------------------
   289 // CPhoneConferenceAndCallSetup::HandleConnectedL
   289 // CPhoneConferenceAndCallSetup::HandleConnectedL
   290 // -----------------------------------------------------------
   290 // -----------------------------------------------------------
   294     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneConferenceAndCallSetup::HandleConnectedL()");
   294     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneConferenceAndCallSetup::HandleConnectedL()");
   295     
   295     
   296     // Close menu bar, if it is displayed
   296     // Close menu bar, if it is displayed
   297     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   297     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   298  
   298  
   299     BeginUiUpdateLC();
   299     TransitionHandlerL().BeginUiUpdateLC();
   300         
   300         
   301     // Show bubble
   301     // Show bubble
   302     TPhoneCmdParamCallHeaderData callHeaderParam;
   302     TPhoneCmdParamCallHeaderData callHeaderParam;
   303     callHeaderParam.SetCallState( EPEStateConnected );
   303     callHeaderParam.SetCallState( EPEStateConnected );
   304     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   304     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   314         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry );
   314         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry );
   315         }
   315         }
   316     
   316     
   317     SetTouchPaneButtons( EPhoneConferenceAndSingleButtons );
   317     SetTouchPaneButtons( EPhoneConferenceAndSingleButtons );
   318     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   318     SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate );
   319     EndUiUpdate(); 
   319     TransitionHandlerL().EndUiUpdate(); 
   320     
   320     
   321     UpdateCbaL ( EPhoneCallHandlingNewCallSwapCBA );
   321     UpdateCbaL ( EPhoneCallHandlingNewCallSwapCBA );
   322    
   322    
   323     iStateMachine->ChangeState( EPhoneStateConferenceAndSingle );                     
   323     iStateMachine->ChangeState( EPhoneStateConferenceAndSingle );                     
   324     }
   324     }
   379             }
   379             }
   380         }
   380         }
   381     else
   381     else
   382         {
   382         {
   383         // Remove  outgoing call 
   383         // Remove  outgoing call 
   384         BeginTransEffectLC( ENumberEntryOpen );
   384         TransitionHandlerL().BeginTransEffectLC( EPhoneTransEffectPhoneUiOpen );
   385         BeginUiUpdateLC();
   385         TransitionHandlerL().BeginUiUpdateLC();
   386         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   386         iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   387         CheckIfRestoreNEContentAfterDtmfDialer();
   387         CheckIfRestoreNEContentAfterDtmfDialer();
   388         if ( IsNumberEntryUsedL() )
   388         if ( IsNumberEntryUsedL() )
   389             {
   389             {
   390             // Show the number entry if it exists
   390             // Show the number entry if it exists
   391             SetNumberEntryVisibilityL(ETrue);
   391             SetNumberEntryVisibilityL(ETrue);
   392             }
   392             }
   393             
   393             
   394         SetTouchPaneButtons( EPhoneConferenceButtons );
   394         SetTouchPaneButtons( EPhoneConferenceButtons );
   395         EndUiUpdate();
   395         TransitionHandlerL().EndUiUpdateAndEffect();
   396         EndTransEffect(); 
       
   397         UpdateCbaL( EPhoneCallHandlingInCallCBA );
   396         UpdateCbaL( EPhoneCallHandlingInCallCBA );
   398         iStateMachine->ChangeState( EPhoneStateConference );
   397         iStateMachine->ChangeState( EPhoneStateConference );
   399         }
   398         }
   400     }
   399     }
   401     
   400