-
Notifications
You must be signed in to change notification settings - Fork 0
/
jvm_wrapper.h
53 lines (38 loc) · 1.13 KB
/
jvm_wrapper.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#ifndef jvm_wrapper_h__
#define jvm_wrapper_h__
/********************************************************************
created: 2014/08/13
created: 13:8:2014 17:20
filename: C:\prj\charlotte\src\jvm_wrapper.h
file path: C:\prj\charlotte\src
file base: jvm_wrapper
file ext: h
author: Yuri Volodine
purpose: Java Virtual Machine wrapper
*********************************************************************/
#include <jni.h>
#include <qthread.h>
#include "ch_core.h"
struct ch_launcher : QThread
{
Q_OBJECT
public:
ch_launcher(QObject* parent = 0) : QThread(parent), _retval(0) {}
int result() { return _retval; }
private:
void run() throw(ch_unknown_exc, ch_module_exc);
int _retval;
};
struct ch_jvm_wrapper
{
//ch_jvm_wrapper() {}
//~ch_jvm_wrapper() { delete _launcher; }
static int _launch_data_integration(QObject* parent = 0);
static int _launch_report_designer(QObject* parent = 0);
friend class ch_launcher;
static ch_launcher* _launcher;
private:
static int _launch_data_integration(data_integration_desc* dsc = 0);
static int _launch_report_designer(report_designer_desc* dsc = 0);
};
#endif // jvm_wrapper_h__