summaryrefslogtreecommitdiffstats
path: root/src/kernel/ntqeventloop.h
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-11-27 20:55:12 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-11-27 20:55:12 -0600
commit992df30f3c50b5439c2b5f8621ab6e928d9346eb (patch)
treeacdd3b48b9f30eeda4f94092172ffb3042fca766 /src/kernel/ntqeventloop.h
parent74ce99a42a0dc9d9a168156a2f5d146edb9bb555 (diff)
parent84f70969d95344d402d6f6152a6373469a3718ca (diff)
downloadtqt3-992df30f3c50b5439c2b5f8621ab6e928d9346eb.tar.gz
tqt3-992df30f3c50b5439c2b5f8621ab6e928d9346eb.zip
Merge branch 'master' of http://scm.trinitydesktop.org/scm/git/tqt3
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();