os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/ilbcdecoderconfigtestdevice.h
Update contrib.
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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef ILBCDECODERCONFIGTESTDEVICE_H
17 #define ILBCDECODERCONFIGTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFIlbcDecoderConfig : public CBase,
24 public MIlbcDecoderIntfc
27 //return Pointer to the CMMFIlbcDecoderConfig class
28 static CMMFIlbcDecoderConfig* NewL();
31 ~CMMFIlbcDecoderConfig();
33 // from mirror MIlbcDecoderIntfc method.
34 TInt SetDecoderMode(TDecodeMode aDecodeMode);
35 TInt SetComfortNoiseGeneration(TBool aCng);
36 TInt GetComfortNoiseGeneration(TBool& aCng);
39 TDecodeMode iDecodeMode;
45 CIlbcDecoderConfigTestDevice
47 Test hw device used by the
48 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
50 class CIlbcDecoderConfigTestDevice : public CMMFSwCodecWrapper,
51 public MIlbcDecoderIntfc
54 static CMMFHwDevice* NewL();
55 virtual ~CIlbcDecoderConfigTestDevice();
56 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
59 virtual TInt Init(THwDeviceInitParams& aDevInfo);
60 virtual TAny* CustomInterface(TUid aInterfaceId);
61 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
62 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
63 virtual TInt SetConfig(TTaskConfig& aConfig);
64 virtual TInt StopAndDeleteCodec();
65 virtual TInt DeleteCodec();
67 // from CMMFSwCodecWrapper
68 virtual CMMFSwCodec& Codec();
70 // from mirror MIlbcDecoderIntfc method.
71 TInt SetDecoderMode(TDecodeMode aDecodeMode);
72 TInt SetComfortNoiseGeneration(TBool aCng);
73 TInt GetComfortNoiseGeneration(TBool& aCng);
76 CIlbcDecoderConfigTestDevice();
80 CMMFIlbcDecoderConfig* iIlbcDecoderConfig;