//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstringlist.h>
#include <kparts/factory.h>
#include <tqcstring.h>

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

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_Factory_createPart__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart(), "org.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_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.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_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.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_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.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_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.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_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.kde.koala.Part");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_createPart__Lorg_kde_qt_QWidget_2Ljava_lang_String_2Lorg_kde_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::toQStringList(env, args, &_qlist_args)), "org.kde.koala.Part");
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_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::toQCString(env, libraryName, &_qcstring_libraryName)), "org.kde.koala.KInstanceInterface");
	return xret;
}

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

