diff -r 000000000000 -r 71ca22bcf22a mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/awbaudioplaycontroller/Src/AWBAudioPlayControllerDecoderBuilder.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/awbaudioplaycontroller/Src/AWBAudioPlayControllerDecoderBuilder.h Tue Feb 02 01:08:46 2010 +0200 @@ -0,0 +1,82 @@ +/* +* Copyright (c) 2004 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: This is a builder class for decoder object. +* +*/ + + + +#ifndef CAWBAUDIOPLAYCONTROLLERDECODERBUILDER_H +#define CAWBAUDIOPLAYCONTROLLERDECODERBUILDER_H + +// INCLUDES +#include + +// CONSTANTS +const TInt KAWBDecoder = 1; +const TInt KAWBConverter = 2; + +// FORWARD DECLARATIONS +class CAdvancedAudioDecoder; + +// CLASS DECLARATION + +/** +* This class implements converter builder. +* +* @lib AACAudioPlayControllerPlugin.lib +* @since 3.0 +*/ +class CAWBAudioPlayControllerDecoderBuilder : public CBase + { + public: // Constructors and destructor + + /** + * Two-phased constructor. + */ + static CAWBAudioPlayControllerDecoderBuilder* NewL(); + + /** + * Destructor. + */ + virtual ~CAWBAudioPlayControllerDecoderBuilder(); + + public: // New functions + + /** + * Creates a decoder of specified type. + * @param none + * @return pointer to CAdvancedAudioDecoder object + */ + CAdvancedAudioDecoder* BuildDecoderL( TInt aType ); + + private: + + /** + * C++ default constructor. + */ + CAWBAudioPlayControllerDecoderBuilder(); + + /** + * By default Symbian 2nd phase constructor is private. + */ + void ConstructL(); + + private: // Data + + }; + +#endif // CAWBAUDIOPLAYCONTROLLERDECODERBUILDER_H + +// End of File