diff -r cfea66083b62 -r baacf668fe89 phoneapp/phoneuistates/src/cphoneconferenceandsingleandwaiting.cpp --- a/phoneapp/phoneuistates/src/cphoneconferenceandsingleandwaiting.cpp Mon Oct 04 16:06:10 2010 +0300 +++ b/phoneapp/phoneuistates/src/cphoneconferenceandsingleandwaiting.cpp Fri Oct 15 12:58:46 2010 +0300 @@ -27,13 +27,13 @@ #include "phonelogger.h" #include "tphonecmdparamboolean.h" #include "tphonecmdparaminteger.h" -#include "tphonecmdparamcallstatedata.h" #include "cphonemainresourceresolver.h" #include "phonerssbase.h" #include "tphonecmdparamglobalnote.h" #include "phoneui.hrh" #include "mphonestorage.h" #include "cphonecenrepproxy.h" +#include "phonecallutil.h" #include // ================= MEMBER FUNCTIONS ======================= @@ -151,11 +151,8 @@ } else { - TPhoneCmdParamCallStateData callStateData; - callStateData.SetCallState( EPEStateRinging ); - iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, - &callStateData ); - if( callStateData.CallId() >= 0 ) + TInt callId = PhoneCallUtil::CallIdByState( EPEStateRinging ); + if( callId >= 0 ) { // We have Conference and Waiting calls left MakeStateTransitionToConferenceAndWaitingL( aCallId ); @@ -266,14 +263,11 @@ { case ENoActiveCalls: // Go to incoming state { - TPhoneCmdParamCallStateData callStateData; - callStateData.SetCallState( EPEStateRinging ); - iViewCommandHandle->HandleCommandL( EPhoneViewGetCallIdByState, - &callStateData ); - if ( callStateData.CallId() != KErrNotFound ) + TInt callId = PhoneCallUtil::CallIdByState( EPEStateRinging ); + if ( callId != KErrNotFound ) { - UpdateCallHeaderAndUiCommandsL( callStateData.CallId() ); - SetRingingTonePlaybackL( callStateData.CallId() ); + SetRingingTonePlaybackL( callId ); + UpdateCallHeaderAndUiCommandsL( callId ); SetBackButtonActive(EFalse); iStateMachine->ChangeState( EPhoneStateIncoming ); }