mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/inc/OpenFileByHandle1513.h
changeset 24 2672ba96448e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mmlibs/mmfw/tsrc/mmfintegrationtest/vclnt/inc/OpenFileByHandle1513.h	Fri Jun 11 15:13:33 2010 +0300
@@ -0,0 +1,57 @@
+
+// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
+// All rights reserved.
+// This component and the accompanying materials are made available
+// under the terms of "Eclipse Public License v1.0"
+// which accompanies this distribution, and is available
+// at the URL "http://www.eclipse.org/legal/epl-v10.html".
+//
+// Initial Contributors:
+// Nokia Corporation - initial contribution.
+//
+// Contributors:
+//
+// Description:
+// Header file: Basic  tests.
+// 
+//
+
+/**
+ @file OpenFileByHandle1513.h
+*/
+
+#ifndef OPENFILEBYHANDLE1513_H__
+#define OPENFILEBYHANDLE1513_H__
+
+#include "TSI_MMFVCLNT.h"
+
+/**
+ * Play Video file
+ * 
+ * @class CTestMmfVclntOpenFile1513
+ *
+ */
+class CTestMmfVclntOpenFile1513 : public CTestMmfVclntStep, public MVideoRecorderUtilityObserver
+	{
+public:
+	static CTestMmfVclntOpenFile1513* NewL(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
+	static CTestMmfVclntOpenFile1513* NewLC(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
+	virtual TVerdict DoTestStepL();
+	// MVideoRecorderUtilityObserver
+	virtual void MvruoOpenComplete(TInt aError);  
+	virtual void MvruoRecordComplete(TInt aError);
+	virtual void MvruoPrepareComplete(TInt aError);  
+	virtual void MvruoEvent(const TMMFEvent& aEvent);
+
+protected:
+	CTestMmfVclntOpenFile1513(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, const TBool aRec);
+	TVerdict PerformTestStepL();
+
+	TBuf<KNameBufSize> iSectName;		// Section name for retrieving filename
+	TBuf<KNameBufSize> iKeyName;		// Key name for retrieving filename
+	TInt iError;
+	const TBool iRec;					// Does this test require recording of a video
+	TTimeIntervalMicroSeconds iDuration;// Stores duration of video
+	};
+
+#endif	// OPENFILEBYHANDLE1513_H__