phoneapp/phoneuicontrol/src/cphoneenginehandler.cpp
changeset 0 5f000ab63145
child 6 38529f706030
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description: CPhoneEngineHandler implementation.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // INCLUDE FILES
       
    20 #include "cphoneenginehandler.h"
       
    21 #include "phonelogger.h"
       
    22 
       
    23 // ================= MEMBER FUNCTIONS =======================
       
    24 
       
    25 CPhoneEngineHandler::CPhoneEngineHandler( 
       
    26     MPhoneStateMachine* aStateMachine ) :
       
    27     iStateMachine( aStateMachine )
       
    28     {
       
    29     }
       
    30 
       
    31 // -----------------------------------------------------------
       
    32 // CPhoneEngineHandler::NewL()
       
    33 // Constructor
       
    34 // (other items were commented in a header).
       
    35 // -----------------------------------------------------------
       
    36 //
       
    37 CPhoneEngineHandler* CPhoneEngineHandler::NewL( 
       
    38     MPhoneStateMachine* aStateMachine )
       
    39     {
       
    40     CPhoneEngineHandler* self = 
       
    41         new (ELeave) CPhoneEngineHandler( aStateMachine );
       
    42     
       
    43     return self;
       
    44     }
       
    45 
       
    46 // -----------------------------------------------------------
       
    47 // CPhoneEngineHandler::DoHandleMessageL
       
    48 // -----------------------------------------------------------
       
    49 void CPhoneEngineHandler::DoHandleMessageL( 
       
    50     const TInt aMessage, 
       
    51     TInt aCallId )
       
    52     {
       
    53     __LOGMETHODSTARTEND( EPhoneControl, "CPhoneEngineHandler::DoHandleMessageL( ) " );
       
    54     __PHONELOG2( EBasic, EPhoneControl,
       
    55         "CPhoneEngineHandler::DoHandleMessageL - Message received (aMessage=%d aCallId=%d)",
       
    56             aMessage, aCallId );
       
    57     iStateMachine->State()->HandlePhoneEngineMessageL( aMessage, aCallId );
       
    58     }
       
    59 
       
    60 //  End of File