phoneapp/phoneuistates/src/cphonesingleandcallsetup.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 69 8baf28733c3d
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   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     TransitionHandlerL().BeginUiUpdateLC();
   207     BeginUiUpdateLC();
   208     
   208     
   209     UpdateRemoteInfoDataL ( aCallId );
   209     UpdateRemoteInfoDataL ( aCallId );
   210     
   210     
   211     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   211     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote );
   212     
   212     
   213     // Re-enable global notes
   213     // Re-enable global notes
   214     TPhoneCmdParamBoolean globalNotifierParam;
   214     EnableGlobalNotifiersL();
   215     globalNotifierParam.SetBoolean( EFalse );
       
   216     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
       
   217         &globalNotifierParam );
       
   218 
   215 
   219     // Stop capturing keys
   216     // Stop capturing keys
   220     CaptureKeysDuringCallNotificationL( EFalse );
   217     CaptureKeysDuringCallNotificationL( EFalse );
   221 
   218 
   222     // Remove the number entry if it isn't DTMF dialer
   219     // Remove the number entry if it isn't DTMF dialer
   228     TPhoneCmdParamCallHeaderData callHeaderParam;
   225     TPhoneCmdParamCallHeaderData callHeaderParam;
   229     callHeaderParam.SetCallState( EPEStateConnecting );
   226     callHeaderParam.SetCallState( EPEStateConnecting );
   230     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   227     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   231         &callHeaderParam );
   228         &callHeaderParam );
   232 
   229 
   233     TransitionHandlerL().EndUiUpdate();
   230     EndUiUpdate();
   234         
   231         
   235     // Set Hold flag to view EFalse that dtmf menu item not delete
   232     // Set Hold flag to view EFalse that dtmf menu item not delete
   236     TPhoneCmdParamBoolean holdFlag;
   233     TPhoneCmdParamBoolean holdFlag;
   237     holdFlag.SetBoolean( EFalse );
   234     holdFlag.SetBoolean( EFalse );
   238     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   235     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   249 void CPhoneSingleAndCallSetup::HandleConnectedL( TInt aCallId )
   246 void CPhoneSingleAndCallSetup::HandleConnectedL( TInt aCallId )
   250     {
   247     {
   251     __LOGMETHODSTARTEND( EPhoneUIStates, 
   248     __LOGMETHODSTARTEND( EPhoneUIStates, 
   252         "CPhoneSingleAndCallSetup::HandleConnectedL()");
   249         "CPhoneSingleAndCallSetup::HandleConnectedL()");
   253     
   250     
   254     TransitionHandlerL().BeginUiUpdateLC();
   251     BeginUiUpdateLC();
   255     
   252     
   256     // Show bubble
   253     // Show bubble
   257     TPhoneCmdParamCallHeaderData callHeaderParam;
   254     TPhoneCmdParamCallHeaderData callHeaderParam;
   258     callHeaderParam.SetCallState( EPEStateConnected );
   255     callHeaderParam.SetCallState( EPEStateConnected );
   259     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   256     iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   274     holdFlag.SetBoolean( EFalse );
   271     holdFlag.SetBoolean( EFalse );
   275     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   272     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );
   276 
   273 
   277     SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   274     SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   278     
   275     
   279     TransitionHandlerL().EndUiUpdate();
   276     EndUiUpdate();        
   280     
   277     
       
   278      // Go to two singles state
   281     UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   279     UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA );
   282     iStateMachine->ChangeState( EPhoneStateTwoSingles );
   280     iStateMachine->ChangeState( EPhoneStateTwoSingles );
   283     
   281     
   284     }
   282     }
   285 
   283 
   288 // -----------------------------------------------------------
   286 // -----------------------------------------------------------
   289 //
   287 //
   290 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   288 void CPhoneSingleAndCallSetup::HandleIdleL( TInt aCallId )
   291     {
   289     {
   292     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   290     __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneSingleAndCallSetup::HandleIdleL()");
   293     TransitionHandlerL().BeginUiUpdateLC();
   291     BeginUiUpdateLC();
   294     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   292     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   295     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   293     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   296     // Find out do we have single or outgoing call left
   294     // Find out do we have single or outgoing call left
   297     TPhoneCmdParamInteger activeCallCount;
   295     TPhoneCmdParamInteger activeCallCount;
   298     iViewCommandHandle->ExecuteCommandL(
   296     iViewCommandHandle->ExecuteCommandL(
   326         SetToolbarButtonLoudspeakerEnabled();
   324         SetToolbarButtonLoudspeakerEnabled();
   327         // Update call setup CBAs
   325         // Update call setup CBAs
   328         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   326         UpdateCbaL( EPhoneCallHandlingCallSetupCBA );
   329         iStateMachine->ChangeState( EPhoneStateCallSetup );
   327         iStateMachine->ChangeState( EPhoneStateCallSetup );
   330         }
   328         }
   331     TransitionHandlerL().EndUiUpdate();
   329     EndUiUpdate();
   332     }
   330     }
   333 
   331 
   334 // -----------------------------------------------------------
   332 // -----------------------------------------------------------
   335 // CPhoneSingleAndCallSetup::HandleCommandL
   333 // CPhoneSingleAndCallSetup::HandleCommandL
   336 // -----------------------------------------------------------
   334 // -----------------------------------------------------------