42 #include "qplatformdefs.h" 44 #include "private/qwscommand_qws_p.h" 49 #include "private/qeventdispatcher_unix_p.h" 94 while (!
d->interrupt) {
97 && !
d->queuedUserInputEvents.isEmpty()) {
99 event =
d->queuedUserInputEvents.takeFirst();
102 if (flags & QEventLoop::ExcludeUserInputEvents) {
105 d->queuedUserInputEvents.append(event);
119 bool ret =
qApp->qwsProcessEvent(event) == 1;
135 return (nevents > 0);
157 qApp->sendPostedEvents();
The QWSDisplay class provides a display for QWS; it is an internal class.
bool filterEvent(void *message)
Sends message through the event filter that was set by setEventFilter().
#define QT_END_NAMESPACE
This macro expands to.
QList< QWSCommand * > * qt_get_server_queue()
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, timeval *timeout)
bool eventPending() const
The QObject class is the base class of all Qt objects.
virtual bool event(QEvent *)
This virtual function receives events to an object and should return true if the event e was recogniz...
static void processEventQueue()
The QWSEvent class encapsulates an event in Qt for Embedded Linux.
#define QT_BEGIN_NAMESPACE
This macro expands to.
static bool isEmpty(const char *str)
bool hasPendingEvents()
Returns true if there is an event waiting; otherwise returns false.
static void sendPostedEvents()
Q_CORE_EXPORT uint qGlobalPostedEventsCount()
QEventDispatcherQWSPrivate()
bool processEvents(QEventLoop::ProcessEventsFlags flags)
Processes pending events that match flags until there are no more events to process.
#define Q_DECLARE_PUBLIC(Class)
void flush()
Flushes the event queue.
bool processEvents(QEventLoop::ProcessEventsFlags flags)
Processes pending events that match flags until there are no more events to process.
virtual int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, timeval *timeout)
#define QT_USE_NAMESPACE
This macro expands to using QT_NAMESPACE if QT_NAMESPACE is defined and nothing otherwise.
QList< QWSEvent * > queuedUserInputEvents
QEventDispatcherQWS(QObject *parent=0)
The QList class is a template class that provides lists.