devsound/devsoundrefplugin/tsrc/CIPlugins/src/aacdecoderconfigtestdevice.h
changeset 0 79dd3e2336a0
equal deleted inserted replaced
-1:000000000000 0:79dd3e2336a0
       
     1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef AACDECODERCONFIGTESTDEVICE_H
       
    17 #define AACDECODERCONFIGTESTDEVICE_H
       
    18 
       
    19 #include <mmf/server/mmfswcodecwrapper.h>
       
    20 #include <mmf/server/devsoundstandardcustominterfaces.h>
       
    21 
       
    22 
       
    23 class CMMFAacDecoderConfig : public CBase,
       
    24 							 public MAacDecoderConfig
       
    25 	{
       
    26 public:
       
    27 	//return Pointer to the CMMFAacDecoderConfig class
       
    28 	static CMMFAacDecoderConfig* NewL();
       
    29 
       
    30 	//Destructor
       
    31 	~CMMFAacDecoderConfig();
       
    32 
       
    33 	// from MAacDecoderConfig
       
    34 	TInt SetAudioConfig(TAudioConfig& aAudioConfig);
       
    35 	TInt GetSupportedAudioConfigs(RArray<TAudioConfig>& aSupportedAudioConfigs);
       
    36 	};
       
    37 
       
    38 
       
    39 /*
       
    40 CAacDecoderConfigTestDevice
       
    41 
       
    42 Test hw device used by the
       
    43 SU_MMF_DEVSOUND_CIU_SUITE unit test harness.
       
    44 */
       
    45 class CAacDecoderConfigTestDevice : public CMMFSwCodecWrapper,
       
    46 									public MAacDecoderConfig
       
    47 	{
       
    48 public:
       
    49 	static CMMFHwDevice* NewL();
       
    50 	virtual ~CAacDecoderConfigTestDevice();
       
    51 	virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
       
    52 	virtual TInt Stop();
       
    53 	virtual TInt Pause();
       
    54 	virtual TInt Init(THwDeviceInitParams& aDevInfo);
       
    55 	virtual TAny* CustomInterface(TUid aInterfaceId);
       
    56 	virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
       
    57 	virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
       
    58 	virtual TInt SetConfig(TTaskConfig& aConfig);
       
    59 	virtual TInt StopAndDeleteCodec();
       
    60 	virtual TInt DeleteCodec();
       
    61 
       
    62 	// from CMMFSwCodecWrapper
       
    63 	virtual CMMFSwCodec& Codec();
       
    64 
       
    65 	// MAacDecoderConfig
       
    66 	TInt SetAudioConfig(TAudioConfig& aAudioConfig);
       
    67 	TInt GetSupportedAudioConfigs(RArray<MAacDecoderConfig::TAudioConfig>& aSupportedAudioConfigs);
       
    68 
       
    69 private:
       
    70 	CAacDecoderConfigTestDevice();
       
    71 	void ConstructL();
       
    72 
       
    73 private:
       
    74 	CMMFAacDecoderConfig* iAacDecoderConfig;
       
    75 	};
       
    76 
       
    77 #endif