multimediacommsengine/mmcefloorctrlengine/inc/fcmessageobserver.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 __MFCMESSAGEOBSERVER_H__
       
    22 #define __MFCMESSAGEOBSERVER_H__
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 
       
    27 // FORWARD CLASS DECLARATIONS
       
    28 class MFCPlugIn;
       
    29 
       
    30 // CLASS DECLARATION
       
    31 /**
       
    32 * MFCConnectionNotifier defines an interface for observing receiving data 
       
    33 * and erro notify from the predefined plugin
       
    34 * @lib FCPlugInEngine.lib
       
    35 */
       
    36 class MFCMessageObserver
       
    37 	{
       
    38 	protected: // Constructors and destructors
       
    39 		/**
       
    40         * Virtual destructor. Prohibit deletion through this interface.        
       
    41         */
       
    42 		virtual ~MFCMessageObserver() {};
       
    43 	
       
    44 	public:
       
    45 	    /**
       
    46 	    * Called by specific plugIn
       
    47 	    * @param aData, Receving Data
       
    48 	    * @param aPlugIn, The FC plug-in giving this notification.
       
    49         */
       
    50 	    virtual void ReceivedData( HBufC8* aData, MFCPlugIn* aPlugin ) = 0;
       
    51 
       
    52 	    /**
       
    53 	    * Called by FC PlugIn
       
    54 	    * @param aErrCode KErrNone if connection succesfully, otherwise
       
    55 	    *		 one of the system-wide error codes.
       
    56 	    * @param aPlugIn, The FC plug-in giving this notification.
       
    57 	    */
       
    58 	    virtual void ErrorNotify( TInt aErrCode, MFCPlugIn* aPlugIn ) = 0;
       
    59 	};
       
    60 
       
    61 #endif // end of __MFCMessageObserver_H__
       
    62 
       
    63 // End of File