phoneapp/phoneuicontrol/src/cphoneuicontroller.cpp
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 27 2f8f8080a020
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    29 #include "mphoneviewcommandhandle.h"
    29 #include "mphoneviewcommandhandle.h"
    30 #include "phonestatedefinitions.h"
    30 #include "phonestatedefinitions.h"
    31 #include "phonelogger.h"
    31 #include "phonelogger.h"
    32 #include "phoneconstants.h"
    32 #include "phoneconstants.h"
    33 #include "phoneui.pan"
    33 #include "phoneui.pan"
    34 #include "cphonekeyeventforwarder.h"
       
    35 #include "cphonecenrepproxy.h"
    34 #include "cphonecenrepproxy.h"
    36 #include "cphonemediatorfactory.h"
    35 #include "cphonemediatorfactory.h"
    37 #include "tphonecmdparamnumberentryobserver.h"
    36 #include "tphonecmdparamnumberentryobserver.h"
    38 
    37 
    39 // ================= MEMBER FUNCTIONS =======================
    38 // ================= MEMBER FUNCTIONS =======================
   151     {
   150     {
   152     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneUIController::~CPhoneUIController()");
   151     __LOGMETHODSTARTEND(EPhoneControl, "CPhoneUIController::~CPhoneUIController()");
   153     delete iRemoteControlHandler;
   152     delete iRemoteControlHandler;
   154     delete iSystemEventHandler;
   153     delete iSystemEventHandler;
   155     delete iEngineHandler;
   154     delete iEngineHandler;
   156     delete iKeyEventForwarder;
       
   157     delete iStateHandle;
   155     delete iStateHandle;
   158     }
   156     }
   159 
   157 
   160 // ---------------------------------------------------------
   158 // ---------------------------------------------------------
   161 // CPhoneUIController::HandleMessage( TInt aMessage, TInt aCallId ) 
   159 // CPhoneUIController::HandleMessage( TInt aMessage, TInt aCallId ) 
   335 // ---------------------------------------------------------
   333 // ---------------------------------------------------------
   336 //
   334 //
   337 EXPORT_C TBool CPhoneUIController::HandleCommandL( TInt aCommand )
   335 EXPORT_C TBool CPhoneUIController::HandleCommandL( TInt aCommand )
   338     {
   336     {
   339     __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) );
   337     __ASSERT_DEBUG( iStateMachine->State(), Panic( EPhoneCtrlInvariant ) );
   340 
       
   341     // Send key up message to engine so that we wouldn't accidentally play
       
   342     // any DTMF tone.
       
   343     iStateMachine->SendPhoneEngineMessage( MPEPhoneModel::EPEMessageEndDTMF );
       
   344 
   338 
   345     return iStateMachine->State()->HandleCommandL( aCommand );
   339     return iStateMachine->State()->HandleCommandL( aCommand );
   346     }
   340     }
   347 
   341 
   348 // ---------------------------------------------------------
   342 // ---------------------------------------------------------