Qt 4.8
|
The QWSEvent class encapsulates an event in Qt for Embedded Linux. More...
#include <qwsevent_qws.h>
Public Types | |
enum | Type { NoEvent, Connected, Mouse, Focus, Key, Region, Creation, PropertyNotify, PropertyReply, SelectionClear, SelectionRequest, SelectionNotify, MaxWindowRect, QCopMessage, WindowOperation, IMEvent, IMQuery, IMInit, Embed, Font, ScreenTransformation, NEvent } |
This enum describes the origin of the event. More... | |
Public Functions | |
QWSMouseEvent * | asMouse () |
QWSEvent (int t, int len, char *ptr) | |
int | window () |
int | window () const |
Public Functions inherited from QWSProtocolItem | |
void | copyFrom (const QWSProtocolItem *item) |
QWSProtocolItem (int t, int len, char *ptr) | |
bool | read (QIODevice *s) |
virtual void | setData (const char *data, int len, bool allocateMem=true) |
void | write (QIODevice *s) |
virtual | ~QWSProtocolItem () |
Static Public Functions | |
static QWSEvent * | factory (int type) |
Additional Inherited Members | |
Public Variables inherited from QWSProtocolItem | |
int | bytesRead |
bool | deleteRaw |
char * | rawDataPtr |
int | rawLen |
char * | simpleDataPtr |
int | simpleLen |
int | type |
The QWSEvent class encapsulates an event in Qt for Embedded Linux.
When running a Qt for Embedded Linux application, it either runs as a server or connects to an existing server. All system generated events are passed to the server application which then propagates the event to the appropriate client.
Whenever the server receives an event, it queries its stack of top-level windows to find the window containing the event's position. Each window can identify the client application that created it, and returns its ID to the server upon request. Finally, the server forwards the event, encapsulated by an instance of the QWSEvent class, to the appropriate client.
The server communicates with the client applications over the UNIX domain socket. You can retrieve direct access to all the events a client receives from the server, by reimplementing QApplication's QApplication::qwsEventFilter() function.
QWSEvent provides the Type enum specifying the origin of the event. Internally, each type is represented by a QWSEvent subclass, e.g., QWSKeyEvent
.
Definition at line 59 of file qwsevent_qws.h.
enum QWSEvent::Type |
This enum describes the origin of the event.
Definition at line 65 of file qwsevent_qws.h.
|
inline |
Definition at line 61 of file qwsevent_qws.h.
|
inline |
Definition at line 90 of file qwsevent_qws.h.
Referenced by QApplication::qwsProcessEvent().
|
static |
Definition at line 46 of file qwsevent_qws.cpp.
Referenced by qt_client_enqueue(), QWSDisplay::Data::readMore(), and window().
|
inline |
Definition at line 92 of file qwsevent_qws.h.
Referenced by QWSDisplay::Data::fillQueue(), QApplication::qwsProcessEvent(), QWSDisplay::Data::waitForRegionAck(), and QWSDisplay::Data::waitForRegionEvents().
|
inline |
Definition at line 93 of file qwsevent_qws.h.