os/mm/mm_plat/ilbc_decoder_interface_api/inc/IlbcDecoderIntfc.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mm_plat/ilbc_decoder_interface_api/inc/IlbcDecoderIntfc.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,94 @@
     1.4 +/*
     1.5 +* Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:  Used for interface to Ilbc decoder.
    1.18 +*
    1.19 +*/
    1.20 +
    1.21 +
    1.22 +#ifndef CILBCDECODERINTFC_H
    1.23 +#define CILBCDECODERINTFC_H
    1.24 +
    1.25 +// INCLUDES
    1.26 +#include <e32base.h>
    1.27 +
    1.28 +// CONSTANTS
    1.29 +const TUid KUidIlbcDecoderIntfc = {0x10207ABF};
    1.30 +
    1.31 +// MACROS
    1.32 +
    1.33 +// DATA TYPES
    1.34 +
    1.35 +// FUNCTION PROTOTYPES
    1.36 +
    1.37 +// FORWARD DECLARATIONS
    1.38 +class CMMFDevSound;
    1.39 +class CMdaAudioOutputStream;
    1.40 +
    1.41 +// CLASS DECLARATION
    1.42 +
    1.43 +/**
    1.44 +*  Interface for Ilbc decoder.
    1.45 +*  This abstract class just provides the static NewL function for the creation
    1.46 +*  of the proxy, and also defines the custom interface to be implemented by the
    1.47 +*  proxy and the real custom interface implementation.
    1.48 +*
    1.49 +*  @lib IlbcDecoderIntfc.lib
    1.50 +*  @since S60 3.0
    1.51 +*/
    1.52 +class CIlbcDecoderIntfc : public CBase
    1.53 +	{
    1.54 +    // DATA TYPES
    1.55 +    public:
    1.56 +        enum TDecodeMode
    1.57 +            {
    1.58 +            E20msFrame,
    1.59 +            E30msFrame
    1.60 +            };
    1.61 +
    1.62 +    public:  // Constructors and destructor
    1.63 +        
    1.64 +        /**
    1.65 +        * Creates the interface.
    1.66 +        */
    1.67 +		IMPORT_C static CIlbcDecoderIntfc* 
    1.68 +		                NewL(CMMFDevSound& aDevSound);
    1.69 +
    1.70 +        /**
    1.71 +        * Creates the interface.
    1.72 +        */
    1.73 +		IMPORT_C static CIlbcDecoderIntfc* 
    1.74 +		                NewL(CMdaAudioOutputStream& aUtility);
    1.75 +        
    1.76 +    public: // New functions
    1.77 +		IMPORT_C virtual TInt SetDecoderMode(TDecodeMode aDecodeMode) = 0;
    1.78 +		IMPORT_C virtual TInt SetCng(TBool aCng) = 0;
    1.79 +		IMPORT_C virtual TInt GetCng(TBool& aCng) = 0;
    1.80 +
    1.81 +    public: // Functions from base classes
    1.82 +    protected:  // New functions
    1.83 +    protected:  // Functions from base classes
    1.84 +    private:
    1.85 +
    1.86 +    public:     // Data
    1.87 +    protected:  // Data
    1.88 +    private:    // Data
    1.89 +    public:     // Friend classes
    1.90 +    protected:  // Friend classes
    1.91 +    private:    // Friend classes
    1.92 +
    1.93 +	};
    1.94 +
    1.95 +#endif      // CILBCDECODERINTFC_H
    1.96 +            
    1.97 +// End of File