phoneapp/phoneuicontrol/src/cphoneenginehandler.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 31 Mar 2010 21:30:06 +0300
branchRCL_3
changeset 17 38529f706030
parent 0 5f000ab63145
child 61 41a7f70b3818
permissions -rw-r--r--
Revision: 201011 Kit: 201013

/*
* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description: CPhoneEngineHandler implementation.
*
*/


// INCLUDE FILES
#include "cphoneenginehandler.h"
#include "phonelogger.h"

// ================= MEMBER FUNCTIONS =======================

CPhoneEngineHandler::CPhoneEngineHandler( 
    MPhoneStateMachine* aStateMachine ) :
    iStateMachine( aStateMachine )
    {
    }

// -----------------------------------------------------------
// CPhoneEngineHandler::NewL()
// Constructor
// (other items were commented in a header).
// -----------------------------------------------------------
//
CPhoneEngineHandler* CPhoneEngineHandler::NewL( 
    MPhoneStateMachine* aStateMachine )
    {
    CPhoneEngineHandler* self = 
        new (ELeave) CPhoneEngineHandler( aStateMachine );
    
    return self;
    }

// -----------------------------------------------------------
// CPhoneEngineHandler::DoHandleMessageL
// -----------------------------------------------------------
void CPhoneEngineHandler::DoHandleMessageL( 
    const TInt aMessage, 
    TInt aCallId )
    {
    __LOGMETHODSTARTEND( EPhoneControl, "CPhoneEngineHandler::DoHandleMessageL( ) " );
    __PHONELOG2( EBasic, EPhoneControl,
        "CPhoneEngineHandler::DoHandleMessageL - Message received (aMessage=%d aCallId=%d)",
            aMessage, aCallId );
    iStateMachine->HandlePhoneEngineMessageL( aMessage, aCallId );
    }

//  End of File