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 CPhonePubSubProxy::Instance()->ChangePropertyValue( |
91 TPhoneCmdParamCallStateData callStateData; |
92 KPSUidScreenSaver, |
92 callStateData.SetCallState( EPEStateDialing ); |
93 KScreenSaverAllowScreenSaver, |
93 iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, &callStateData ); |
94 EPhoneScreensaverNotAllowed ); |
94 if ( callStateData.CallId() > KErrNotFound && IsVideoCall( callStateData.CallId() ) ) |
|
95 { |
|
96 CPhonePubSubProxy::Instance()->ChangePropertyValue( |
|
97 KPSUidScreenSaver, |
|
98 KScreenSaverAllowScreenSaver, |
|
99 EPhoneScreensaverNotAllowed ); |
|
100 } |
95 } |
101 } |
96 |
102 |
97 // ----------------------------------------------------------- |
103 // ----------------------------------------------------------- |
98 // CPhoneStateCallSetup::NewL() |
104 // CPhoneStateCallSetup::NewL() |
99 // Constructor |
105 // Constructor |
243 const TKeyEvent& /*aKeyEvent*/, |
249 const TKeyEvent& /*aKeyEvent*/, |
244 TEventCode /*aEventCode*/) |
250 TEventCode /*aEventCode*/) |
245 { |
251 { |
246 __LOGMETHODSTARTEND(EPhoneControl, |
252 __LOGMETHODSTARTEND(EPhoneControl, |
247 "CPhoneStateCallSetup::HandleCreateNumberEntryL()" ); |
253 "CPhoneStateCallSetup::HandleCreateNumberEntryL()" ); |
248 |
254 } |
249 } |
|
250 |
|
251 |
255 |
252 // ----------------------------------------------------------- |
256 // ----------------------------------------------------------- |
253 // CPhoneStateCallSetup::UpdateInCallCbaL |
257 // CPhoneStateCallSetup::UpdateInCallCbaL |
254 // ----------------------------------------------------------- |
258 // ----------------------------------------------------------- |
255 // |
259 // |
606 // ----------------------------------------------------------- |
610 // ----------------------------------------------------------- |
607 // |
611 // |
608 void CPhoneStateCallSetup::HandleIdleL( TInt aCallId ) |
612 void CPhoneStateCallSetup::HandleIdleL( TInt aCallId ) |
609 { |
613 { |
610 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleIdleL()"); |
614 __LOGMETHODSTARTEND(EPhoneControl, "CPhoneStateCallSetup::HandleIdleL()"); |
611 |
615 if ( !NeedToReturnToForegroundAppL() && |
612 BeginUiUpdateLC (); |
616 IsNumberEntryUsedL() ) |
|
617 { |
|
618 BeginTransEffectLC( ECallUiDisappear ); |
|
619 } |
|
620 else |
|
621 { |
|
622 BeginTransEffectLC( ENumberEntryOpen ); |
|
623 } |
|
624 BeginUiUpdateLC(); |
613 |
625 |
614 // Disable the volume display |
626 // Disable the volume display |
615 iViewCommandHandle->ExecuteCommandL( EPhoneViewHideNaviPaneAudioVolume ); |
627 iViewCommandHandle->ExecuteCommandL( EPhoneViewHideNaviPaneAudioVolume ); |
616 |
628 |
617 // Remove call |
629 // Remove call |
620 |
632 |
621 CheckIfRestoreNEContentAfterDtmfDialer(); |
633 CheckIfRestoreNEContentAfterDtmfDialer(); |
622 |
634 |
623 if ( IsNumberEntryUsedL() ) |
635 if ( IsNumberEntryUsedL() ) |
624 { |
636 { |
625 // Show the number entry if it exists |
637 if ( NeedToReturnToForegroundAppL() ) |
626 SetNumberEntryVisibilityL(ETrue); |
638 { |
|
639 // Return phone to the background if send to background is needed. |
|
640 iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); |
|
641 |
|
642 iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility ); |
|
643 |
|
644 // Set Number Entry CBA |
|
645 iCbaManager->SetCbaL( EPhoneNumberAcqCBA ); |
|
646 } |
|
647 else |
|
648 { |
|
649 // Show the number entry if it exists |
|
650 SetNumberEntryVisibilityL(ETrue); |
|
651 } |
627 } |
652 } |
628 else if ( NeedToReturnToForegroundAppL() ) |
653 else if ( NeedToReturnToForegroundAppL() ) |
629 { |
654 { |
630 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif1"); |
655 __PHONELOG( EBasic,EPhoneControl,"CPhoneStateCallSetup::elseif1"); |
631 // Continue displaying current app but set up the |
656 // Continue displaying current app but set up the |
638 // Display idle screen |
663 // Display idle screen |
639 DisplayIdleScreenL(); |
664 DisplayIdleScreenL(); |
640 } |
665 } |
641 |
666 |
642 EndUiUpdate(); |
667 EndUiUpdate(); |
643 |
668 EndTransEffect(); |
644 // Go to idle state |
|
645 // No need update cba |
669 // No need update cba |
646 iStateMachine->ChangeState( EPhoneStateIdle ); |
670 iStateMachine->ChangeState( EPhoneStateIdle ); |
647 } |
671 } |
648 |
672 |
649 // ----------------------------------------------------------------------------- |
673 // ----------------------------------------------------------------------------- |