ipappsrv_plat/comms_event_api/inc/mceineventobserver.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef MMCEINEVENTOBSERVER_H
       
    22 #define MMCEINEVENTOBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMceInEvent;
       
    29 class TMceTransactionDataContainer;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  An interface to be implemented by users of MCE if they wish to receive
       
    35 *  event subscriptions from network.
       
    36 *
       
    37 *  This observer is set using CMceManager::SetInEventObserver function.
       
    38 *
       
    39 *  @lib mceclient.lib
       
    40 */
       
    41 class MMceInEventObserver
       
    42     {
       
    43     public: // New functions
       
    44         
       
    45         /**
       
    46         * New incoming event received.
       
    47 		* @param aEvent, the new event. Ownership is
       
    48 		*		 transferred.
       
    49 	    * @param aContainer, if present, holds details of
       
    50 	    *        transaction causing state change.
       
    51         */
       
    52         virtual void IncomingEvent(
       
    53 					CMceInEvent* aEvent,
       
    54     				TMceTransactionDataContainer* aContainer ) = 0;
       
    55 					
       
    56     };
       
    57 
       
    58 #endif