os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/underflowautostopcontroltestdevice.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef UNDERFLOWAUTOSTOPCONTROLTESTDEVICE_H
    17 #define UNDERFLOWAUTOSTOPCONTROLTESTDEVICE_H
    18 
    19 #include <mmf/server/mmfswcodecwrapper.h>
    20 #include <mmf/server/devsoundstandardcustominterfaces.h>
    21 
    22 
    23 class CMMFUnderflowAutoStopControl : public CBase,
    24 									 public MMMFUnderflowAutoStopControl
    25 	{
    26 public:
    27 	//return Pointer to the CMMFUnderflowAutoStopControl class
    28 	static CMMFUnderflowAutoStopControl* NewL();
    29 
    30 	//Destructor
    31 	~CMMFUnderflowAutoStopControl();
    32 
    33 	// from MMMFUnderflowAutoStopControl
    34 	TInt MmuascTurnOffUnderflowAutoStop();
    35 	};
    36 
    37 
    38 /*
    39 CUnderflowAutoStopControlTestDevice
    40 
    41 Test hw device used by the
    42 TSU_MMF_DEVSOUND_CIU_SUITE unit test harness.
    43 */
    44 class CUnderflowAutoStopControlTestDevice : public CMMFSwCodecWrapper,
    45 											public MMMFUnderflowAutoStopControl
    46 	{
    47 public:
    48 	static CMMFHwDevice* NewL();
    49 	virtual ~CUnderflowAutoStopControlTestDevice();
    50 	virtual TInt Start(TDeviceFunc aFuncCmd, TDeviceFlow aFlowCmd);
    51 	virtual TInt Stop();
    52 	virtual TInt Pause();
    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();
    60 
    61 	// from CMMFSwCodecWrapper
    62 	virtual CMMFSwCodec& Codec();
    63 
    64 	// MMMFUnderflowAutoStopControl
    65 	TInt MmuascTurnOffUnderflowAutoStop();
    66 
    67 private:
    68 	CUnderflowAutoStopControlTestDevice();
    69 	void ConstructL();
    70 
    71 private:
    72 	CMMFUnderflowAutoStopControl* iUnderflowAutoStopCtrl;
    73 	};
    74 
    75 #endif