--- a/phoneapp/phoneuistates/src/cphonesingleandalerting.cpp Mon Oct 04 16:06:10 2010 +0300
+++ b/phoneapp/phoneuistates/src/cphonesingleandalerting.cpp Fri Oct 15 12:58:46 2010 +0300
@@ -26,13 +26,13 @@
#include "tphonecmdparaminteger.h"
#include "tphonecmdparamcallheaderdata.h"
#include "tphonecmdparamglobalnote.h"
-#include "tphonecmdparamcallstatedata.h"
#include "phoneviewcommanddefinitions.h"
#include "phoneui.hrh"
#include "cphonemainresourceresolver.h"
#include "phonerssbase.h"
#include "phonestatedefinitionsgsm.h"
#include "phonelogger.h"
+#include "phonecallutil.h"
// ================= MEMBER FUNCTIONS =======================
@@ -173,12 +173,8 @@
{
__LOGMETHODSTARTEND( EPhoneUIStates,
"CPhoneSingleAndAlerting::HandleConnectedL()");
- TPhoneCmdParamCallStateData callStateData;
- callStateData.SetCallState( EPEStateConnecting );
- iViewCommandHandle->HandleCommandL(
- EPhoneViewGetCallIdByState, &callStateData );
-
- if( callStateData.CallId() == aCallId )
+ TInt callId = PhoneCallUtil::CallIdByState( EPEStateConnecting );
+ if( callId == aCallId )
{
UpdateCallHeaderAndUiCommandsL( aCallId );
iStateMachine->ChangeState( EPhoneStateTwoSingles );