diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-12-19 14:03:09 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-12-19 14:03:09 -0600 |
commit | 35202ed0d899a9ff3c77dad72b501fb30e4dcf93 (patch) | |
tree | 683787f69d937483b860973ce17f0c5d430a142d /src/kernel/qeventloop_glib_p.h | |
parent | 8d5add0e87ad913bdf0362a83f431995115f3bfa (diff) | |
parent | f19aa203c934d0f85862fdf810a87fe7c5777d17 (diff) | |
download | qt3-35202ed0d899a9ff3c77dad72b501fb30e4dcf93.tar.gz qt3-35202ed0d899a9ff3c77dad72b501fb30e4dcf93.zip |
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/qt3
Diffstat (limited to 'src/kernel/qeventloop_glib_p.h')
-rw-r--r-- | src/kernel/qeventloop_glib_p.h | 68 |
1 files changed, 35 insertions, 33 deletions
diff --git a/src/kernel/qeventloop_glib_p.h b/src/kernel/qeventloop_glib_p.h index 7de324d..663f20e 100644 --- a/src/kernel/qeventloop_glib_p.h +++ b/src/kernel/qeventloop_glib_p.h @@ -84,49 +84,51 @@ struct QSockNotGPollFD class QEventLoopPrivate { public: - QEventLoopPrivate() - { - reset(); - } - - void reset() { - looplevel = 0; - quitcode = 0; - quitnow = FALSE; - exitloop = FALSE; - shortcut = FALSE; - singletoolkit = TRUE; - } - - int looplevel; - int quitcode; - unsigned int quitnow : 1; - unsigned int exitloop : 1; - unsigned int shortcut : 1; - + QEventLoopPrivate() + { #if defined(Q_WS_X11) - int xfd; - - GPollFD x_gPollFD; - + xfd = -1; + x_gPollFD.fd = -1; #endif // Q_WS_X11 + reset(); + } + + void reset() { + looplevel = 0; + quitcode = 0; + quitnow = FALSE; + exitloop = FALSE; + shortcut = FALSE; + singletoolkit = TRUE; + } + + int looplevel; + int quitcode; + unsigned int quitnow : 1; + unsigned int exitloop : 1; + unsigned int shortcut : 1; - int thread_pipe[2]; +#if defined(Q_WS_X11) + int xfd; + GPollFD x_gPollFD; +#endif // Q_WS_X11 + int thread_pipe[2]; GPollFD threadPipe_gPollFD; - - QPtrList<QSockNotGPollFD> sn_list; - // pending socket notifiers list - QPtrList<QSockNotGPollFD> sn_pending_list; - + QPtrList<QSockNotGPollFD> sn_list; + + // pending socket notifiers list + QPtrList<QSockNotGPollFD> sn_pending_list; + // store flags for one iteration - uint pev_flags; - + uint pev_flags; + // My GSource - GSource * gSource; bool singletoolkit; + // main context + GMainContext *ctx; }; #endif // QEVENTLOOP_GLIB_P_H |