phoneapp/phoneuicontrol/inc/mphoneengineevents.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 *     All possible event types from Phone Engine.
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef MPHONEENGINEEVENTS_H
       
    21 #define MPHONEENGINEEVENTS_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include <e32def.h>
       
    25 #include <pevirtualengine.h>
       
    26 
       
    27 // CLASS DECLARATION
       
    28 
       
    29 /**
       
    30 *  Handle all possible messages from Phone Engine
       
    31 */
       
    32 class MPhoneEngineEvents
       
    33     {
       
    34     public:
       
    35         
       
    36         /**
       
    37         * Destructor.
       
    38         */
       
    39         virtual ~MPhoneEngineEvents() {};
       
    40 
       
    41         /**
       
    42         * A message handling function for Phone Engine messages
       
    43         * @param aCallId: the call id of the call
       
    44         */
       
    45         virtual void HandlePhoneEngineMessageL(
       
    46             const TInt aMessage, 
       
    47             TInt aCallId ) = 0; 
       
    48            
       
    49         /**
       
    50         * Handles errors codes sent by Phone Engine.
       
    51         * @param aErrorInfo 
       
    52         */
       
    53         virtual void HandleErrorL( 
       
    54             const TPEErrorInfo& aErrorInfo ) = 0;
       
    55     };
       
    56 
       
    57 #endif      // MPHONEENGINEEVENTS_H   
       
    58             
       
    59 // End of File