sl@0: /*
sl@0: * Copyright (c) 2002-2006 Nokia Corporation and/or its subsidiary(-ies). 
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description:  Used for interface to Ilbc decoder.
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: #ifndef CILBCDECODERINTFC_H
sl@0: #define CILBCDECODERINTFC_H
sl@0: 
sl@0: // INCLUDES
sl@0: #include <e32base.h>
sl@0: 
sl@0: // CONSTANTS
sl@0: const TUid KUidIlbcDecoderIntfc = {0x10207ABF};
sl@0: 
sl@0: // MACROS
sl@0: 
sl@0: // DATA TYPES
sl@0: 
sl@0: // FUNCTION PROTOTYPES
sl@0: 
sl@0: // FORWARD DECLARATIONS
sl@0: class CMMFDevSound;
sl@0: class CMdaAudioOutputStream;
sl@0: 
sl@0: // CLASS DECLARATION
sl@0: 
sl@0: /**
sl@0: *  Interface for Ilbc decoder.
sl@0: *  This abstract class just provides the static NewL function for the creation
sl@0: *  of the proxy, and also defines the custom interface to be implemented by the
sl@0: *  proxy and the real custom interface implementation.
sl@0: *
sl@0: *  @lib IlbcDecoderIntfc.lib
sl@0: *  @since S60 3.0
sl@0: */
sl@0: class CIlbcDecoderIntfc : public CBase
sl@0: 	{
sl@0:     // DATA TYPES
sl@0:     public:
sl@0:         enum TDecodeMode
sl@0:             {
sl@0:             E20msFrame,
sl@0:             E30msFrame
sl@0:             };
sl@0: 
sl@0:     public:  // Constructors and destructor
sl@0:         
sl@0:         /**
sl@0:         * Creates the interface.
sl@0:         */
sl@0: 		IMPORT_C static CIlbcDecoderIntfc* 
sl@0: 		                NewL(CMMFDevSound& aDevSound);
sl@0: 
sl@0:         /**
sl@0:         * Creates the interface.
sl@0:         */
sl@0: 		IMPORT_C static CIlbcDecoderIntfc* 
sl@0: 		                NewL(CMdaAudioOutputStream& aUtility);
sl@0:         
sl@0:     public: // New functions
sl@0: 		IMPORT_C virtual TInt SetDecoderMode(TDecodeMode aDecodeMode) = 0;
sl@0: 		IMPORT_C virtual TInt SetCng(TBool aCng) = 0;
sl@0: 		IMPORT_C virtual TInt GetCng(TBool& aCng) = 0;
sl@0: 
sl@0:     public: // Functions from base classes
sl@0:     protected:  // New functions
sl@0:     protected:  // Functions from base classes
sl@0:     private:
sl@0: 
sl@0:     public:     // Data
sl@0:     protected:  // Data
sl@0:     private:    // Data
sl@0:     public:     // Friend classes
sl@0:     protected:  // Friend classes
sl@0:     private:    // Friend classes
sl@0: 
sl@0: 	};
sl@0: 
sl@0: #endif      // CILBCDECODERINTFC_H
sl@0:             
sl@0: // End of File