multimediacommscontroller/mmccshared/inc/mccdatasink.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     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 MCCDATASINK_H
       
    22 #define MCCDATASINK_H
       
    23 
       
    24 //  INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <mmf/server/mmfdatasink.h>
       
    27 #include "mccsourcesink.h"
       
    28 #include "mccrateadaptationobserver.h"
       
    29 
       
    30 // CONSTANTS
       
    31 
       
    32 // MACROS
       
    33 
       
    34 // DATA TYPES
       
    35 
       
    36 // FUNCTION PROTOTYPES
       
    37 
       
    38 // FORWARD DECLARATIONS
       
    39 
       
    40 // CLASS DECLARATION
       
    41 
       
    42 /**
       
    43 *
       
    44 */
       
    45 class CMccDataSink : 
       
    46     public CBase, 
       
    47     public MDataSink, 
       
    48     public MMccSourceSink,
       
    49     public MMccRateAdaptationObserver 
       
    50     {
       
    51     public:
       
    52     
       
    53         inline virtual ~CMccDataSink();
       
    54         
       
    55     public: // From MDataSink
       
    56     
       
    57     public: // From MMccSourceSink
       
    58     
       
    59         inline virtual TInt AddUser( MAsyncEventHandler* aUser );
       
    60         
       
    61         inline virtual void RemoveUser( MAsyncEventHandler* aUser );
       
    62         
       
    63         inline virtual void SetCurrentUser( MAsyncEventHandler* aUser );
       
    64     
       
    65         inline virtual void GetParameterL( TUint32 aParam, TDes8& aVal );
       
    66         
       
    67         inline virtual void SetParameterL( TUint32 aParam, const TDesC8& aVal );
       
    68         
       
    69         inline virtual void UpdateL( const TDesC8& aVal );
       
    70         
       
    71         inline void SetResources( MMccResources* aResources );
       
    72     
       
    73     public: // From MMccRateAdaptationObserver
       
    74     
       
    75         inline virtual TInt RateAdaptationRequest( const TMccEvent& aInputData, 
       
    76                                                    TMccEvent& aOutputData );
       
    77                                             
       
    78         inline virtual TInt RateAdaptationAlert( const TMccEvent& aAdaptationData,
       
    79                                                  TAlertType aAlertType );
       
    80 
       
    81     
       
    82     protected:
       
    83     
       
    84         inline CMccDataSink( TUid aType );
       
    85    
       
    86     protected:
       
    87         
       
    88         MMccResources* iMccResources;
       
    89         
       
    90     };
       
    91     
       
    92 #include "mccdatasink.inl"
       
    93 
       
    94 #endif      // MCCDATASINK_H   
       
    95             
       
    96 // End of File