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 OpenFileByHandle0034.h sl@0: */ sl@0: sl@0: #ifndef OPENFILEBYHANDLE0034_H__ sl@0: #define OPENFILEBYHANDLE0034_H__ sl@0: sl@0: #include "TSI_MMFVCLNT.h" sl@0: sl@0: /** sl@0: * Play Video file sl@0: * sl@0: * @class CTestMmfVclntOpenFile0034 sl@0: * sl@0: */ sl@0: class CTestMmfVclntOpenFile0034 : public CTestMmfVclntStep, public MVideoPlayerUtilityObserver sl@0: { sl@0: public: sl@0: static CTestMmfVclntOpenFile0034* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay); sl@0: static CTestMmfVclntOpenFile0034* NewLC(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay); sl@0: virtual TVerdict DoTestStepL(); sl@0: // MVideoPlayerUtilityObserver sl@0: virtual void MvpuoOpenComplete(TInt aError); sl@0: virtual void MvpuoPrepareComplete(TInt aError); sl@0: virtual void MvpuoFrameReady(CFbsBitmap& aFrame, TInt aError); sl@0: virtual void MvpuoPlayComplete(TInt aError); sl@0: virtual void MvpuoEvent(const TMMFEvent& aEvent); sl@0: protected: sl@0: CTestMmfVclntOpenFile0034(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aPlay); 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 iPlay; // Does this test require playing the video sl@0: TTimeIntervalMicroSeconds iDuration; // Stores duration of video sl@0: }; sl@0: sl@0: #endif // OPENFILEBYHANDLE0034_H__