//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;
}

