phoneapp/phoneuistates/src/cphonesingleandalerting.cpp
branchRCL_3
changeset 69 8baf28733c3d
parent 62 5266b1f337bd
child 81 c26cc2a7c548
equal deleted inserted replaced
62:5266b1f337bd 69:8baf28733c3d
   194     if( callStateData.CallId() == aCallId )
   194     if( callStateData.CallId() == aCallId )
   195         {        
   195         {        
   196         // Close menu bar, if it is displayed
   196         // Close menu bar, if it is displayed
   197         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   197         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose );
   198 
   198 
   199         CPhoneState::BeginUiUpdateLC();
   199         TransitionHandlerL().BeginUiUpdateLC();
   200             
   200             
   201         // Show bubble
   201         // Show bubble
   202         TPhoneCmdParamCallHeaderData callHeaderParam;
   202         TPhoneCmdParamCallHeaderData callHeaderParam;
   203         callHeaderParam.SetCallState( EPEStateConnected );
   203         callHeaderParam.SetCallState( EPEStateConnected );
   204         iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   204         iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, 
   205             &callHeaderParam );
   205             &callHeaderParam );
   206 
   206 
   207         SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   207         SetTouchPaneButtons( EPhoneTwoSinglesButtons );
   208         EndUiUpdate();
   208         TransitionHandlerL().EndUiUpdate();
   209               
   209               
   210         // Set Hold flag to view
   210         // Set Hold flag to view
   211         TPhoneCmdParamBoolean holdFlag;
   211         TPhoneCmdParamBoolean holdFlag;
   212         holdFlag.SetBoolean( EFalse );
   212         holdFlag.SetBoolean( EFalse );
   213         iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );  
   213         iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag );  
   238 //
   238 //
   239 void CPhoneSingleAndAlerting::HandleIdleL( TInt aCallId )
   239 void CPhoneSingleAndAlerting::HandleIdleL( TInt aCallId )
   240     {
   240     {
   241     __LOGMETHODSTARTEND( EPhoneUIStates, 
   241     __LOGMETHODSTARTEND( EPhoneUIStates, 
   242         "CPhoneSingleAndAlerting::HandleIdleL()");
   242         "CPhoneSingleAndAlerting::HandleIdleL()");
   243     
   243     TransitionHandlerL().BeginUiUpdateLC();
   244     BeginUiUpdateLC();
       
   245     
   244     
   246     // Remove call 
   245     // Remove call 
   247     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   246     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   248 
   247 
   249     // Close menu bar, if it is displayed
   248     // Close menu bar, if it is displayed
   275         DisplayCallTerminationNoteL();
   274         DisplayCallTerminationNoteL();
   276         SetTouchPaneButtons( EPhoneCallSetupButtons );
   275         SetTouchPaneButtons( EPhoneCallSetupButtons );
   277         UpdateCbaL( EPhoneCallHandlingInCallCBA );
   276         UpdateCbaL( EPhoneCallHandlingInCallCBA );
   278         iStateMachine->ChangeState( EPhoneStateAlerting );
   277         iStateMachine->ChangeState( EPhoneStateAlerting );
   279         }
   278         }
   280 
   279     TransitionHandlerL().EndUiUpdate();
   281     EndUiUpdate();
       
   282     }
   280     }
   283 
   281 
   284 // -----------------------------------------------------------
   282 // -----------------------------------------------------------
   285 // CPhoneSingleAndAlerting::OpenMenuBarL
   283 // CPhoneSingleAndAlerting::OpenMenuBarL
   286 // -----------------------------------------------------------
   284 // -----------------------------------------------------------