summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/kdejava/KCModuleLoader.cpp
blob: 2cf4b29ce239fa73502316859f5bc3f57a5ba944 (plain)
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
//Auto-generated by kalyptus. DO NOT EDIT.
#include <kcmoduleinfo.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <kcmoduleloader.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KCModuleLoader.h>

class KCModuleLoaderJBridge : public KCModuleLoader
{
public:
	KCModuleLoaderJBridge() : KCModuleLoader() {};
	~KCModuleLoaderJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleLoader_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KCModuleLoader_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleLoader_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (KCModuleLoader*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCModuleLoader_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Ljava_lang_String_2I(JNIEnv* env, jclass cls, jstring module, jint report)
{
	(void) cls;
static TQString* _qstring_module = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const TQString&)*(TQString*) QtSupport::toTQString(env, module, &_qstring_module), (KCModuleLoader::ErrorReporting) report), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Ljava_lang_String_2ILorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jstring module, jint report, jobject parent)
{
	(void) cls;
static TQString* _qstring_module = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const TQString&)*(TQString*) QtSupport::toTQString(env, module, &_qstring_module), (KCModuleLoader::ErrorReporting) report, (TQWidget*) QtSupport::getQt(env, parent)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Ljava_lang_String_2ILorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring module, jint report, jobject parent, jstring name)
{
	(void) cls;
static TQString* _qstring_module = 0;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const TQString&)*(TQString*) QtSupport::toTQString(env, module, &_qstring_module), (KCModuleLoader::ErrorReporting) report, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Ljava_lang_String_2ILorg_kde_qt_QWidget_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring module, jint report, jobject parent, jstring name, jobjectArray args)
{
	(void) cls;
static TQString* _qstring_module = 0;
static TQCString* _qstring_name = 0;
static TQStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const TQString&)*(TQString*) QtSupport::toTQString(env, module, &_qstring_module), (KCModuleLoader::ErrorReporting) report, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Lorg_kde_koala_KCModuleInfo_2I(JNIEnv* env, jclass cls, jobject module, jint report)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module), (KCModuleLoader::ErrorReporting) report), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Lorg_kde_koala_KCModuleInfo_2IZ(JNIEnv* env, jclass cls, jobject module, jint report, jboolean withFallback)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module), (KCModuleLoader::ErrorReporting) report, (bool) withFallback), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Lorg_kde_koala_KCModuleInfo_2IZLorg_kde_qt_QWidget_2(JNIEnv* env, jclass cls, jobject module, jint report, jboolean withFallback, jobject parent)
{
	(void) cls;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module), (KCModuleLoader::ErrorReporting) report, (bool) withFallback, (TQWidget*) QtSupport::getQt(env, parent)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Lorg_kde_koala_KCModuleInfo_2IZLorg_kde_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject module, jint report, jboolean withFallback, jobject parent, jstring name)
{
	(void) cls;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module), (KCModuleLoader::ErrorReporting) report, (bool) withFallback, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_loadModule__Lorg_kde_koala_KCModuleInfo_2IZLorg_kde_qt_QWidget_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jclass cls, jobject module, jint report, jboolean withFallback, jobject parent, jstring name, jobjectArray args)
{
	(void) cls;
static TQCString* _qstring_name = 0;
static TQStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::loadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module), (KCModuleLoader::ErrorReporting) report, (bool) withFallback, (TQWidget*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleLoader_newKCModuleLoader(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KCModuleLoaderJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCModuleLoader_reportError(JNIEnv* env, jclass cls, jint report, jstring text, jstring details, jobject parent)
{
	(void) cls;
static TQString* _qstring_text = 0;
static TQString* _qstring_details = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KCModuleLoaderJBridge::reportError((KCModuleLoader::ErrorReporting) report, (const TQString&)*(TQString*) QtSupport::toTQString(env, text, &_qstring_text), (TQString)*(TQString*) QtSupport::toTQString(env, details, &_qstring_details), (TQWidget*) QtSupport::getQt(env, parent)), "org.kde.koala.KCModule");
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCModuleLoader_testModule__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring module)
{
	(void) cls;
static TQString* _qstring_module = 0;
	jboolean xret = (jboolean) KCModuleLoaderJBridge::testModule((const TQString&)*(TQString*) QtSupport::toTQString(env, module, &_qstring_module));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KCModuleLoader_testModule__Lorg_kde_koala_KCModuleInfo_2(JNIEnv* env, jclass cls, jobject module)
{
	(void) cls;
	jboolean xret = (jboolean) KCModuleLoaderJBridge::testModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, module));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KCModuleLoader_unloadModule(JNIEnv* env, jclass cls, jobject mod)
{
	(void) cls;
	KCModuleLoaderJBridge::unloadModule((const KCModuleInfo&)*(const KCModuleInfo*) QtSupport::getQt(env, mod));
	return;
}