phoneapp/phoneuistates/src/cphonesingleandcallsetup.cpp
branchRCL_3
changeset 26 8baf28733c3d
parent 25 5266b1f337bd
equal deleted inserted replaced
25:5266b1f337bd 26:8baf28733c3d
   202 //
   202 //
   203 void CPhoneSingleAndCallSetup::HandleConnectingL( TInt aCallId )
   203 void CPhoneSingleAndCallSetup::HandleConnectingL( TInt aCallId )
   204     {
   204     {
   205     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleConnectingL()");
   205     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleConnectingL()");
   206     
   206     
   207     BeginUiUpdateLC();
   207     TransitionHandlerL().BeginUiUpdateLC();
   208     
   208     
   209     UpdateRemoteInfoDataL ( aCallId );
   209     UpdateRemoteInfoDataL ( aCallId );
   210     
   210     
   211     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   211     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   212     
   212     
   228     TPhoneCmdParamCallHeaderData callHeaderParam;
   228     TPhoneCmdParamCallHeaderData callHeaderParam;
   229     callHeaderParam.SetCallState( EPEStateConnecting );
   229     callHeaderParam.SetCallState( EPEStateConnecting );
   230     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   230     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   231         &callHeaderParam );
   231         &callHeaderParam );
   232 
   232 
   233     EndUiUpdate();
   233     TransitionHandlerL().EndUiUpdate();
   234         
   234         
   235     // Set Hold flag to view EFalse that dtmf menu item not delete
   235     // Set Hold flag to view EFalse that dtmf menu item not delete
   236     TPhoneCmdParamBoolean holdFlag;
   236     TPhoneCmdParamBoolean holdFlag;
   237     holdFlag.SetBoolean( EFalse );
   237     holdFlag.SetBoolean( EFalse );
   238     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   238     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   249 void CPhoneSingleAndCallSetup::HandleConnectedL( TInt aCallId )
   249 void CPhoneSingleAndCallSetup::HandleConnectedL( TInt aCallId )
   250     {
   250     {
   251     __LOGMETHODSTARTEND( EPhoneUIStates, 
   251     __LOGMETHODSTARTEND( EPhoneUIStates, 
   252         "CPhoneSingleAndCallSetup::HandleConnectedL()");
   252         "CPhoneSingleAndCallSetup::HandleConnectedL()");
   253     
   253     
   254     BeginUiUpdateLC();
   254     TransitionHandlerL().BeginUiUpdateLC();
   255     
   255     
   256     // Show bubble
   256     // Show bubble
   257     TPhoneCmdParamCallHeaderData callHeaderParam;
   257     TPhoneCmdParamCallHeaderData callHeaderParam;
   258     callHeaderParam.SetCallState( EPEStateConnected );
   258     callHeaderParam.SetCallState( EPEStateConnected );
   259     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   259     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   274     holdFlag.SetBoolean( EFalse );
   274     holdFlag.SetBoolean( EFalse );
   275     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   275     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   276 
   276 
   277     SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   277     SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   278     
   278     
   279     EndUiUpdate();        
   279     TransitionHandlerL().EndUiUpdate();
   280     
   280     
   281      // Go to two singles state
       
   282     UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   281     UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   283     iStateMachine->ChangeState( EPhoneStateTwoSingles );
   282     iStateMachine->ChangeState( EPhoneStateTwoSingles );
   284     
   283     
   285     }
   284     }
   286 
   285 
   289 // -----------------------------------------------------------
   288 // -----------------------------------------------------------
   290 //
   289 //
   291 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   290 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   292     {
   291     {
   293     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   292     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   294     BeginUiUpdateLC();
   293     TransitionHandlerL().BeginUiUpdateLC();
   295     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   294     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   296     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   295     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   297     // Find out do we have single or outgoing call left
   296     // Find out do we have single or outgoing call left
   298     TPhoneCmdParamInteger activeCallCount;
   297     TPhoneCmdParamInteger activeCallCount;
   299     iViewCommandHandle->ExecuteCommandL(
   298     iViewCommandHandle->ExecuteCommandL(
   327         SetToolbarButtonLoudspeakerEnabled();
   326         SetToolbarButtonLoudspeakerEnabled();
   328         // Update call setup CBAs
   327         // Update call setup CBAs
   329         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   328         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   330         iStateMachine->ChangeState( EPhoneStateCallSetup );
   329         iStateMachine->ChangeState( EPhoneStateCallSetup );
   331         }
   330         }
   332     EndUiUpdate();
   331     TransitionHandlerL().EndUiUpdate();
   333     }
   332     }
   334 
   333 
   335 // -----------------------------------------------------------
   334 // -----------------------------------------------------------
   336 // CPhoneSingleAndCallSetup::HandleCommandL
   335 // CPhoneSingleAndCallSetup::HandleCommandL
   337 // -----------------------------------------------------------
   336 // -----------------------------------------------------------