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: This file contains the keywords for the |
|
15 * TestScripter module. |
|
16 * |
|
17 */ |
|
18 |
|
19 #ifndef TESTKEYWORDS_H |
|
20 #define TESTKEYWORDS_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <StifTestInterface.h> |
|
25 |
|
26 // CONSTANTS |
|
27 // None |
|
28 |
|
29 // MACROS |
|
30 // None |
|
31 |
|
32 // DATA TYPES |
|
33 typedef TPtrC (*KeywordFunc)( TInt aKeyword ); |
|
34 |
|
35 // FUNCTION PROTOTYPES |
|
36 // None |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 // None |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 // DESCRIPTION |
|
44 // TestScripter Keyword class |
|
45 class TTestKeywords |
|
46 { |
|
47 public: // Enumerations |
|
48 // Keyword enum |
|
49 enum TKeywords |
|
50 { |
|
51 ETitle, |
|
52 ETimeout, |
|
53 EPriority, |
|
54 ECreate, |
|
55 EDelete, |
|
56 ERequest, |
|
57 EWait, |
|
58 ERelease, |
|
59 ESet, |
|
60 EUnset, |
|
61 EPrint, |
|
62 EAllowNextResult, |
|
63 EWaitTestClass, |
|
64 ECreateKernel, |
|
65 EPause, |
|
66 ELoop, |
|
67 EEndLoop, |
|
68 EOOMIgnoreFailure, |
|
69 EOOMHeapFailNext, |
|
70 EOOMHeapSetFail, |
|
71 EOOMHeapToNormal, |
|
72 ETestInterference, |
|
73 EMeasurement, |
|
74 EAllowErrorCodes, |
|
75 EBringToForeground, |
|
76 ESendToBackground, |
|
77 EPressKey, |
|
78 ETypeText, |
|
79 EVar, |
|
80 ECallSub, |
|
81 ECreateX, |
|
82 ESetResultDescription, |
|
83 ESendPointerEvent, |
|
84 }; |
|
85 |
|
86 // priorities |
|
87 enum TPriority |
|
88 { |
|
89 EPriHigh, |
|
90 EPriNormal, |
|
91 EPriLow, |
|
92 }; |
|
93 |
|
94 private: // Enumerations |
|
95 |
|
96 public: // Constructors and destructor |
|
97 |
|
98 public: // Constructors and destructor |
|
99 |
|
100 public: // New functions |
|
101 |
|
102 /** |
|
103 * Returns a string desrciptor corresponding to keyword number. |
|
104 */ |
|
105 static TPtrC Keyword( TInt aKeyword ); |
|
106 |
|
107 /** |
|
108 * Returns a string desrciptor corresponding to priority |
|
109 * enum value. |
|
110 */ |
|
111 static TPtrC Priority( TInt aArg ); |
|
112 |
|
113 /** |
|
114 * Returns a keyword enum corresponding to keyword |
|
115 * string descriptor. |
|
116 */ |
|
117 static TInt Parse( TDesC& aKeyword, KeywordFunc aFunc ); |
|
118 |
|
119 public: // Functions from base classes |
|
120 |
|
121 protected: // New functions |
|
122 |
|
123 protected: // Functions from base classes |
|
124 |
|
125 private: // New functions |
|
126 |
|
127 public: // Data |
|
128 |
|
129 protected: // Data |
|
130 |
|
131 private: // Data |
|
132 |
|
133 public: // Friend classes |
|
134 |
|
135 protected: // Friend classes |
|
136 |
|
137 private: // Friend classes |
|
138 |
|
139 }; |
|
140 |
|
141 #endif // TESTKEYWORDS_H |
|
142 |
|
143 // End of File |
|