os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/underflowautostopcontroltestdevice.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 UNDERFLOWAUTOSTOPCONTROLTESTDEVICE_H
17 #define UNDERFLOWAUTOSTOPCONTROLTESTDEVICE_H
19 #include <mmf/server/mmfswcodecwrapper.h>
20 #include <mmf/server/devsoundstandardcustominterfaces.h>
23 class CMMFUnderflowAutoStopControl : public CBase,
24 public MMMFUnderflowAutoStopControl
27 //return Pointer to the CMMFUnderflowAutoStopControl class
28 static CMMFUnderflowAutoStopControl* NewL();
31 ~CMMFUnderflowAutoStopControl();
33 // from MMMFUnderflowAutoStopControl
34 TInt MmuascTurnOffUnderflowAutoStop();
39 CUnderflowAutoStopControlTestDevice
41 Test hw device used by the
42 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
44 class CUnderflowAutoStopControlTestDevice : public CMMFSwCodecWrapper,
45 public MMMFUnderflowAutoStopControl
48 static CMMFHwDevice* NewL();
49 virtual ~CUnderflowAutoStopControlTestDevice();
50 virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
53 virtual TInt Init(THwDeviceInitParams& aDevInfo);
54 virtual TAny* CustomInterface(TUid aInterfaceId);
55 virtual TInt ThisHwBufferFilled(CMMFBuffer& aFillBufferPtr);
56 virtual TInt ThisHwBufferEmptied(CMMFBuffer& aEmptyBufferPtr);
57 virtual TInt SetConfig(TTaskConfig& aConfig);
58 virtual TInt StopAndDeleteCodec();
59 virtual TInt DeleteCodec();
61 // from CMMFSwCodecWrapper
62 virtual CMMFSwCodec& Codec();
64 // MMMFUnderflowAutoStopControl
65 TInt MmuascTurnOffUnderflowAutoStop();
68 CUnderflowAutoStopControlTestDevice();
72 CMMFUnderflowAutoStopControl* iUnderflowAutoStopCtrl;