136
|
1 |
#include "debughelper.h"
|
|
2 |
|
|
3 |
const TDesC& RawEventName(const TRawEvent& aEvent)
|
|
4 |
{
|
|
5 |
switch(aEvent.Type())
|
|
6 |
{
|
|
7 |
case TRawEvent::ENone:
|
|
8 |
_LIT(ENone,"ENone");
|
|
9 |
return ENone;
|
|
10 |
|
|
11 |
case TRawEvent::EPointerMove:
|
|
12 |
_LIT(EPointerMove,"EPointerMove");
|
|
13 |
return EPointerMove;
|
|
14 |
|
|
15 |
case TRawEvent::EPointerSwitchOn:
|
|
16 |
_LIT(EPointerSwitchOn,"EPointerSwitchOn");
|
|
17 |
return EPointerSwitchOn;
|
|
18 |
|
|
19 |
case TRawEvent::EKeyDown:
|
|
20 |
_LIT(EKeyDown,"EKeyDown");
|
|
21 |
return EKeyDown;
|
|
22 |
|
|
23 |
case TRawEvent::EKeyUp:
|
|
24 |
_LIT(EKeyUp,"EKeyUp");
|
|
25 |
return EKeyUp;
|
|
26 |
|
|
27 |
case TRawEvent::ERedraw:
|
|
28 |
_LIT(ERedraw,"ERedraw");
|
|
29 |
return ERedraw;
|
|
30 |
|
|
31 |
case TRawEvent::ESwitchOn:
|
|
32 |
_LIT(ESwitchOn,"ESwitchOn");
|
|
33 |
return ESwitchOn;
|
|
34 |
|
|
35 |
case TRawEvent::EActive:
|
|
36 |
_LIT(EActive,"EActive");
|
|
37 |
return EActive;
|
|
38 |
|
|
39 |
case TRawEvent::EInactive:
|
|
40 |
_LIT(EInactive,"EInactive");
|
|
41 |
return EInactive;
|
|
42 |
|
|
43 |
case TRawEvent::EUpdateModifiers:
|
|
44 |
_LIT(EUpdateModifiers,"EUpdateModifiers");
|
|
45 |
return EUpdateModifiers;
|
|
46 |
|
|
47 |
case TRawEvent::EButton1Down:
|
|
48 |
_LIT(EButton1Down,"EButton1Down");
|
|
49 |
return EButton1Down;
|
|
50 |
|
|
51 |
case TRawEvent::EButton1Up:
|
|
52 |
_LIT(EButton1Up,"EButton1Up");
|
|
53 |
return EButton1Up;
|
|
54 |
|
|
55 |
case TRawEvent::EButton2Down:
|
|
56 |
_LIT(EButton2Down,"EButton2Down");
|
|
57 |
return EButton2Down;
|
|
58 |
|
|
59 |
case TRawEvent::EButton2Up:
|
|
60 |
_LIT(EButton2Up,"EButton2Up");
|
|
61 |
return EButton2Up;
|
|
62 |
|
|
63 |
case TRawEvent::EButton3Down:
|
|
64 |
_LIT(EButton3Down,"EButton3Down");
|
|
65 |
return EButton3Down;
|
|
66 |
|
|
67 |
case TRawEvent::EButton3Up:
|
|
68 |
_LIT(EButton3Up,"EButton3Up");
|
|
69 |
return EButton3Up;
|
|
70 |
|
|
71 |
case TRawEvent::ESwitchOff:
|
|
72 |
_LIT(ESwitchOff,"ESwitchOff");
|
|
73 |
return ESwitchOff;
|
|
74 |
|
|
75 |
case TRawEvent::EKeyRepeat:
|
|
76 |
_LIT(EKeyRepeat,"EKeyRepeat");
|
|
77 |
return EKeyRepeat;
|
|
78 |
|
|
79 |
case TRawEvent::ECaseOpen:
|
|
80 |
_LIT(ECaseOpen,"ECaseOpen");
|
|
81 |
return ECaseOpen;
|
|
82 |
|
|
83 |
case TRawEvent::ECaseClose:
|
|
84 |
_LIT(ECaseClose,"ECaseClose");
|
|
85 |
return ECaseClose;
|
|
86 |
|
|
87 |
case TRawEvent::EPointer3DInRange:
|
|
88 |
_LIT(EPointer3DInRange,"EPointer3DInRange");
|
|
89 |
return EPointer3DInRange;
|
|
90 |
|
|
91 |
case TRawEvent::EPointer3DOutOfRange:
|
|
92 |
_LIT(EPointer3DOutOfRange,"EPointer3DOutOfRange");
|
|
93 |
return EPointer3DOutOfRange;
|
|
94 |
|
|
95 |
case TRawEvent::EPointer3DTilt:
|
|
96 |
_LIT(EPointer3DTilt,"EPointer3DTilt");
|
|
97 |
return EPointer3DTilt;
|
|
98 |
|
|
99 |
case TRawEvent::EPointer3DRotation:
|
|
100 |
_LIT(EPointer3DRotation,"EPointer3DRotation");
|
|
101 |
return EPointer3DRotation;
|
|
102 |
|
|
103 |
case TRawEvent::EPointer3DTiltAndMove:
|
|
104 |
_LIT(EPointer3DTiltAndMove,"EPointer3DTiltAndMove");
|
|
105 |
return EPointer3DTiltAndMove;
|
|
106 |
|
|
107 |
case TRawEvent::EButton4Down:
|
|
108 |
_LIT(EButton4Down,"EButton4Down");
|
|
109 |
return EButton4Down;
|
|
110 |
|
|
111 |
case TRawEvent::EButton4Up:
|
|
112 |
_LIT(EButton4Up,"EButton4Up");
|
|
113 |
return EButton4Up;
|
|
114 |
|
|
115 |
case TRawEvent::EButton5Down:
|
|
116 |
_LIT(EButton5Down,"EButton5Down");
|
|
117 |
return EButton5Down;
|
|
118 |
|
|
119 |
case TRawEvent::EButton5Up:
|
|
120 |
_LIT(EButton5Up,"EButton5Up");
|
|
121 |
return EButton5Up;
|
|
122 |
|
|
123 |
case TRawEvent::EButton6Down:
|
|
124 |
_LIT(EButton6Down,"EButton6Down");
|
|
125 |
return EButton6Down;
|
|
126 |
|
|
127 |
case TRawEvent::EButton6Up:
|
|
128 |
_LIT(EButton6Up,"EButton6Up");
|
|
129 |
return EButton6Up;
|
|
130 |
|
|
131 |
case TRawEvent::ERestartSystem:
|
|
132 |
_LIT(ERestartSystem,"ERestartSystem");
|
|
133 |
return ERestartSystem;
|
|
134 |
|
|
135 |
default:
|
|
136 |
_LIT(KUndef,"User Defined Event");
|
|
137 |
return KUndef;
|
|
138 |
}
|
|
139 |
}
|
|
140 |
|
|
141 |
const TDesC& WsEventName(const TWsEvent& aEvent)
|
|
142 |
{
|
|
143 |
switch(aEvent.Type())
|
|
144 |
{
|
|
145 |
case EEventNull:
|
|
146 |
_LIT(EEventNull,"EEventNull");
|
|
147 |
return EEventNull;
|
|
148 |
|
|
149 |
case EEventKey:
|
|
150 |
_LIT(EEventKey,"EEventKey");
|
|
151 |
return EEventKey;
|
|
152 |
|
|
153 |
case EEventKeyUp:
|
|
154 |
_LIT(EEventKeyUp,"EEventKeyUp");
|
|
155 |
return EEventKeyUp;
|
|
156 |
|
|
157 |
case EEventKeyDown:
|
|
158 |
_LIT(EEventKeyDown,"EEventKeyDown");
|
|
159 |
return EEventKeyDown;
|
|
160 |
|
|
161 |
case EEventModifiersChanged:
|
|
162 |
_LIT(EEventModifiersChanged,"EEventModifiersChanged");
|
|
163 |
return EEventModifiersChanged;
|
|
164 |
|
|
165 |
case EEventPointer:
|
|
166 |
_LIT(EEventPointer,"EEventPointer");
|
|
167 |
return EEventPointer;
|
|
168 |
|
|
169 |
case EEventPointerEnter:
|
|
170 |
_LIT(EEventPointerEnter,"EEventPointerEnter");
|
|
171 |
return EEventPointerEnter;
|
|
172 |
|
|
173 |
case EEventPointerExit:
|
|
174 |
_LIT(EEventPointerExit,"EEventPointerExit");
|
|
175 |
return EEventPointerExit;
|
|
176 |
|
|
177 |
case EEventPointerBufferReady:
|
|
178 |
_LIT(EEventPointerBufferReady,"EEventPointerBufferReady");
|
|
179 |
return EEventPointerBufferReady;
|
|
180 |
|
|
181 |
case EEventDragDrop:
|
|
182 |
_LIT(EEventDragDrop,"EEventDragDrop");
|
|
183 |
return EEventDragDrop;
|
|
184 |
|
|
185 |
case EEventFocusLost:
|
|
186 |
_LIT(EEventFocusLost,"EEventFocusLost");
|
|
187 |
return EEventFocusLost;
|
|
188 |
|
|
189 |
case EEventFocusGained:
|
|
190 |
_LIT(EEventFocusGained,"EEventFocusGained");
|
|
191 |
return EEventFocusGained;
|
|
192 |
|
|
193 |
case EEventSwitchOn:
|
|
194 |
_LIT(EEventSwitchOn,"EEventSwitchOn");
|
|
195 |
return EEventSwitchOn;
|
|
196 |
|
|
197 |
case EEventPassword:
|
|
198 |
_LIT(EEventPassword,"EEventPassword");
|
|
199 |
return EEventPassword;
|
|
200 |
|
|
201 |
case EEventWindowGroupsChanged:
|
|
202 |
_LIT(EEventWindowGroupsChanged,"EEventWindowGroupsChanged");
|
|
203 |
return EEventWindowGroupsChanged;
|
|
204 |
|
|
205 |
case EEventErrorMessage:
|
|
206 |
_LIT(EEventErrorMessage,"EEventErrorMessage");
|
|
207 |
return EEventErrorMessage;
|
|
208 |
|
|
209 |
case EEventMessageReady:
|
|
210 |
_LIT(EEventMessageReady,"EEventMessageReady");
|
|
211 |
return EEventMessageReady;
|
|
212 |
|
|
213 |
case EEventMarkInvalid:
|
|
214 |
_LIT(EEventMarkInvalid,"EEventMarkInvalid");
|
|
215 |
return EEventMarkInvalid;
|
|
216 |
|
|
217 |
case EEventSwitchOff:
|
|
218 |
_LIT(EEventSwitchOff,"EEventSwitchOff");
|
|
219 |
return EEventSwitchOff;
|
|
220 |
|
|
221 |
case EEventKeySwitchOff:
|
|
222 |
_LIT(EEventKeySwitchOff,"EEventKeySwitchOff");
|
|
223 |
return EEventKeySwitchOff;
|
|
224 |
|
|
225 |
case EEventScreenDeviceChanged:
|
|
226 |
_LIT(EEventScreenDeviceChanged,"EEventScreenDeviceChanged");
|
|
227 |
return EEventScreenDeviceChanged;
|
|
228 |
|
|
229 |
case EEventFocusGroupChanged:
|
|
230 |
_LIT(EEventFocusGroupChanged,"EEventFocusGroupChanged");
|
|
231 |
return EEventFocusGroupChanged;
|
|
232 |
|
|
233 |
case EEventCaseOpened:
|
|
234 |
_LIT(EEventCaseOpened,"EEventCaseOpened");
|
|
235 |
return EEventCaseOpened;
|
|
236 |
|
|
237 |
case EEventCaseClosed:
|
|
238 |
_LIT(EEventCaseClosed,"EEventCaseClosed");
|
|
239 |
return EEventCaseClosed;
|
|
240 |
|
|
241 |
case EEventWindowGroupListChanged:
|
|
242 |
_LIT(EEventWindowGroupListChanged,"EEventWindowGroupListChanged");
|
|
243 |
return EEventWindowGroupListChanged;
|
|
244 |
|
|
245 |
case EEventWindowVisibilityChanged:
|
|
246 |
_LIT(EEventWindowVisibilityChanged,"EEventWindowVisibilityChanged");
|
|
247 |
return EEventWindowVisibilityChanged;
|
|
248 |
|
|
249 |
case EEventRestartSystem:
|
|
250 |
_LIT(EEventRestartSystem,"EEventRestartSystem");
|
|
251 |
return EEventRestartSystem;
|
|
252 |
case EEventDisplayChanged:
|
|
253 |
_LIT(EEventDisplayChanged,"EEventDisplayChanged");
|
|
254 |
return EEventDisplayChanged;
|
|
255 |
|
|
256 |
case EEventKeyRepeat:
|
|
257 |
_LIT(EEventKeyRepeat,"EEventKeyRepeat");
|
|
258 |
return EEventKeyRepeat;
|
|
259 |
|
|
260 |
case EEventGroupWindowOpen:
|
|
261 |
_LIT(EEventGroupWindowOpen,"EEventGroupWindowOpen");
|
|
262 |
return EEventGroupWindowOpen;
|
|
263 |
|
|
264 |
case EEventGroupWindowClose:
|
|
265 |
_LIT(EEventGroupWindowClose,"EEventGroupWindowClose");
|
|
266 |
return EEventGroupWindowClose;
|
|
267 |
|
|
268 |
case EEventWindowClose:
|
|
269 |
_LIT(EEventWindowClose,"EEventWindowClose");
|
|
270 |
return EEventWindowClose;
|
|
271 |
|
|
272 |
case EEventDirectScreenAccessBegin:
|
|
273 |
_LIT(EEventDirectScreenAccessBegin,"EEventDirectScreenAccessBegin");
|
|
274 |
return EEventDirectScreenAccessBegin;
|
|
275 |
|
|
276 |
case EEventDirectScreenAccessEnd:
|
|
277 |
_LIT(EEventDirectScreenAccessEnd,"EEventDirectScreenAccessEnd");
|
|
278 |
return EEventDirectScreenAccessEnd;
|
|
279 |
|
|
280 |
case EEventHeartbeatTimerStateChange:
|
|
281 |
_LIT(EEventHeartbeatTimerStateChange,"EEventHeartbeatTimerStateChange");
|
|
282 |
return EEventHeartbeatTimerStateChange;
|
|
283 |
|
|
284 |
case EEventPowerMgmt:
|
|
285 |
_LIT(EEventPowerMgmt,"EEventPowerMgmt");
|
|
286 |
return EEventPowerMgmt;
|
|
287 |
|
|
288 |
case EEventReserved:
|
|
289 |
_LIT(EEventReserved,"EEventReserved");
|
|
290 |
return EEventReserved;
|
|
291 |
|
|
292 |
case EEventUser:
|
|
293 |
_LIT(EEventUser,"EEventUser");
|
|
294 |
return EEventUser;
|
|
295 |
|
|
296 |
default:
|
|
297 |
_LIT(KUndef,"User Defined Event");
|
|
298 |
return KUndef;
|
|
299 |
}
|
|
300 |
}
|
|
301 |
|
|
302 |
|