omxilcomp/omxilaudioemulator/pcmrenderer/src/omxilpcmrendererconfigmanager.h
changeset 1 e0d606d6e3b1
parent 0 58be5850fb6c
child 4 46e224560be8
equal deleted inserted replaced
0:58be5850fb6c 1:e0d606d6e3b1
     1 /*
       
     2 * Copyright (c) 2008-2009 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  @file
       
    21  @internalComponent
       
    22 */
       
    23 
       
    24 #ifndef OMXILPCMRENDERERCONFIGMANAGER_H
       
    25 #define OMXILPCMRENDERERCONFIGMANAGER_H
       
    26 
       
    27 #include <openmax/il/common/omxilconfigmanager.h>
       
    28 
       
    29 // class forwarding
       
    30 class COmxILPcmRendererProcessingFunction;
       
    31 
       
    32 /**
       
    33    This class is a placeholder for those PCM Renderer parameters and configs that
       
    34    apply to the component as a whole and not to a specific port in the
       
    35    component.
       
    36  */
       
    37 NONSHARABLE_CLASS(COmxILPcmRendererConfigManager) : public COmxILConfigManager
       
    38 	{
       
    39 
       
    40 public:
       
    41 
       
    42 	static COmxILPcmRendererConfigManager* NewL(
       
    43 		COmxILPcmRendererProcessingFunction& aProcessingFunction,
       
    44 		const TDesC8& aComponentName,
       
    45 		const OMX_VERSIONTYPE& aComponentVersion,
       
    46 		const RPointerArray<TDesC8>& aComponentRoleList);
       
    47 
       
    48 	~COmxILPcmRendererConfigManager();
       
    49 
       
    50 	OMX_ERRORTYPE GetConfig(
       
    51 		OMX_INDEXTYPE aConfigIndex,
       
    52 		TAny* apComponentConfigStructure) const;
       
    53 
       
    54 	OMX_ERRORTYPE SetConfig(
       
    55 		OMX_INDEXTYPE aConfigIndex,
       
    56 		const TAny* apComponentConfigStructure);
       
    57 
       
    58 	OMX_ERRORTYPE GetExtensionIndex(
       
    59 		OMX_STRING aParameterName,
       
    60 		OMX_INDEXTYPE* apIndexType) const;
       
    61 
       
    62 protected:
       
    63 
       
    64 	COmxILPcmRendererConfigManager(COmxILPcmRendererProcessingFunction& aProcessingFunction);
       
    65 
       
    66 	void ConstructL(const TDesC8& aComponentName,
       
    67 					const OMX_VERSIONTYPE& aComponentVersion,
       
    68 					const RPointerArray<TDesC8>& aComponentRoleList);
       
    69 
       
    70 private:
       
    71 	COmxILPcmRendererProcessingFunction& iProcessingFunction;
       
    72 	};
       
    73 
       
    74 #endif // OMXILPCMRENDERERCONFIGMANAGER_H