mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/3gpaudioplaycontroller/Src/3GPAudioPlayControllerDecoderBuilder.h
changeset 0 71ca22bcf22a
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2 * Copyright (c) 2004 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:  This is a builder class for decoder object.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef C3GPAUDIOPLAYCONTROLLERDECODERBUILDER_H
       
    21 #define C3GPAUDIOPLAYCONTROLLERDECODERBUILDER_H
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32base.h>
       
    25 #include <mmfutilities.h>
       
    26 
       
    27 // CONSTANTS
       
    28 const TInt K3GPDecoder		= 1;
       
    29 const TInt K3GPConverter	= 2;
       
    30 
       
    31 // FORWARD DECLARATIONS
       
    32 class CAdvancedAudioDecoder;
       
    33 
       
    34 // CLASS DECLARATION
       
    35 
       
    36 /**
       
    37 *  This class implements converter builder.
       
    38 *
       
    39 *  @lib 3GPAudioPlayControllerPlugin.lib
       
    40 *  @since 3.0
       
    41 */
       
    42 class C3GPAudioPlayControllerDecoderBuilder : public CBase
       
    43 	{
       
    44     public:  // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static C3GPAudioPlayControllerDecoderBuilder* NewL();
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~C3GPAudioPlayControllerDecoderBuilder();
       
    55 
       
    56     public: // New functions
       
    57 
       
    58 		/**
       
    59 		* Creates a decoder of specified type.
       
    60 		* @param none
       
    61 		* @return pointer to CAdvancedAudioDecoder object
       
    62 		*/
       
    63 		CAdvancedAudioDecoder* BuildDecoderL( TInt aType, const TFourCC& aSrcDatatype );
       
    64 
       
    65     private:
       
    66 
       
    67         /**
       
    68         * C++ default constructor.
       
    69         */
       
    70         C3GPAudioPlayControllerDecoderBuilder();
       
    71 
       
    72         /**
       
    73         * By default Symbian 2nd phase constructor is private.
       
    74         */
       
    75         void ConstructL();
       
    76 
       
    77     private:	// Data
       
    78 
       
    79 	};
       
    80 
       
    81 #endif      // C3GPAUDIOPLAYCONTROLLERDECODERBUILDER_H
       
    82 
       
    83 // End of File