tsrc/xmltestharness/xmlclient/inc/omx_xml_script.h
author hgs
Thu, 14 Oct 2010 10:21:48 +0100
changeset 5 fb6faddbb212
parent 0 0e4a32b9112d
permissions -rw-r--r--
2010wk42

/*
* 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 OMX_XML_SCRIPT_H_
#define OMX_XML_SCRIPT_H_

#include <e32base.h>

/**
 * Bitmask flags for logging severity levels.
 */
enum TOmxScriptSeverity
	{
	EOmxScriptSevErr  = 0x0001,
	EOmxScriptSevWarn = 0x0002,
	EOmxScriptSevInfo = 0x0004,
	EOmxScriptSevVer  = 0x0007,
	EOmxScriptSevAll  = 0x0007
	};

/**
 * Interface to receive messages from ROmxScriptTest.
 */
NONSHARABLE_CLASS(MOmxScriptTestLogger)
	{
public:
	IMPORT_C virtual void Log(const TText8* aFile, TInt aLine, TOmxScriptSeverity aSeverity, const TDes& aMessage) = 0;
	};

NONSHARABLE_CLASS(COmxXmlScript) : public CBase
	{
public:
	IMPORT_C static COmxXmlScript* NewL(MOmxScriptTestLogger& aLogger);
	~COmxXmlScript();
	
	IMPORT_C void RunScriptL(const TDesC& aScriptFilename, const TDesC& aScriptSection);
	
private:
	COmxXmlScript(MOmxScriptTestLogger& aLogger);
	
private:
	MOmxScriptTestLogger& iLogger;
	};

#endif /*OMX_XML_SCRIPT_H_*/