summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqeventloop.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/ntqeventloop.h')
-rw-r--r--src/kernel/ntqeventloop.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/kernel/ntqeventloop.h b/src/kernel/ntqeventloop.h
index 9685159ca..23a3b38b4 100644
--- a/src/kernel/ntqeventloop.h
+++ b/src/kernel/ntqeventloop.h
@@ -44,6 +44,10 @@
#include "ntqsocketnotifier.h"
#endif // QT_H
+#if defined(QT_USE_GLIBMAINLOOP)
+#include <glib.h>
+#endif // QT_USE_GLIBMAINLOOP
+
class TQEventLoopPrivate;
class TQSocketNotifier;
class TQTimer;
@@ -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();