diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-26 22:38:07 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2012-11-26 22:38:07 -0600 |
commit | de67a2b84b0d8b8ef994e91c108af3273e2ac37f (patch) | |
tree | 62758d4b374f0c6c0f5acf6cf99c27ff1a1fbf15 /src/kernel/qeventloop.h | |
parent | b5d6591054de1d4f66280207023c43e9e191146c (diff) | |
download | qt3-de67a2b84b0d8b8ef994e91c108af3273e2ac37f.tar.gz qt3-de67a2b84b0d8b8ef994e91c108af3273e2ac37f.zip |
Add glib main loop support patches
Diffstat (limited to 'src/kernel/qeventloop.h')
-rw-r--r-- | src/kernel/qeventloop.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/kernel/qeventloop.h b/src/kernel/qeventloop.h index 8d45c43..9a79f6c 100644 --- a/src/kernel/qeventloop.h +++ b/src/kernel/qeventloop.h @@ -44,6 +44,10 @@ #include "qsocketnotifier.h" #endif // QT_H +#if defined(QT_USE_GLIBMAINLOOP) +#include <glib.h> +#endif // QT_USE_GLIBMAINLOOP + class QEventLoopPrivate; class QSocketNotifier; class QTimer; @@ -95,6 +99,22 @@ public: virtual void wakeUp(); +#if defined(QT_USE_GLIBMAINLOOP) + + // glib main loop support + + /* internal: used to fit glib-main-loop gsource concept */ + + bool gsourcePrepare(GSource *gs, int * timeout); + bool gsourceCheck(GSource * gs); + bool gsourceDispatch(GSource * gs); + + bool processX11Events(); + + // end glib main loop support + +#endif //QT_USE_GLIBMAINLOOP + signals: void awake(); void aboutToBlock(); |