|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef OMX_XML_SCRIPT_H_ |
|
20 #define OMX_XML_SCRIPT_H_ |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 /** |
|
25 * Bitmask flags for logging severity levels. |
|
26 */ |
|
27 enum TOmxScriptSeverity |
|
28 { |
|
29 EOmxScriptSevErr = 0x0001, |
|
30 EOmxScriptSevWarn = 0x0002, |
|
31 EOmxScriptSevInfo = 0x0004, |
|
32 EOmxScriptSevVer = 0x0007, |
|
33 EOmxScriptSevAll = 0x0007 |
|
34 }; |
|
35 |
|
36 /** |
|
37 * Interface to receive messages from ROmxScriptTest. |
|
38 */ |
|
39 NONSHARABLE_CLASS(MOmxScriptTestLogger) |
|
40 { |
|
41 public: |
|
42 IMPORT_C virtual void Log(const TText8* aFile, TInt aLine, TOmxScriptSeverity aSeverity, const TDes& aMessage) = 0; |
|
43 }; |
|
44 |
|
45 NONSHARABLE_CLASS(COmxXmlScript) : public CBase |
|
46 { |
|
47 public: |
|
48 IMPORT_C static COmxXmlScript* NewL(MOmxScriptTestLogger& aLogger); |
|
49 ~COmxXmlScript(); |
|
50 |
|
51 IMPORT_C void RunScriptL(const TDesC& aScriptFilename, const TDesC& aScriptSection); |
|
52 |
|
53 private: |
|
54 COmxXmlScript(MOmxScriptTestLogger& aLogger); |
|
55 |
|
56 private: |
|
57 MOmxScriptTestLogger& iLogger; |
|
58 }; |
|
59 |
|
60 #endif /*OMX_XML_SCRIPT_H_*/ |