phoneapp/phoneuicontrol/inc/cphoneenginehandler.h
changeset 0 5f000ab63145
equal deleted inserted replaced
-1:000000000000 0:5f000ab63145
       
     1 /*
       
     2 * Copyright (c) 2005 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: 
       
    15 *     Class for handling messages from Engine and from all inputs to the
       
    16 *     states.
       
    17 *
       
    18 */
       
    19 
       
    20 
       
    21 #ifndef __CPHONEENGINEHANDLER_H
       
    22 #define __CPHONEENGINEHANDLER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <pevirtualengine.h>
       
    27 
       
    28 #include "mphonestatemachine.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class MPhoneStateMachine;
       
    32 
       
    33 // CLASS DECLARATION
       
    34 
       
    35 /**
       
    36 * Class for handling messages from Engine and from all inputs to the states
       
    37 */
       
    38 class CPhoneEngineHandler : public CBase
       
    39     {
       
    40     public: 
       
    41 
       
    42         /**
       
    43         * Two-phased constructor
       
    44         * @param aStateMachine: reference to Phone UI state machine
       
    45         * @return an instance of class CPhoneEngineHandler
       
    46         */
       
    47         static CPhoneEngineHandler* NewL(
       
    48             MPhoneStateMachine* aStateMachine );
       
    49 
       
    50         /**
       
    51         * Destructor.
       
    52         */
       
    53         virtual ~CPhoneEngineHandler(){};
       
    54         
       
    55         /**
       
    56         * Handles message from Phone Engine.
       
    57         * @param aMessage Message from Phone Engine
       
    58         * @param aCallId Call id the message concerns
       
    59         */
       
    60         void DoHandleMessageL( 
       
    61             const TInt aMessage, 
       
    62             TInt aCallId );       
       
    63 
       
    64     private:
       
    65 
       
    66         /**
       
    67         * By default EPOC constructor is private.
       
    68         */
       
    69         CPhoneEngineHandler( MPhoneStateMachine* aStateMachine );
       
    70 
       
    71     private: // Data   
       
    72 
       
    73         /**
       
    74         * Handle to State machine
       
    75         */
       
    76         MPhoneStateMachine* iStateMachine;
       
    77 
       
    78     };
       
    79 
       
    80 #endif      // __CPHONEENGINEHANDLER_H
       
    81             
       
    82 // End of File