|
1 /* |
|
2 * Copyright (c) 2006-2007 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: Defines commands used in autotesting |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef AUTOTESTCOMMANDS_H |
|
20 #define AUTOTESTCOMMANDS_H |
|
21 |
|
22 // Language enumerations would overlap with command enumerations --> |
|
23 // start commands somewhere else |
|
24 |
|
25 enum TAutotestCommands |
|
26 { |
|
27 LeftCBA = 2000, |
|
28 RightCBA, |
|
29 KeyOK, |
|
30 Up, |
|
31 Down, |
|
32 Left, |
|
33 Right, |
|
34 Key1, |
|
35 Key2, |
|
36 Key3, |
|
37 Key4, |
|
38 Key5, |
|
39 Key6, |
|
40 Key7, |
|
41 Key8, |
|
42 Key9, |
|
43 Key0, |
|
44 KeyAsterisk, |
|
45 KeyHash, |
|
46 KeyApplication, |
|
47 KeyPhoneSend, |
|
48 KeyPhoneEnd, |
|
49 KeyPower, |
|
50 KeyVoice, |
|
51 KeyBackspace, |
|
52 KeyABC, |
|
53 GripOpen, |
|
54 GripClose, |
|
55 REPEAT, // command and count must follow repeat |
|
56 WAITCOMMAND, // count must follow wait |
|
57 SETTICKCOUNT, // sets time between commands (in 0.1 second intervals) |
|
58 JUSTKEYDOWN, // next command is key down press |
|
59 JUSTKEYUP, // next command is key up press |
|
60 |
|
61 //for touch screen support |
|
62 PointerDown, |
|
63 PointerUp, |
|
64 PointerMove |
|
65 }; |
|
66 |
|
67 #define REP(command, count) REPEAT, command, count |
|
68 #define WAIT(count) WAITCOMMAND, count |
|
69 #define DELAY(count) SETTICKCOUNT, count |
|
70 #define KEYDOWN(keypress) JUSTKEYDOWN, keypress |
|
71 #define KEYUP(keypress) JUSTKEYUP, keypress |
|
72 |
|
73 // for localization support |
|
74 #define IFDISPLANG(aLanguage) IfDispLanguage, aLanguage, |
|
75 #define ELSE Else, |
|
76 #define ENDIF EndIf, |
|
77 #define POINTERDOWN(x,y) PointerDown, x, y |
|
78 #define POINTERUP(x,y) PointerUp, x, y |
|
79 #define POINTERMOVE(x,y) PointerMove, x, y |
|
80 #define TEND -1 |
|
81 |
|
82 #endif //AUTOTESTCOMMANDS_H |