diff -r c84cf270c54f -r 92ab7f8d0eab phoneapp/phoneuistates/src/cphoneconferenceandwaiting.cpp --- a/phoneapp/phoneuistates/src/cphoneconferenceandwaiting.cpp Tue Feb 02 00:10:04 2010 +0200 +++ b/phoneapp/phoneuistates/src/cphoneconferenceandwaiting.cpp Fri Mar 19 09:28:42 2010 +0200 @@ -20,7 +20,7 @@ #include #include #include -#include +#include #include "cphoneconferenceandwaiting.h" #include "mphonestatemachine.h" #include "phoneviewcommanddefinitions.h" @@ -130,6 +130,25 @@ HandleWentOneToOneL( aCallId ); break; +// <-- QT PHONE START --> + case MEngineMonitor::EPEMessageHeldConference: + case MEngineMonitor::EPEMessageConnectedConference: + { + TPhoneCmdParamInteger callIdParam; + iViewCommandHandle->ExecuteCommandL( + EPhoneViewGetExpandedBubbleCallId, &callIdParam ); + + CPhoneConference::HandlePhoneEngineMessageL( aMessage, + aCallId ); + + if ( KConferenceCallId == callIdParam.Integer() ) + { + iViewCommandHandle->ExecuteCommand(EPhoneSetConferenceExpanded); + } + } + break; +// <-- QT PHONE END --> + default: CPhoneConference::HandlePhoneEngineMessageL( aMessage, aCallId ); @@ -176,7 +195,7 @@ // void CPhoneConferenceAndWaiting::HandleKeyEventL( const TKeyEvent& aKeyEvent, - TEventCode aEventCode ) + TEventCode /*aEventCode*/ ) { if( EKeyDeviceF == aKeyEvent.iCode ) { @@ -295,8 +314,9 @@ if ( NeedToSendToBackgroundL() ) { // Return phone to the background if send to background is needed. - iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); - +// <-- QT PHONE START --> + //iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); +// <-- QT PHONE END --> iViewCommandHandle->ExecuteCommandL( EPhoneViewSetControlAndVisibility ); UpdateCbaL( EPhoneCallHandlingInCallCBA ); @@ -312,11 +332,13 @@ UpdateCbaL( EPhoneCallHandlingNewCallSwapCBA ); // If numberentry is not open just check NeedToSendToBackgroundL and // sendbackround if needed. - if ( NeedToSendToBackgroundL() ) +// <-- QT PHONE START --> + /*if ( NeedToSendToBackgroundL() ) { // Return phone to the background if send to background is needed. iViewCommandHandle->ExecuteCommandL( EPhoneViewSendToBackground ); - } + }*/ +// <-- QT PHONE END --> } SetTouchPaneButtons( EPhoneConferenceAndSingleButtons ); SetTouchPaneButtonDisabled( EPhoneInCallCmdPrivate ); @@ -625,4 +647,43 @@ EndUiUpdate(); } +// <-- QT PHONE START --> +// ----------------------------------------------------------- +// CPhoneConferenceAndWaiting::HandleCommandL +// ----------------------------------------------------------- +// +TBool CPhoneConferenceAndWaiting::HandleCommandL( TInt aCommand ) + { + __LOGMETHODSTARTEND( EPhoneUIStates, + "CPhoneConferenceAndWaiting::HandleCommandL() "); + TBool commandStatus = ETrue; + + switch( aCommand ) + { + case EPhoneCmdUpdateUiControls: + UpdateUiControlsL(); + break; + + default: + commandStatus = CPhoneConference::HandleCommandL( aCommand ); + break; + } + + return commandStatus; + } + +// ----------------------------------------------------------- +// CPhoneConferenceAndWaiting::UpdateUiControlsL +// ----------------------------------------------------------- +// +void CPhoneConferenceAndWaiting::UpdateUiControlsL() + { + __LOGMETHODSTARTEND( EPhoneUIStates, "CPhoneConferenceAndWaiting::UpdateUiControlsL( ) "); + iViewCommandHandle->ExecuteCommand(EPhoneSetConferenceExpanded); + UpdateCbaL( EPhoneCallHandlingInCallCBA ); + } + +// <-- QT PHONE END --> + + // End of File