URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [classpath/] [native/] [jni/] [qt-peer/] [mainthreadinterface.h] - Rev 774
Compare with Previous | Blame | View Log
#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