sl@0: // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // This file contains Test step implementations for sl@0: // playing audio via the audio controller. sl@0: // sl@0: sl@0: #if (!defined __TESTSTEP_PLAY_H__) sl@0: #define __TESTSTEP_PLAY_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: #include "TS_MMF_ACTRL_TestStep.h" sl@0: sl@0: /** sl@0: * sl@0: * CTestStepActrlPlay sl@0: * This class provides a test step to play a audio clip sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: * sl@0: */ sl@0: class CTestStepActrlPlay : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepActrlPlay(); sl@0: ~CTestStepActrlPlay(); sl@0: virtual TVerdict DoTestStepL( void ); sl@0: }; sl@0: sl@0: /** sl@0: * sl@0: * CTestStepPlayT sl@0: * This class provides a test step to play an audio clip t times sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: * sl@0: */ sl@0: class CTestStepPlayT : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepPlayT( TInt aTimesToPlay ); sl@0: virtual ~CTestStepPlayT(); sl@0: virtual enum TVerdict DoTestStepL(); sl@0: private: sl@0: TInt iTimesToPlay ; sl@0: }; sl@0: sl@0: /** sl@0: * sl@0: * CTestStepPause sl@0: * This class provides a test step to play an audio clip t times sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: * sl@0: */ sl@0: class CTestStepPause : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepPause(); sl@0: virtual ~CTestStepPause(); sl@0: virtual enum TVerdict DoTestStepL(); sl@0: }; sl@0: sl@0: /** sl@0: * sl@0: * CTestStepStop sl@0: * This class provides a test step to test the stop function sl@0: * on the Controller sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: * sl@0: */ sl@0: class CTestStepStop : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepStop(); sl@0: virtual ~CTestStepStop(); sl@0: virtual enum TVerdict DoTestStepL(); sl@0: }; sl@0: sl@0: sl@0: // forward reference sl@0: class TConvParameters; sl@0: sl@0: /** sl@0: * sl@0: * CTestStepConvertFormat sl@0: * This class provides a test step to test format conversion sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: * sl@0: */ sl@0: class CTestStepConvertFormat : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepConvertFormat( TUint aTestIndex ); sl@0: virtual ~CTestStepConvertFormat(); sl@0: virtual enum TVerdict DoTestStepL(); sl@0: TVerdict DoConvertStepL( void ); sl@0: virtual TVerdict DoTestStepPreambleL(void); sl@0: virtual TVerdict DoTestStepPostambleL(void); sl@0: void SetRefFileNameL( const TDesC& aPathNameAndExtn ); sl@0: TMMFFileConfig& RefFileName(); sl@0: TVerdict CompareFilesL(const TDesC& aFile1,const TDesC& aFile2); sl@0: private: sl@0: const TConvParameters *iTestParameters; sl@0: sl@0: TMMFFileConfig iFileConfigRef; // audio reference file sl@0: }; sl@0: sl@0: /** sl@0: * sl@0: * CTestStepRampVolume sl@0: * This class tests the volume Ramp sl@0: * sl@0: * @lib "TSU_MMF_ACTRL_01.lib" sl@0: * sl@0: */ sl@0: class CTestStepRampVolume : public CTestStepActrl sl@0: { sl@0: public: sl@0: CTestStepRampVolume(); sl@0: virtual ~CTestStepRampVolume(); sl@0: virtual enum TVerdict DoTestStepL(); sl@0: virtual TVerdict DoTestStepPreambleL(void); sl@0: virtual TVerdict DoTestStepPostambleL(void); sl@0: }; sl@0: sl@0: sl@0: #endif //(__TESTSTEP_PLAY_H__)