sl@0: sl@0: // Copyright (c) 2004-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: // Header file: Basic tests. sl@0: // sl@0: // sl@0: sl@0: /** sl@0: @file OpenFileByHandle1512.h sl@0: */ sl@0: sl@0: #ifndef OPENFILEBYHANDLE1512_H__ sl@0: #define OPENFILEBYHANDLE1512_H__ sl@0: sl@0: #include "TSI_MMFVCLNT.h" sl@0: sl@0: /** sl@0: * Play Video file sl@0: * sl@0: * @class CTestMmfVclntOpenFile1512 sl@0: * sl@0: */ sl@0: class CTestMmfVclntOpenFile1512 : public CTestMmfVclntStep, public MVideoRecorderUtilityObserver sl@0: { sl@0: public: sl@0: static CTestMmfVclntOpenFile1512* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec); sl@0: static CTestMmfVclntOpenFile1512* NewLC(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec); sl@0: virtual TVerdict DoTestStepL(); sl@0: // MVideoRecorderUtilityObserver sl@0: virtual void MvruoOpenComplete(TInt aError); sl@0: virtual void MvruoRecordComplete(TInt aError); sl@0: virtual void MvruoPrepareComplete(TInt aError); sl@0: virtual void MvruoEvent(const TMMFEvent& aEvent); sl@0: sl@0: protected: sl@0: CTestMmfVclntOpenFile1512(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec); sl@0: TVerdict PerformTestStepL(); sl@0: sl@0: TBuf iSectName; // Section name for retrieving filename sl@0: TBuf iKeyName; // Key name for retrieving filename sl@0: TInt iError; sl@0: const TBool iRec; // Does this test require recording of a video sl@0: TTimeIntervalMicroSeconds iDuration;// Stores duration of video sl@0: }; sl@0: sl@0: #endif // OPENFILEBYHANDLE1512_H__