tsrc/xmltestharness/te_xmlomxclient/src/omxxmltestrunner.h
changeset 0 0e4a32b9112d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tsrc/xmltestharness/te_xmlomxclient/src/omxxmltestrunner.h	Wed Aug 25 12:40:50 2010 +0300
@@ -0,0 +1,48 @@
+/*
+* Copyright (c) 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:
+*
+*/
+
+
+#ifndef OMXXMLTESTRUNNER_H
+#define OMXXMLTESTRUNNER_H
+
+#include <e32base.h>
+#include <multimedia/omx_xml_script.h>
+
+class CTestExecuteLogger;
+
+class COmxXmlTestRunner : public CBase, public MOmxScriptTestLogger
+	{
+public:
+	static COmxXmlTestRunner* NewL(CTestExecuteLogger& aLogger);
+	~COmxXmlTestRunner();
+	
+	void SetFilenameL(const TDesC& aFilename);
+	void RunTestL(const TDesC& aSectionName);
+	
+	// from MOmxScriptTestLogger
+	void Log(const TText8* aFile, TInt aLine, TOmxScriptSeverity aSeverity, const TDes& aMessage);
+	
+private:
+	COmxXmlTestRunner(CTestExecuteLogger& aLogger);
+	void ConstructL();
+	
+	CTestExecuteLogger& iTestExecuteLogger;
+	HBufC* iFilename;
+	COmxXmlScript* iScript;
+	};
+
+#endif //OMXXMLTESTRUNNER_H