os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/gsmconfigtestdevice.h
First public contribution.
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 GSMCONFIGTESTDEVICE_H
17 #define GSMCONFIGTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFGsmConfig : public CBase,
27 //return Pointer to the CMMFGsmConfig class
28 static CMMFGsmConfig* NewL();
34 TInt SetConversionFormat(TMMFGsmConversionFormat aConvFormat);
35 TInt ConversionFormat(TMMFGsmConversionFormat& aConvFormat) const;
38 TMMFGsmConversionFormat iConvFormat;
45 Test hw device used by the
46 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
48 class CGsmConfigTestDevice : public CMMFSwCodecWrapper,
52 static CMMFHwDevice* NewL();
53 virtual ~CGsmConfigTestDevice();
54 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
57 virtual TInt Init(THwDeviceInitParams& aDevInfo);
58 virtual TAny* CustomInterface(TUid aInterfaceId);
59 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
60 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
61 virtual TInt SetConfig(TTaskConfig& aConfig);
62 virtual TInt StopAndDeleteCodec();
63 virtual TInt DeleteCodec();
65 // from CMMFSwCodecWrapper
66 virtual CMMFSwCodec& Codec();
69 TInt SetConversionFormat(MMMFGsmConfig::TMMFGsmConversionFormat aConvFormat);
70 TInt ConversionFormat(MMMFGsmConfig::TMMFGsmConversionFormat& aConvFormat) const;
73 CGsmConfigTestDevice();
77 CMMFGsmConfig* iGsmConfig;