summaryrefslogtreecommitdiffstats
path: root/tdejava/koala/tdejava/Factory.cpp
blob: 35ca6af7555a0e2cce116170063cc69198afec7d (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
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstringlist.h>
#include <tdeparts/factory.h>
#include <tqcstring.h>

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/Factory.h>

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_Factory_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KParts::Factory*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart(), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2(JNIEnv* env, jobject obj, jobject parentWidget)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName)
{
static TQCString* _qstring_widgetName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent)
{
static TQCString* _qstring_widgetName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name)
{
static TQCString* _qstring_widgetName = 0;
static TQCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring classname)
{
static TQCString* _qstring_widgetName = 0;
static TQCString* _qstring_name = 0;
static TQCString* _qstring_classname = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_createPart__Lorg_trinitydesktop_qt_QWidget_2Ljava_lang_String_2Lorg_trinitydesktop_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parentWidget, jstring widgetName, jobject parent, jstring name, jstring classname, jobjectArray args)
{
static TQCString* _qstring_widgetName = 0;
static TQCString* _qstring_name = 0;
static TQCString* _qstring_classname = 0;
static TQStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((TQWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (TQObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname), (const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, args, &_qlist_args)), "org.trinitydesktop.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_partInstanceFromLibrary(JNIEnv* env, jclass cls, jstring libraryName)
{
	(void) cls;
static TQCString* _qcstring_libraryName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KParts::Factory::partInstanceFromLibrary((const TQCString&)*(TQCString*) QtSupport::toTQCString(env, libraryName, &_qcstring_libraryName)), "org.trinitydesktop.koala.TDEInstanceInterface");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_Factory_partInstance(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->partInstance(), "org.trinitydesktop.koala.TDEInstanceInterface");
	return xret;
}