phoneapp/phoneuicontrol/src/cphonestateincoming.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 69 8baf28733c3d
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   360 void CPhoneStateIncoming::HandleConnectedL( TInt aCallId )
   360 void CPhoneStateIncoming::HandleConnectedL( TInt aCallId )
   361     {
   361     {
   362     __LOGMETHODSTARTEND(EPhoneControl,
   362     __LOGMETHODSTARTEND(EPhoneControl,
   363         "CPhoneStateIncoming::HandleConnectedL ()" );
   363         "CPhoneStateIncoming::HandleConnectedL ()" );
   364     // Re-enable global notes
   364     // Re-enable global notes
   365     TPhoneCmdParamBoolean globalNotifierParam;
   365     EnableGlobalNotifiersL();
   366     globalNotifierParam.SetBoolean( EFalse );
   366     EnableEikonNotifiersL();
   367     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled,
       
   368         &globalNotifierParam );
       
   369     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
       
   370         &globalNotifierParam );
       
   371     // Stop tone playing, if necessary
   367     // Stop tone playing, if necessary
   372     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   368     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   373     TransitionHandlerL().BeginUiUpdateLC();
   369     BeginUiUpdateLC();
   374     // Update single call
   370     // Update single call
   375     UpdateSingleActiveCallL( aCallId );
   371     UpdateSingleActiveCallL( aCallId );
   376     SetTouchPaneButtons( EPhoneIncallButtons );
   372     SetTouchPaneButtons( EPhoneIncallButtons );
   377     SetToolbarDimming( EFalse );
   373     SetToolbarDimming( EFalse );
   378     TransitionHandlerL().EndUiUpdate();
   374     EndUiUpdate();
   379     iCbaManager->UpdateCbaL( EPhoneCallHandlingInCallCBA );
   375     iCbaManager->UpdateCbaL( EPhoneCallHandlingInCallCBA );
   380     iStateMachine->ChangeState( EPhoneStateSingle );
   376     iStateMachine->ChangeState( EPhoneStateSingle );
   381     }
   377     }
   382 
   378 
   383 // -----------------------------------------------------------
   379 // -----------------------------------------------------------
   420 //
   416 //
   421 void CPhoneStateIncoming::HandleIdleL( TInt aCallId )
   417 void CPhoneStateIncoming::HandleIdleL( TInt aCallId )
   422     {
   418     {
   423     __LOGMETHODSTARTEND(EPhoneControl,
   419     __LOGMETHODSTARTEND(EPhoneControl,
   424         "CPhoneStateIncoming::HandleIdleL ()" );
   420         "CPhoneStateIncoming::HandleIdleL ()" );
   425     TransitionHandlerL().IdleCallUiUpdateLC();
   421     BeginTransEffectLC( ENumberEntryClose );
       
   422     BeginUiUpdateLC();
   426     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   423     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   427     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   424     iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   428     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   425     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   429     
   426     
   430     TPhoneCmdParamBoolean globalNotifierParam;
   427     EnableEikonNotifiersL();
   431     globalNotifierParam.SetBoolean( EFalse );
       
   432     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
       
   433         &globalNotifierParam );
       
   434     
   428     
   435     SetDefaultFlagsL();
   429     SetDefaultFlagsL();
   436     
   430     
   437      if ( IsNumberEntryUsedL() )
   431      if ( IsNumberEntryUsedL() )
   438         {
   432         {
   460         {
   454         {
   461         DisplayIdleScreenL();
   455         DisplayIdleScreenL();
   462         }
   456         }
   463  
   457  
   464     DeleteTouchPaneButtons();
   458     DeleteTouchPaneButtons();
   465     TransitionHandlerL().EndUiUpdateAndEffect();
   459     EndUiUpdate();
       
   460     EndTransEffect();
   466     iCbaManager->UpdateCbaL( EPhoneEmptyCBA );
   461     iCbaManager->UpdateCbaL( EPhoneEmptyCBA );
   467     iStateMachine->ChangeState( EPhoneStateIdle );
   462     iStateMachine->ChangeState( EPhoneStateIdle );
   468     }
   463     }
   469 
   464 
   470 // -----------------------------------------------------------
   465 // -----------------------------------------------------------
   633     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   628     iViewCommandHandle->ExecuteCommandL( EPhoneViewStopRingTone );
   634     iStateMachine->SendPhoneEngineMessage(
   629     iStateMachine->SendPhoneEngineMessage(
   635         MPEPhoneModel::EPEMessageStopTonePlay );
   630         MPEPhoneModel::EPEMessageStopTonePlay );
   636     
   631     
   637     // Re-enable global notes. Otherwise message editor is not opened.
   632     // Re-enable global notes. Otherwise message editor is not opened.
   638     TPhoneCmdParamBoolean globalNotifierParam;
   633     EnableEikonNotifiersL();
   639     globalNotifierParam.SetBoolean( EFalse );
       
   640     iViewCommandHandle->ExecuteCommandL( EPhoneViewSetEikonNotifiersDisabled,
       
   641         &globalNotifierParam );
       
   642 
   634 
   643     // Change the CBA to Options..Reject
   635     // Change the CBA to Options..Reject
   644     iCbaManager->SetCbaL( EPhoneCallHandlingIncomingRejectCBA );
   636     iCbaManager->SetCbaL( EPhoneCallHandlingIncomingRejectCBA );
   645 
   637 
   646     TPhoneCmdParamSfiData sfiDataParam;
   638     TPhoneCmdParamSfiData sfiDataParam;