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] - Blame information for rev 774

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 774 jeremybenn
#ifndef MAINTHREADINTERFACE_H
2
#define MAINTHREADINTERFACE_H
3
 
4
#include <jni.h>
5
#include <QApplication>
6
#include <QObject>
7
#include <QWidget>
8
#include <QEvent>
9
 
10
class AWTEvent : public QEvent {
11
 
12
 public:
13
  AWTEvent() : QEvent( QEvent::User )
14
    {
15
    }
16
 
17
    virtual void runEvent()
18
    {
19
    }
20
 
21
};
22
 
23
class MainThreadInterface : public QObject {
24
 
25
 private:
26
  QApplication *mainApp;
27
 
28
 public:
29
  MainThreadInterface(QApplication *parent);
30
  bool event ( QEvent * e );
31
  void postEventToMain(AWTEvent *event);
32
};
33
 
34
extern MainThreadInterface *mainThread;
35
 
36
#endif

powered by: WebSVN 2.1.0

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