author | Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp> |
Tue, 25 May 2010 13:23:21 +0900 | |
branch | sharp_contrib_0 |
changeset 115 | 3726ea3658d3 |
parent 114 | 099e60ffabf8 |
permissions | -rw-r--r-- |
0 | 1 |
// Copyright (c) 1995-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 |
// All rights reserved. |
|
3 |
// This component and the accompanying materials are made available |
|
4 |
// under the terms of the License "Eclipse Public License v1.0" |
|
5 |
// which accompanies this distribution, and is available |
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 |
// |
|
8 |
// Initial Contributors: |
|
9 |
// Nokia Corporation - initial contribution. |
|
10 |
// |
|
11 |
// Contributors: |
|
115
3726ea3658d3
satrt branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
114
diff
changeset
|
12 |
// Sharp Corporation - contribution of modification for Enhancement of Pointer Event. |
0 | 13 |
// |
14 |
// Description: |
|
15 |
// e32\include\e32event.h |
|
16 |
// |
|
17 |
// |
|
18 |
||
19 |
#ifndef __E32EVENT_H__ |
|
20 |
#define __E32EVENT_H__ |
|
21 |
#include <e32cmn.h> |
|
33
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
22 |
#ifdef BTRACE_TRAWEVENT |
0 | 23 |
#include <e32btrace.h> |
33
0173bcd7697c
Revision: 201001
Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
parents:
0
diff
changeset
|
24 |
#endif |
0 | 25 |
|
26 |
/** |
|
27 |
@publishedAll |
|
28 |
@released |
|
29 |
*/ |
|
30 |
const TInt KUndefinedDeviceNumber = -1; |
|
31 |
||
32 |
/** |
|
33 |
@publishedAll |
|
34 |
@released |
|
35 |
||
36 |
Represents a raw hardware event as generated by hardware drivers of |
|
37 |
a pointer device, a keyboard etc. |
|
38 |
||
39 |
Raw hardware events are added to the kernel's event queue. |
|
40 |
*/ |
|
41 |
class TRawEvent |
|
42 |
{ |
|
43 |
public: |
|
44 |
||
45 |
/** |
|
46 |
Defines the event type. |
|
47 |
*/ |
|
48 |
enum TType |
|
49 |
{ |
|
50 |
||
51 |
/** |
|
52 |
Represents an uninitialised event object. |
|
53 |
*/ |
|
54 |
ENone, |
|
55 |
||
56 |
/** |
|
57 |
A pointer device (e.g. a pen) has moved. Only changes in Cartesian coordinates are tracked. |
|
58 |
*/ |
|
59 |
EPointerMove, |
|
60 |
||
61 |
/** |
|
62 |
A switch on event caused by a screen tap using a pointer device. |
|
63 |
*/ |
|
64 |
EPointerSwitchOn, |
|
65 |
||
66 |
/** |
|
67 |
Represents a keyboard key down event. |
|
68 |
*/ |
|
69 |
EKeyDown, |
|
70 |
||
71 |
/** |
|
72 |
Represents a keyboard key up event. |
|
73 |
*/ |
|
74 |
EKeyUp, |
|
75 |
||
76 |
/** |
|
77 |
Represents a redraw event. |
|
78 |
||
79 |
Typically generated in an emulator environment in response |
|
80 |
to a host OS redraw event. |
|
81 |
*/ |
|
82 |
ERedraw, |
|
83 |
||
84 |
/** |
|
85 |
Represents a device switch on event. |
|
86 |
*/ |
|
87 |
ESwitchOn, |
|
88 |
||
89 |
/** |
|
90 |
*/ |
|
91 |
EActive, |
|
92 |
||
93 |
/** |
|
94 |
*/ |
|
95 |
EInactive, |
|
96 |
||
97 |
/** |
|
98 |
Represents a modifier key being pressed. |
|
99 |
*/ |
|
100 |
EUpdateModifiers, |
|
101 |
||
102 |
/** |
|
103 |
Represents a button down event. |
|
104 |
||
105 |
This is typically used to represent a pointing device |
|
106 |
coming into contact with a touch sensitive screen. |
|
107 |
*/ |
|
108 |
EButton1Down, |
|
109 |
||
110 |
/** |
|
111 |
Represents a button up event. |
|
112 |
||
113 |
This is typically used to represent a pointing device |
|
114 |
being lifted away from a touch sensitive screen. |
|
115 |
*/ |
|
116 |
EButton1Up, |
|
117 |
||
118 |
/** |
|
119 |
Represents a button down event. |
|
120 |
||
121 |
This is typically used to represent a pointing device |
|
122 |
coming into contact with a touch sensitive screen. |
|
123 |
*/ |
|
124 |
EButton2Down, |
|
125 |
||
126 |
/** |
|
127 |
Represents a button up event. |
|
128 |
||
129 |
This is typically used to represent a pointing device |
|
130 |
being lifted away from a touch sensitive screen. |
|
131 |
*/ |
|
132 |
EButton2Up, |
|
133 |
||
134 |
/** |
|
135 |
Represents a button down event. |
|
136 |
||
137 |
This is typically used to represent a pointing device |
|
138 |
coming into contact with a touch sensitive screen. |
|
139 |
*/ |
|
140 |
EButton3Down, |
|
141 |
||
142 |
/** |
|
143 |
Represents a button up event. |
|
144 |
||
145 |
This is typically used to represent a pointing device |
|
146 |
being lifted away from a touch sensitive screen. |
|
147 |
*/ |
|
148 |
EButton3Up, |
|
149 |
||
150 |
/** |
|
151 |
Represents a device switch off event. |
|
152 |
*/ |
|
153 |
ESwitchOff, |
|
154 |
||
155 |
/** |
|
156 |
Represents a key being continually pressed event. |
|
157 |
*/ |
|
158 |
EKeyRepeat, |
|
159 |
||
160 |
/** |
|
161 |
Represents a case open event. |
|
162 |
||
163 |
The meaning of a case is hardware specific. |
|
164 |
*/ |
|
165 |
ECaseOpen, |
|
166 |
||
167 |
/** |
|
168 |
Represents a case close event. |
|
169 |
||
170 |
The meaning of a case is hardware specific. |
|
171 |
*/ |
|
172 |
ECaseClose, |
|
173 |
||
174 |
/** |
|
175 |
@prototype |
|
176 |
Represents a 3D pointer entering the detection volume event. |
|
177 |
||
178 |
This is typically used to represent a pointing device |
|
179 |
coming into detection range of a sensitive screen. |
|
180 |
*/ |
|
181 |
EPointer3DInRange, |
|
182 |
||
183 |
/** |
|
184 |
@prototype |
|
185 |
Represents a 3D pointer leaving the detection volume event. |
|
186 |
||
187 |
This is typically used to represent a pointing device |
|
188 |
leaving the detection range of a sensitive screen. |
|
189 |
*/ |
|
190 |
EPointer3DOutOfRange, |
|
191 |
||
192 |
/** |
|
193 |
@prototype |
|
194 |
Represents a 3D pointer tilt changes only event. |
|
195 |
||
196 |
This is typically sent by a 3D pointer driver when it detects |
|
197 |
a change in the pointer's polar coordinates (Theta or Phi). |
|
198 |
*/ |
|
199 |
EPointer3DTilt, |
|
200 |
||
201 |
/** |
|
202 |
@prototype |
|
203 |
Represents a 3D pointer rotation only event. |
|
204 |
||
205 |
This is typically sent by a 3D pointer driver when it detects |
|
206 |
a rotation of the pointing device (along ist main axis). |
|
207 |
*/ |
|
208 |
EPointer3DRotation, |
|
209 |
||
210 |
/** |
|
211 |
@prototype |
|
212 |
Represents a general 3D pointer changes event. |
|
213 |
||
214 |
This is typically sent by a 3D pointer driver when it detects |
|
215 |
a change in the pointer's linear and/or polar coordinates and/or rotation. |
|
216 |
*/ |
|
217 |
EPointer3DTiltAndMove, |
|
218 |
||
219 |
/** |
|
220 |
@prototype |
|
221 |
Reserved for a 3D pointing device button down event. |
|
222 |
*/ |
|
223 |
EButton4Down, |
|
224 |
||
225 |
/** |
|
226 |
@prototype |
|
227 |
Reserved for a 3D pointing device button up event. |
|
228 |
*/ |
|
229 |
EButton4Up, |
|
230 |
||
231 |
/** |
|
232 |
@prototype |
|
233 |
Reserved for a 3D pointing device button down event. |
|
234 |
*/ |
|
235 |
EButton5Down, |
|
236 |
||
237 |
/** |
|
238 |
@prototype |
|
239 |
Reserved for a 3D pointing device button up event. |
|
240 |
*/ |
|
241 |
EButton5Up, |
|
242 |
||
243 |
/** |
|
244 |
@prototype |
|
245 |
Reserved for a 3D pointing device button down event. |
|
246 |
*/ |
|
247 |
EButton6Down, |
|
248 |
||
249 |
/** |
|
250 |
@prototype |
|
251 |
Reserved for a 3D pointing device button up event. |
|
252 |
*/ |
|
253 |
EButton6Up, |
|
254 |
||
255 |
/** |
|
256 |
Represents a device restart event. |
|
257 |
*/ |
|
114
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
258 |
ERestartSystem, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
259 |
|
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
260 |
/* Caused by "Tap" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
261 |
EGestureTap = 0x0080, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
262 |
/* Caused by "LongPress" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
263 |
EGesturePress, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
264 |
/* Caused by "FlickUp" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
265 |
EGestureFlickup, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
266 |
/* Caused by "FlickDown" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
267 |
EGestureFlickDown, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
268 |
/* Caused by "FlickLeft" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
269 |
EGestureFlickLeft, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
270 |
/* Caused by "FlickRight" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
271 |
EGestureFlickRight, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
272 |
/* Caused by General "Flick" Gesture Event from pointing device directry */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
273 |
EGestureFlick, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
274 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
275 |
EGestureCustom1, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
276 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
277 |
EGestureCustom2, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
278 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
279 |
EGestureCustom3, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
280 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
281 |
EGestureCustom4, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
282 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
283 |
EGestureCustom5, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
284 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
285 |
EGestureCustom6, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
286 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
287 |
EGestureCustom7, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
288 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
289 |
EGestureCustom8, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
290 |
/* Caused by Custom Gesture Event from pointing device directry (for Reserved) */ |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
291 |
EGestureCustom9, |
099e60ffabf8
start branch sharp_contrib_0
Mitsuaki Nakamura <nakamura-mitsuaki@sharp.co.jp>
parents:
33
diff
changeset
|
292 |
|
0 | 293 |
}; |
294 |
public: |
|
295 |
||
296 |
/** |
|
297 |
Default constructor |
|
298 |
*/ |
|
299 |
inline TRawEvent() |
|
300 |
{ *(TInt*)&iType=0; } |
|
301 |
||
302 |
/** |
|
303 |
Gets the event type |
|
304 |
||
305 |
@return The event type. |
|
306 |
*/ |
|
307 |
inline TType Type() const |
|
308 |
{return TType(iType);} |
|
309 |
||
310 |
/** |
|
311 |
Gets the device number (eg. screen number) |
|
312 |
||
313 |
@return The device number. |
|
314 |
*/ |
|
315 |
inline TInt DeviceNumber() const |
|
316 |
{return TInt(iDeviceNumber-1);} |
|
317 |
||
318 |
/** |
|
319 |
Sets the device number (eg. screen number) |
|
320 |
||
321 |
@param aDeviceNumber The device number |
|
322 |
*/ |
|
323 |
inline void SetDeviceNumber(TInt aDeviceNumber) |
|
324 |
{iDeviceNumber = TUint8(aDeviceNumber+1);} |
|
325 |
||
326 |
IMPORT_C TPoint Pos() const; |
|
327 |
IMPORT_C TInt ScanCode() const; |
|
328 |
IMPORT_C TInt Modifiers() const; |
|
329 |
IMPORT_C TInt Repeats() const; |
|
330 |
||
331 |
/** |
|
332 |
Gets the Cartesian coordinates of the 3D pointer end that is closer to the screen. |
|
333 |
||
334 |
@return The Cartesian coordinates of the point defined by the end of the 3D pointing device that is closer to the screen. |
|
335 |
*/ |
|
336 |
IMPORT_C TPoint3D Pos3D() const; |
|
337 |
||
338 |
||
339 |
/** |
|
340 |
Gets the angular spherical polar coordinates of the 3D pointer end that is closer to the screen. |
|
341 |
||
342 |
@return The angular spherical polar coordinates of the point defined by the end of the 3D pointing device that is closer to the screen. |
|
343 |
@see TAngle3D |
|
344 |
*/ |
|
345 |
IMPORT_C TAngle3D Tilt() const; |
|
346 |
||
347 |
/** |
|
348 |
Gets the rotation angle of 3D pointing device. |
|
349 |
||
350 |
Some 3D pointing devices support information regarding the angle formed between the physical and magnetical poles, |
|
351 |
as obtaining when rotating the pen along its main axis. |
|
352 |
||
353 |
@return The rotation angle of the 3D pointing device. |
|
354 |
*/ |
|
355 |
IMPORT_C TInt Rotation() const; |
|
356 |
||
357 |
/** |
|
358 |
Gets the tick count value associated with the event. |
|
359 |
||
360 |
Note that the interval between tick counts is |
|
361 |
hardware dependent. |
|
362 |
||
363 |
@return The tick count value |
|
364 |
*/ |
|
365 |
inline TUint Ticks() const |
|
366 |
{return iTicks;} |
|
367 |
/** |
|
368 |
Gets the information on which end of the pointing device is closer to the screen |
|
369 |
||
370 |
@return A Boolean indicating which end of the pointing device is closer to the screen. |
|
371 |
*/ |
|
372 |
inline TBool IsTip() const |
|
373 |
{return TBool(iTip);} |
|
374 |
||
375 |
/** |
|
376 |
Sets the information on which end of the pointing device is closer to the screen |
|
377 |
||
378 |
@param aTip A Boolean indicating which end of the pointing device is closer to the screen. |
|
379 |
*/ |
|
380 |
inline void SetTip(TBool aTip) |
|
381 |
{iTip = TUint8(aTip); |
|
382 |
#ifdef BTRACE_TRAWEVENT |
|
383 |
BTraceContext4(BTrace::ERawEvent, BTrace::ESetTipEvent,(TUint32)aTip); |
|
384 |
#endif |
|
385 |
} |
|
386 |
||
387 |
IMPORT_C void Set(TType aType,TInt aScanCode); |
|
388 |
IMPORT_C void Set(TType aType,TInt aX,TInt aY); |
|
389 |
IMPORT_C void Set(TType aType); |
|
390 |
||
391 |
IMPORT_C void Set(TType aType,TInt aX,TInt aY,TInt aZ); |
|
392 |
IMPORT_C void Set(TType aType,TInt aX,TInt aY,TInt aZ,TInt aPhi,TInt aTheta,TInt aAlpha); |
|
393 |
||
394 |
IMPORT_C void SetTilt(TType aType,TInt aPhi,TInt aTheta); |
|
395 |
IMPORT_C void SetRotation(TType aType,TInt aAlpha); |
|
396 |
IMPORT_C void SetRepeat(TType aType,TInt aScanCode,TInt aRepeats); |
|
397 |
||
398 |
/** |
|
399 |
@return the pointer number of the the event |
|
400 |
*/ |
|
401 |
inline TUint8 PointerNumber() const |
|
402 |
{ |
|
403 |
return iPointerNumber; |
|
404 |
} |
|
405 |
||
406 |
||
407 |
/** |
|
408 |
The pointer number for the event is set |
|
409 |
The pointer number should be more or equal 0 and should be less than HALData::EPointerMaxPointers, |
|
410 |
otherwise WSERV would ignore the event,ie 0 <= aPointerNumber < HALData::EPointerMaxPointers |
|
411 |
@param aPointerNumber |
|
412 |
Error conditions: None. |
|
413 |
*/ |
|
414 |
inline void SetPointerNumber(const TUint8 aPointerNumber) |
|
415 |
{ |
|
416 |
iPointerNumber=aPointerNumber; |
|
417 |
#ifdef BTRACE_TRAWEVENT |
|
418 |
BTraceContext4(BTrace::ERawEvent, BTrace::ESetPointerNumberEvent,(TUint32)aPointerNumber); |
|
419 |
#endif |
|
420 |
} |
|
421 |
||
422 |
/** |
|
423 |
Initialises the event with the supplied information |
|
424 |
@param aType The event type. |
|
425 |
@param aX The X position. |
|
426 |
@param aY The Y position. |
|
427 |
@param aZ The Z position. |
|
428 |
@param aPointerNumber The pointer number for the event |
|
429 |
*/ |
|
430 |
IMPORT_C void Set (TType aType, TInt aX, TInt aY, TInt aZ, TUint8 aPointerNumber); |
|
431 |
||
432 |
protected: |
|
433 |
TUint8 iType; |
|
434 |
TUint8 iTip; /**< Indicates whether the tip or head of pointing device is closer to screen.*/ |
|
435 |
TUint8 iPointerNumber; // |
|
436 |
TUint8 iDeviceNumber; |
|
437 |
TUint iTicks; |
|
438 |
union |
|
439 |
{ |
|
440 |
struct {TInt x;TInt y;} pos; |
|
441 |
struct {TInt x;TInt y;TInt z;TInt phi;TInt theta;TInt alpha;} pos3D; |
|
442 |
struct {TInt scanCode;TInt repeats;} key; |
|
443 |
TInt modifiers; |
|
444 |
} iU; |
|
445 |
}; |
|
446 |
||
447 |
||
448 |
||
449 |
||
450 |
/** |
|
451 |
@publishedAll |
|
452 |
@released |
|
453 |
||
454 |
Encapsulates a hardware event object as a descriptor (package buffer) for |
|
455 |
the purpose of data transfer. |
|
456 |
*/ |
|
457 |
class TRawEventBuf : public TPckgBuf<TRawEvent> |
|
458 |
{ |
|
459 |
public: |
|
460 |
||
461 |
/** |
|
462 |
Gets the hardware event object from the package buffer. |
|
463 |
||
464 |
@return The hardware event object. |
|
465 |
*/ |
|
466 |
inline TRawEvent &Event() const {return(*((TRawEvent *)&iBuf[0]));} |
|
467 |
}; |
|
468 |
||
469 |
#ifndef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
470 |
#include <e32event_private.h> |
|
471 |
#endif |
|
472 |
||
473 |
#endif |
|
474 |