ipappsrv_plat/multimedia_comms_api/inc/mcedatasinkobserver.h
branchrcs
changeset 49 64c62431ac08
equal deleted inserted replaced
44:fb024d5e35fa 49:64c62431ac08
       
     1 /*
       
     2 * Copyright (c) 2006 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 MMCEDATASINKOBSERVER_H
       
    22 #define MMCEDATASINKOBSERVER_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32std.h>
       
    26 
       
    27 // FORWARD DECLARATIONS
       
    28 class CMceMediaStream;
       
    29 class CMceMediaSink;
       
    30 
       
    31 // CLASS DECLARATION
       
    32 
       
    33 /**
       
    34 *  An interface to be implemented by users of MCE if they wish to receive
       
    35 *  data from CMceDataSink.
       
    36 *
       
    37 *  This observer is set using CMceManager::SetDataSinkObserver function.
       
    38 *
       
    39 *  @lib mceclient.lib
       
    40 */
       
    41 class MMceDataSinkObserver
       
    42 	{
       
    43 	public: 
       
    44 
       
    45 	    /**
       
    46 	    * Data received fro stream.
       
    47 	    * @param aStream, the stream that uses the sink.
       
    48 	    * @param aSink, the sink that received data.
       
    49 	    * @param aData, received data.
       
    50 	    */
       
    51 	    virtual void DataReceived (
       
    52 	                    CMceMediaStream& aStream,
       
    53 	                    CMceMediaSink& aSink,
       
    54 	                    const TDesC8& aData ) = 0;
       
    55 
       
    56 	};
       
    57 
       
    58 #endif