diff options
author | Tom Tromey <tromey@gcc.gnu.org> | 2005-09-23 19:36:46 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2005-09-23 19:36:46 +0000 |
commit | 9b044d19517541c95681d35a92dbc81e6e21d94f (patch) | |
tree | b2c2abf473309eac532cafbad81b20f3270ff45f /libjava/classpath/native/jni/qt-peer/mainthreadinterface.h | |
parent | acff2da93c917c21aca570e2a41ee613c2b32c2e (diff) | |
download | gcc-9b044d19517541c95681d35a92dbc81e6e21d94f.zip gcc-9b044d19517541c95681d35a92dbc81e6e21d94f.tar.gz gcc-9b044d19517541c95681d35a92dbc81e6e21d94f.tar.bz2 |
Initial revision
From-SVN: r104578
Diffstat (limited to 'libjava/classpath/native/jni/qt-peer/mainthreadinterface.h')
-rw-r--r-- | libjava/classpath/native/jni/qt-peer/mainthreadinterface.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/libjava/classpath/native/jni/qt-peer/mainthreadinterface.h b/libjava/classpath/native/jni/qt-peer/mainthreadinterface.h new file mode 100644 index 0000000..e17b786 --- /dev/null +++ b/libjava/classpath/native/jni/qt-peer/mainthreadinterface.h @@ -0,0 +1,36 @@ +#ifndef MAINTHREADINTERFACE_H +#define MAINTHREADINTERFACE_H + +#include <jni.h> +#include <QApplication> +#include <QObject> +#include <QWidget> +#include <QEvent> + +class AWTEvent : public QEvent { + + public: + AWTEvent() : QEvent( QEvent::User ) + { + } + + virtual void runEvent() + { + } + +}; + +class MainThreadInterface : public QObject { + + private: + QApplication *mainApp; + + public: + MainThreadInterface(QApplication *parent); + bool event ( QEvent * e ); + void postEventToMain(AWTEvent *event); +}; + +extern MainThreadInterface *mainThread; + +#endif |