OpenCores
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
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.