equal
deleted
inserted
replaced
85 CPhoneState::BaseConstructL(); |
85 CPhoneState::BaseConstructL(); |
86 |
86 |
87 // Enable the volume display |
87 // Enable the volume display |
88 iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNaviPaneAudioVolume ); |
88 iViewCommandHandle->ExecuteCommandL( EPhoneViewShowNaviPaneAudioVolume ); |
89 HandleAudioOutputChangedL(); |
89 HandleAudioOutputChangedL(); |
90 |
90 |
91 TPhoneCmdParamCallStateData callStateData; |
91 CPhonePubSubProxy::Instance()->ChangePropertyValue( |
92 callStateData.SetCallState( EPEStateDialing ); |
92 KPSUidScreenSaver, |
93 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, &callStateData ); |
93 KScreenSaverAllowScreenSaver, |
94 if ( callStateData.CallId() > KErrNotFound && IsVideoCall( callStateData.CallId() ) ) |
94 EPhoneScreensaverNotAllowed ); |
95 { |
|
96 CPhonePubSubProxy::Instance()->ChangePropertyValue( |
|
97 KPSUidScreenSaver, |
|
98 KScreenSaverAllowScreenSaver, |
|
99 EPhoneScreensaverNotAllowed ); |
|
100 } |
|
101 |
|
102 if ( IsKeyLockOn() ) |
|
103 { |
|
104 iViewCommandHandle->ExecuteCommandL( EPhoneViewDisableKeyLockWithoutNote ); |
|
105 } |
|
106 |
|
107 } |
95 } |
108 |
96 |
109 // ----------------------------------------------------------- |
97 // ----------------------------------------------------------- |
110 // CPhoneStateCallSetup::NewL() |
98 // CPhoneStateCallSetup::NewL() |
111 // Constructor |
99 // Constructor |
574 // CPhoneStateCallSetup::HandleConnectedL |
562 // CPhoneStateCallSetup::HandleConnectedL |
575 // ----------------------------------------------------------- |
563 // ----------------------------------------------------------- |
576 // |
564 // |
577 void CPhoneStateCallSetup::HandleConnectedL( TInt aCallId ) |
565 void CPhoneStateCallSetup::HandleConnectedL( TInt aCallId ) |
578 { |
566 { |
579 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleConnectedL()"); |
567 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleConnectedL()"); |
|
568 |
|
569 // Close menu bar, if it is displayed |
580 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
570 iViewCommandHandle->ExecuteCommandL( EPhoneViewMenuBarClose ); |
581 |
571 |
582 TransitionHandlerL().BeginUiUpdateLC(); |
572 BeginUiUpdateLC(); |
583 |
573 |
584 // Remove the number entry if it isn't DTMF dialer |
574 // Remove the number entry if it isn't DTMF dialer |
585 if ( !iOnScreenDialer || !IsNumberEntryVisibleL() || !IsDTMFEditorVisibleL() ) |
575 if ( !iOnScreenDialer || !IsNumberEntryVisibleL() || !IsDTMFEditorVisibleL() ) |
586 { |
576 { |
587 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
577 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveNumberEntry ); |
599 // Update touch buttons |
589 // Update touch buttons |
600 SetTouchPaneButtons( EPhoneIncallButtons ); |
590 SetTouchPaneButtons( EPhoneIncallButtons ); |
601 |
591 |
602 SetToolbarDimming( EFalse ); |
592 SetToolbarDimming( EFalse ); |
603 |
593 |
604 TransitionHandlerL().EndUiUpdate(); |
594 EndUiUpdate(); |
605 |
595 |
|
596 // Go to single state |
606 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
597 UpdateCbaL( EPhoneCallHandlingInCallCBA ); |
|
598 |
607 iStateMachine->ChangeState( EPhoneStateSingle ); |
599 iStateMachine->ChangeState( EPhoneStateSingle ); |
608 } |
600 } |
609 |
601 |
610 // ----------------------------------------------------------- |
602 // ----------------------------------------------------------- |
611 // CPhoneStateCallSetup::HandleIdleL |
603 // CPhoneStateCallSetup::HandleIdleL |
615 { |
607 { |
616 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleIdleL()"); |
608 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleIdleL()"); |
617 if ( !NeedToReturnToForegroundAppL() && |
609 if ( !NeedToReturnToForegroundAppL() && |
618 IsNumberEntryUsedL() ) |
610 IsNumberEntryUsedL() ) |
619 { |
611 { |
620 TransitionHandlerL(). |
612 BeginTransEffectLC( ECallUiDisappear ); |
621 BeginTransEffectLC( EPhoneTransEffectCallUiDisappear ); |
|
622 } |
613 } |
623 else |
614 else |
624 { |
615 { |
625 TransitionHandlerL(). |
616 BeginTransEffectLC( ENumberEntryOpen ); |
626 BeginTransEffectLC( EPhoneTransEffectPhoneUiOpen ); |
617 } |
627 } |
618 BeginUiUpdateLC(); |
628 TransitionHandlerL().BeginUiUpdateLC(); |
|
629 |
619 |
630 // Disable the volume display |
620 // Disable the volume display |
631 iViewCommandHandle->ExecuteCommandL( EPhoneViewHideNaviPaneAudioVolume ); |
621 iViewCommandHandle->ExecuteCommandL( EPhoneViewHideNaviPaneAudioVolume ); |
632 |
622 |
633 // Remove call |
623 // Remove call |
636 |
626 |
637 CheckIfRestoreNEContentAfterDtmfDialer(); |
627 CheckIfRestoreNEContentAfterDtmfDialer(); |
638 |
628 |
639 if ( IsNumberEntryUsedL() ) |
629 if ( IsNumberEntryUsedL() ) |
640 { |
630 { |
641 if ( NeedToReturnToForegroundAppL() ) |
631 // Show the number entry if it exists |
642 { |
632 SetNumberEntryVisibilityL(ETrue); |
643 // Return phone to the background if send to background is needed. |
|
644 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); |
|
645 |
|
646 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility ); |
|
647 |
|
648 // Set Number Entry CBA |
|
649 iCbaManager->SetCbaL( EPhoneNumberAcqCBA ); |
|
650 } |
|
651 else |
|
652 { |
|
653 // Show the number entry if it exists |
|
654 SetNumberEntryVisibilityL(ETrue); |
|
655 } |
|
656 } |
633 } |
657 else if ( NeedToReturnToForegroundAppL() ) |
634 else if ( NeedToReturnToForegroundAppL() ) |
658 { |
635 { |
659 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif1"); |
636 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif1"); |
660 // Continue displaying current app but set up the |
637 // Continue displaying current app but set up the |
666 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif2"); |
643 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif2"); |
667 // Display idle screen |
644 // Display idle screen |
668 DisplayIdleScreenL(); |
645 DisplayIdleScreenL(); |
669 } |
646 } |
670 |
647 |
671 TransitionHandlerL().EndUiUpdateAndEffect(); |
648 EndUiUpdate(); |
|
649 EndTransEffect(); |
672 // No need update cba |
650 // No need update cba |
673 iStateMachine->ChangeState( EPhoneStateIdle ); |
651 iStateMachine->ChangeState( EPhoneStateIdle ); |
674 } |
652 } |
675 |
653 |
676 // ----------------------------------------------------------------------------- |
654 // ----------------------------------------------------------------------------- |
682 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleRemoteTerminatedL( ) "); |
660 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleRemoteTerminatedL( ) "); |
683 |
661 |
684 // Remove call header |
662 // Remove call header |
685 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
663 iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveCallHeader, aCallId ); |
686 |
664 |
687 TPhoneCmdParamBoolean globalNotifierParam; |
665 EnableGlobalNotifiersL(); |
688 globalNotifierParam.SetBoolean( EFalse ); |
|
689 iViewCommandHandle->ExecuteCommandL( |
|
690 EPhoneViewSetGlobalNotifiersDisabled, &globalNotifierParam ); |
|
691 |
666 |
692 // Video call not possible note is shown by |
667 // Video call not possible note is shown by |
693 // CPhoneErrorMessagesHandler::ShowErrorSpecificNoteL method, |
668 // CPhoneErrorMessagesHandler::ShowErrorSpecificNoteL method, |
694 // if error ECCPErrorCCResourceNotAvailable occured. |
669 // if error ECCPErrorCCResourceNotAvailable occured. |
695 } |
670 } |