Retro68/gcc/libjava/classpath/native/jni/qt-peer/mainthreadinterface.h
Wolfgang Thaller aaf905ce07 add gcc 4.70
2012-03-28 01:13:14 +02:00

37 lines
560 B
C++

#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