phoneapp/phoneuistates/src/cphoneconferenceandcallsetup.cpp
changeset 78 baacf668fe89
parent 76 cfea66083b62
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
    19 // INCLUDES
    19 // INCLUDES
    20 #include "cphoneconferenceandcallsetup.h"
    20 #include "cphoneconferenceandcallsetup.h"
    21 #include "mphonestatemachine.h"
    21 #include "mphonestatemachine.h"
    22 #include "phoneviewcommanddefinitions.h"
    22 #include "phoneviewcommanddefinitions.h"
    23 #include "tphonecmdparamcallheaderdata.h"
    23 #include "tphonecmdparamcallheaderdata.h"
    24 #include "tphonecmdparamcallstatedata.h"
       
    25 #include "phonestatedefinitionsgsm.h"
    24 #include "phonestatedefinitionsgsm.h"
    26 #include "phonelogger.h"
    25 #include "phonelogger.h"
    27 #include "tphonecmdparamboolean.h"
    26 #include "tphonecmdparamboolean.h"
    28 #include "tphonecmdparaminteger.h"
    27 #include "tphonecmdparaminteger.h"
    29 #include "cphonemainresourceresolver.h"
    28 #include "cphonemainresourceresolver.h"
    30 #include "phonerssbase.h"
    29 #include "phonerssbase.h"
    31 #include "tphonecmdparamglobalnote.h"
    30 #include "tphonecmdparamglobalnote.h"
    32 #include "phoneui.hrh"
    31 #include "phoneui.hrh"
       
    32 #include "phonecallutil.h"
    33 
    33 
    34 // ================= MEMBER FUNCTIONS =======================
    34 // ================= MEMBER FUNCTIONS =======================
    35 
    35 
    36 // C++ default constructor can NOT contain any code, that
    36 // C++ default constructor can NOT contain any code, that
    37 // might leave.
    37 // might leave.
   273 void CPhoneConferenceAndCallSetup::HandleConferenceIdleL()
   273 void CPhoneConferenceAndCallSetup::HandleConferenceIdleL()
   274     {
   274     {
   275     __LOGMETHODSTARTEND( EPhoneUIStates, 
   275     __LOGMETHODSTARTEND( EPhoneUIStates, 
   276         "CPhoneConferenceAndCallSetup::HandleConferenceIdleL()");
   276         "CPhoneConferenceAndCallSetup::HandleConferenceIdleL()");
   277     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveConferenceBubble );
   277     iViewCommandHandle->ExecuteCommandL( EPhoneViewRemoveConferenceBubble );
   278     
   278 
   279     TPhoneCmdParamCallStateData callStateData;
   279     TInt callId = PhoneCallUtil::CallIdByState( EPEStateConnecting );
   280     callStateData.SetCallState( EPEStateConnecting );
   280     if ( callId > KErrNotFound )
   281     iViewCommandHandle->HandleCommandL(
       
   282         EPhoneViewGetCallIdByState, &callStateData );
       
   283 
       
   284     if ( callStateData.CallId() > KErrNotFound )
       
   285         {
   281         {
   286         // Go to alerting and single state
   282         // Go to alerting and single state
   287         UpdateUiCommands();
   283         UpdateUiCommands();
   288         iStateMachine->ChangeState( EPhoneStateAlertingInSingle );     
   284         iStateMachine->ChangeState( EPhoneStateAlertingInSingle );     
   289         }
   285         }