421 } |
421 } |
422 |
422 |
423 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
423 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveGlobalNote ); |
424 |
424 |
425 // Re-enable global notes |
425 // Re-enable global notes |
426 TPhoneCmdParamBoolean globalNotifierParam; |
426 EnableGlobalNotifiersL(); |
427 globalNotifierParam.SetBoolean( EFalse ); |
427 |
428 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetGlobalNotifiersDisabled, |
428 BeginUiUpdateLC(); |
429 &globalNotifierParam ); |
|
430 |
|
431 TransitionHandlerL().BeginUiUpdateLC(); |
|
432 |
429 |
433 // Update bubble content |
430 // Update bubble content |
434 UpdateRemoteInfoDataL( aCallId ); |
431 UpdateRemoteInfoDataL( aCallId ); |
435 |
432 |
436 // Update bubble type |
433 // Update bubble type |
437 TPhoneCmdParamCallHeaderData callHeaderParam; |
434 TPhoneCmdParamCallHeaderData callHeaderParam; |
438 callHeaderParam.SetCallState( EPEStateConnecting ); |
435 callHeaderParam.SetCallState( EPEStateConnecting ); |
439 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, |
436 iViewCommandHandle->ExecuteCommandL( EPhoneViewUpdateBubble, aCallId, |
440 &callHeaderParam ); |
437 &callHeaderParam ); |
441 |
438 |
442 TransitionHandlerL().EndUiUpdate(); |
439 EndUiUpdate(); |
443 |
440 |
444 // Set call waiting cba |
441 // Set call waiting cba |
445 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
442 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
446 |
443 |
447 // Stop key Capture when the phone is connecting |
444 // Stop key Capture when the phone is connecting |
505 // Reset Hold flag to view |
502 // Reset Hold flag to view |
506 TPhoneCmdParamBoolean holdFlag; |
503 TPhoneCmdParamBoolean holdFlag; |
507 holdFlag.SetBoolean( EFalse ); |
504 holdFlag.SetBoolean( EFalse ); |
508 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
505 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
509 |
506 |
510 TransitionHandlerL().BeginUiUpdateLC(); |
507 BeginUiUpdateLC(); |
511 |
508 |
512 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
509 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
513 SetToolbarDimming( ETrue ); |
510 SetToolbarDimming( ETrue ); |
514 SetToolbarButtonLoudspeakerEnabled(); |
511 SetToolbarButtonLoudspeakerEnabled(); |
515 |
512 |
516 TransitionHandlerL().EndUiUpdate(); |
513 EndUiUpdate(); |
|
514 |
|
515 // Go to Call Setup And Waiting state |
517 // No need to update cbas |
516 // No need to update cbas |
518 iStateMachine->ChangeState( EPhoneStateCallSetupAndWaiting ); |
517 iStateMachine->ChangeState( EPhoneStateCallSetupAndWaiting ); |
519 } |
518 } |
520 |
519 |
521 // ----------------------------------------------------------- |
520 // ----------------------------------------------------------- |
544 // Set Hold flag to view |
543 // Set Hold flag to view |
545 TPhoneCmdParamBoolean holdFlag; |
544 TPhoneCmdParamBoolean holdFlag; |
546 holdFlag.SetBoolean( ETrue ); |
545 holdFlag.SetBoolean( ETrue ); |
547 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
546 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
548 |
547 |
549 TransitionHandlerL().BeginUiUpdateLC(); |
548 BeginUiUpdateLC(); |
550 |
549 |
551 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
550 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
552 |
551 |
553 TransitionHandlerL().EndUiUpdate(); |
552 EndUiUpdate(); |
|
553 // Go to Single And Waiting state |
554 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
554 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
555 iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
555 iStateMachine->ChangeState( EPhoneStateWaitingInSingle ); |
556 } |
556 } |
557 |
557 |
558 // ----------------------------------------------------------- |
558 // ----------------------------------------------------------- |
577 // Set Hold flag to view EFalse that dtmf menu item not delete |
577 // Set Hold flag to view EFalse that dtmf menu item not delete |
578 TPhoneCmdParamBoolean holdFlag; |
578 TPhoneCmdParamBoolean holdFlag; |
579 holdFlag.SetBoolean( EFalse ); |
579 holdFlag.SetBoolean( EFalse ); |
580 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
580 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetHoldFlag, &holdFlag ); |
581 |
581 |
582 TransitionHandlerL().BeginUiUpdateLC(); |
582 BeginUiUpdateLC(); |
583 |
583 |
584 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
584 SetTouchPaneButtons( EPhoneCallSetupButtons ); |
585 |
585 |
586 TransitionHandlerL().EndUiUpdate(); |
586 EndUiUpdate(); |
587 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
587 // Go to Single And Alerting state |
|
588 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
588 iStateMachine->ChangeState( EPhoneStateAlertingInSingle ); |
589 iStateMachine->ChangeState( EPhoneStateAlertingInSingle ); |
589 } |
590 } |
590 |
591 |
591 // ----------------------------------------------------------- |
592 // ----------------------------------------------------------- |
592 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL |
593 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL |
593 // ----------------------------------------------------------- |
594 // ----------------------------------------------------------- |
594 // |
595 // |
595 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt /*aCallId*/ ) |
596 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL( TInt aCallId ) |
596 { |
597 { |
597 __LOGMETHODSTARTEND( EPhoneUIStates, |
598 __LOGMETHODSTARTEND( EPhoneUIStates, |
598 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()"); |
599 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesL()"); |
599 TransitionHandlerL().BeginUiUpdateLC(); |
600 |
|
601 BeginUiUpdateLC(); |
600 |
602 |
601 SetTouchPaneButtonEnabled( EPhoneCallComingCmdAnswer ); |
603 SetTouchPaneButtonEnabled( EPhoneCallComingCmdAnswer ); |
602 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
604 SetTouchPaneButtons( EPhoneTwoSinglesButtons ); |
603 |
605 |
604 TransitionHandlerL().EndUiUpdate(); |
606 EndUiUpdate(); |
605 |
607 |
|
608 // Go to two singles state |
606 UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA ); |
609 UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA ); |
607 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
610 iStateMachine->ChangeState( EPhoneStateTwoSingles ); |
608 } |
611 } |
609 |
612 |
610 // ----------------------------------------------------------- |
613 // ----------------------------------------------------------- |
611 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL |
614 // CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL |
612 // ----------------------------------------------------------- |
615 // ----------------------------------------------------------- |
613 // |
616 // |
614 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt /*aCallId*/ ) |
617 void CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL( TInt aCallId ) |
615 { |
618 { |
616 __LOGMETHODSTARTEND( EPhoneUIStates, |
619 __LOGMETHODSTARTEND( EPhoneUIStates, |
617 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()"); |
620 "CPhoneSingleAndCallSetupAndWaiting::StateChangeToTwoSinglesAndWaitingL()"); |
618 |
621 |
619 TransitionHandlerL().BeginUiUpdateLC(); |
622 BeginUiUpdateLC(); |
620 |
623 |
621 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
624 SetTouchPaneButtons( EPhoneWaitingCallButtons ); |
622 SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); |
625 SetTouchPaneButtonDisabled( EPhoneCallComingCmdAnswer ); |
623 |
626 |
624 TransitionHandlerL().EndUiUpdate(); |
627 EndUiUpdate(); |
625 |
628 |
626 // Go to two singles state and waiting |
629 // Go to two singles state and waiting |
627 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
630 UpdateCbaL( EPhoneCallHandlingCallWaitingCBA ); |
628 iStateMachine->ChangeState( EPhoneStateTwoSinglesAndWaiting ); |
631 iStateMachine->ChangeState( EPhoneStateTwoSinglesAndWaiting ); |
629 } |
632 } |