phoneapp/phoneuistates/src/cphonetwosinglesandwaiting.cpp
branchRCL_3
changeset 81 c26cc2a7c548
parent 69 8baf28733c3d
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   215 //
   215 //
   216 void CPhoneTwoSinglesAndWaiting::HandleIdleL( TInt aCallId )
   216 void CPhoneTwoSinglesAndWaiting::HandleIdleL( TInt aCallId )
   217     {
   217     {
   218     __LOGMETHODSTARTEND( EPhoneUIStates, 
   218     __LOGMETHODSTARTEND( EPhoneUIStates, 
   219         "CPhoneTwoSinglesAndWaiting::HandleIdleL()");
   219         "CPhoneTwoSinglesAndWaiting::HandleIdleL()");
   220     TransitionHandlerL().BeginUiUpdateLC();
   220     BeginUiUpdateLC();
   221     if ( !IsNumberEntryUsedL() )
   221     if ( !IsNumberEntryUsedL() )
   222         {
   222         {
   223         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); 
   223         iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); 
   224         }
   224         }
   225     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   225     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId );
   230         }
   230         }
   231     else
   231     else
   232         {
   232         {
   233         StateTransitionToSingleAndWaitingL();
   233         StateTransitionToSingleAndWaitingL();
   234         }
   234         }
   235     TransitionHandlerL().EndUiUpdate();
   235     EndUiUpdate();
   236     }
   236     }
   237 
   237 
   238 // -----------------------------------------------------------
   238 // -----------------------------------------------------------
   239 // CPhoneTwoSinglesAndWaiting::StateTransitionToTwoSinglesL
   239 // CPhoneTwoSinglesAndWaiting::StateTransitionToTwoSinglesL
   240 // -----------------------------------------------------------
   240 // -----------------------------------------------------------
   307 //
   307 //
   308 void CPhoneTwoSinglesAndWaiting::HandleConnectedConferenceL( TInt aCallId )
   308 void CPhoneTwoSinglesAndWaiting::HandleConnectedConferenceL( TInt aCallId )
   309     {
   309     {
   310     __LOGMETHODSTARTEND( EPhoneUIStates, 
   310     __LOGMETHODSTARTEND( EPhoneUIStates, 
   311         "CPhoneTwoSinglesAndWaiting::HandleConnectedConferenceL()");
   311         "CPhoneTwoSinglesAndWaiting::HandleConnectedConferenceL()");
   312     TransitionHandlerL().BeginUiUpdateLC();
   312     BeginUiUpdateLC();
   313     // Update call state
   313     // Update call state
   314     TPhoneCmdParamCallHeaderData callHeaderParam;
   314     TPhoneCmdParamCallHeaderData callHeaderParam;
   315 
   315 
   316     TInt callLabelId;
   316     TInt callLabelId;
   317     TBuf<KPhoneCallHeaderLabelMaxLength> conferenceText( KNullDesC );
   317     TBuf<KPhoneCallHeaderLabelMaxLength> conferenceText( KNullDesC );
   341     SetTouchPaneButtons( EPhoneWaitingCallButtons );
   341     SetTouchPaneButtons( EPhoneWaitingCallButtons );
   342 
   342 
   343     iViewCommandHandle->ExecuteCommandL( EPhoneViewCreateConference, aCallId,
   343     iViewCommandHandle->ExecuteCommandL( EPhoneViewCreateConference, aCallId,
   344         &callHeaderParam );
   344         &callHeaderParam );
   345         
   345         
   346     SetNeedToReturnToForegroundAppStatusL( EFalse );
   346     // Clear the flag
       
   347     TPhoneCmdParamBoolean booleanParam;
       
   348     booleanParam.SetBoolean( EFalse );
       
   349     iViewCommandHandle->ExecuteCommandL( 
       
   350          EPhoneViewSetNeedToReturnToForegroundAppStatus,
       
   351          &booleanParam );
   347         
   352         
   348     TransitionHandlerL().EndUiUpdate();
   353     EndUiUpdate();
       
   354     // Go to Conference And Waiting state
   349     // No need for CBA update
   355     // No need for CBA update
   350     iStateMachine->ChangeState( EPhoneStateConferenceAndWaiting );
   356     iStateMachine->ChangeState( EPhoneStateConferenceAndWaiting );                
   351     }
   357     }
   352     
   358     
   353 // -----------------------------------------------------------
   359 // -----------------------------------------------------------
   354 // CPhoneTwoSinglesAndWaiting::UpdateInCallCbaL
   360 // CPhoneTwoSinglesAndWaiting::UpdateInCallCbaL
   355 // -----------------------------------------------------------
   361 // -----------------------------------------------------------