Update contrib.
1 #include "debughelper.h"
3 const TDesC& RawEventName(const TRawEvent& aEvent)
11 case TRawEvent::EPointerMove:
12 _LIT(EPointerMove,"EPointerMove");
15 case TRawEvent::EPointerSwitchOn:
16 _LIT(EPointerSwitchOn,"EPointerSwitchOn");
17 return EPointerSwitchOn;
19 case TRawEvent::EKeyDown:
20 _LIT(EKeyDown,"EKeyDown");
23 case TRawEvent::EKeyUp:
24 _LIT(EKeyUp,"EKeyUp");
27 case TRawEvent::ERedraw:
28 _LIT(ERedraw,"ERedraw");
31 case TRawEvent::ESwitchOn:
32 _LIT(ESwitchOn,"ESwitchOn");
35 case TRawEvent::EActive:
36 _LIT(EActive,"EActive");
39 case TRawEvent::EInactive:
40 _LIT(EInactive,"EInactive");
43 case TRawEvent::EUpdateModifiers:
44 _LIT(EUpdateModifiers,"EUpdateModifiers");
45 return EUpdateModifiers;
47 case TRawEvent::EButton1Down:
48 _LIT(EButton1Down,"EButton1Down");
51 case TRawEvent::EButton1Up:
52 _LIT(EButton1Up,"EButton1Up");
55 case TRawEvent::EButton2Down:
56 _LIT(EButton2Down,"EButton2Down");
59 case TRawEvent::EButton2Up:
60 _LIT(EButton2Up,"EButton2Up");
63 case TRawEvent::EButton3Down:
64 _LIT(EButton3Down,"EButton3Down");
67 case TRawEvent::EButton3Up:
68 _LIT(EButton3Up,"EButton3Up");
71 case TRawEvent::ESwitchOff:
72 _LIT(ESwitchOff,"ESwitchOff");
75 case TRawEvent::EKeyRepeat:
76 _LIT(EKeyRepeat,"EKeyRepeat");
79 case TRawEvent::ECaseOpen:
80 _LIT(ECaseOpen,"ECaseOpen");
83 case TRawEvent::ECaseClose:
84 _LIT(ECaseClose,"ECaseClose");
87 case TRawEvent::EPointer3DInRange:
88 _LIT(EPointer3DInRange,"EPointer3DInRange");
89 return EPointer3DInRange;
91 case TRawEvent::EPointer3DOutOfRange:
92 _LIT(EPointer3DOutOfRange,"EPointer3DOutOfRange");
93 return EPointer3DOutOfRange;
95 case TRawEvent::EPointer3DTilt:
96 _LIT(EPointer3DTilt,"EPointer3DTilt");
97 return EPointer3DTilt;
99 case TRawEvent::EPointer3DRotation:
100 _LIT(EPointer3DRotation,"EPointer3DRotation");
101 return EPointer3DRotation;
103 case TRawEvent::EPointer3DTiltAndMove:
104 _LIT(EPointer3DTiltAndMove,"EPointer3DTiltAndMove");
105 return EPointer3DTiltAndMove;
107 case TRawEvent::EButton4Down:
108 _LIT(EButton4Down,"EButton4Down");
111 case TRawEvent::EButton4Up:
112 _LIT(EButton4Up,"EButton4Up");
115 case TRawEvent::EButton5Down:
116 _LIT(EButton5Down,"EButton5Down");
119 case TRawEvent::EButton5Up:
120 _LIT(EButton5Up,"EButton5Up");
123 case TRawEvent::EButton6Down:
124 _LIT(EButton6Down,"EButton6Down");
127 case TRawEvent::EButton6Up:
128 _LIT(EButton6Up,"EButton6Up");
131 case TRawEvent::ERestartSystem:
132 _LIT(ERestartSystem,"ERestartSystem");
133 return ERestartSystem;
136 _LIT(KUndef,"User Defined Event");
141 const TDesC& WsEventName(const TWsEvent& aEvent)
143 switch(aEvent.Type())
146 _LIT(EEventNull,"EEventNull");
150 _LIT(EEventKey,"EEventKey");
154 _LIT(EEventKeyUp,"EEventKeyUp");
158 _LIT(EEventKeyDown,"EEventKeyDown");
159 return EEventKeyDown;
161 case EEventModifiersChanged:
162 _LIT(EEventModifiersChanged,"EEventModifiersChanged");
163 return EEventModifiersChanged;
166 _LIT(EEventPointer,"EEventPointer");
167 return EEventPointer;
169 case EEventPointerEnter:
170 _LIT(EEventPointerEnter,"EEventPointerEnter");
171 return EEventPointerEnter;
173 case EEventPointerExit:
174 _LIT(EEventPointerExit,"EEventPointerExit");
175 return EEventPointerExit;
177 case EEventPointerBufferReady:
178 _LIT(EEventPointerBufferReady,"EEventPointerBufferReady");
179 return EEventPointerBufferReady;
182 _LIT(EEventDragDrop,"EEventDragDrop");
183 return EEventDragDrop;
185 case EEventFocusLost:
186 _LIT(EEventFocusLost,"EEventFocusLost");
187 return EEventFocusLost;
189 case EEventFocusGained:
190 _LIT(EEventFocusGained,"EEventFocusGained");
191 return EEventFocusGained;
194 _LIT(EEventSwitchOn,"EEventSwitchOn");
195 return EEventSwitchOn;
198 _LIT(EEventPassword,"EEventPassword");
199 return EEventPassword;
201 case EEventWindowGroupsChanged:
202 _LIT(EEventWindowGroupsChanged,"EEventWindowGroupsChanged");
203 return EEventWindowGroupsChanged;
205 case EEventErrorMessage:
206 _LIT(EEventErrorMessage,"EEventErrorMessage");
207 return EEventErrorMessage;
209 case EEventMessageReady:
210 _LIT(EEventMessageReady,"EEventMessageReady");
211 return EEventMessageReady;
213 case EEventMarkInvalid:
214 _LIT(EEventMarkInvalid,"EEventMarkInvalid");
215 return EEventMarkInvalid;
217 case EEventSwitchOff:
218 _LIT(EEventSwitchOff,"EEventSwitchOff");
219 return EEventSwitchOff;
221 case EEventKeySwitchOff:
222 _LIT(EEventKeySwitchOff,"EEventKeySwitchOff");
223 return EEventKeySwitchOff;
225 case EEventScreenDeviceChanged:
226 _LIT(EEventScreenDeviceChanged,"EEventScreenDeviceChanged");
227 return EEventScreenDeviceChanged;
229 case EEventFocusGroupChanged:
230 _LIT(EEventFocusGroupChanged,"EEventFocusGroupChanged");
231 return EEventFocusGroupChanged;
233 case EEventCaseOpened:
234 _LIT(EEventCaseOpened,"EEventCaseOpened");
235 return EEventCaseOpened;
237 case EEventCaseClosed:
238 _LIT(EEventCaseClosed,"EEventCaseClosed");
239 return EEventCaseClosed;
241 case EEventWindowGroupListChanged:
242 _LIT(EEventWindowGroupListChanged,"EEventWindowGroupListChanged");
243 return EEventWindowGroupListChanged;
245 case EEventWindowVisibilityChanged:
246 _LIT(EEventWindowVisibilityChanged,"EEventWindowVisibilityChanged");
247 return EEventWindowVisibilityChanged;
249 case EEventRestartSystem:
250 _LIT(EEventRestartSystem,"EEventRestartSystem");
251 return EEventRestartSystem;
252 case EEventDisplayChanged:
253 _LIT(EEventDisplayChanged,"EEventDisplayChanged");
254 return EEventDisplayChanged;
256 case EEventKeyRepeat:
257 _LIT(EEventKeyRepeat,"EEventKeyRepeat");
258 return EEventKeyRepeat;
260 case EEventGroupWindowOpen:
261 _LIT(EEventGroupWindowOpen,"EEventGroupWindowOpen");
262 return EEventGroupWindowOpen;
264 case EEventGroupWindowClose:
265 _LIT(EEventGroupWindowClose,"EEventGroupWindowClose");
266 return EEventGroupWindowClose;
268 case EEventWindowClose:
269 _LIT(EEventWindowClose,"EEventWindowClose");
270 return EEventWindowClose;
272 case EEventDirectScreenAccessBegin:
273 _LIT(EEventDirectScreenAccessBegin,"EEventDirectScreenAccessBegin");
274 return EEventDirectScreenAccessBegin;
276 case EEventDirectScreenAccessEnd:
277 _LIT(EEventDirectScreenAccessEnd,"EEventDirectScreenAccessEnd");
278 return EEventDirectScreenAccessEnd;
280 case EEventHeartbeatTimerStateChange:
281 _LIT(EEventHeartbeatTimerStateChange,"EEventHeartbeatTimerStateChange");
282 return EEventHeartbeatTimerStateChange;
284 case EEventPowerMgmt:
285 _LIT(EEventPowerMgmt,"EEventPowerMgmt");
286 return EEventPowerMgmt;
289 _LIT(EEventReserved,"EEventReserved");
290 return EEventReserved;
293 _LIT(EEventUser,"EEventUser");
297 _LIT(KUndef,"User Defined Event");