//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstringlist.h>
#include <kparts/factory.h>
#include <qcstring.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((QWidget*) 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 QCString* _qstring_widgetName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((QWidget*) 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 QCString* _qstring_widgetName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (QObject*) 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 QCString* _qstring_widgetName = 0;
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (QObject*) 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 QCString* _qstring_widgetName = 0;
static QCString* _qstring_name = 0;
static QCString* _qstring_classname = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (QObject*) 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 QCString* _qstring_widgetName = 0;
static QCString* _qstring_name = 0;
static QCString* _qstring_classname = 0;
static QStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KParts::Factory*) QtSupport::getQt(env, obj))->createPart((QWidget*) QtSupport::getQt(env, parentWidget), (const char*) QtSupport::toCharString(env, widgetName, &_qstring_widgetName), (QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname), (const QStringList&)*(QStringList*) 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.QMetaObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_Factory_partInstanceFromLibrary(JNIEnv* env, jclass cls, jstring libraryName)
{
	(void) cls;
static QCString* _qcstring_libraryName = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)KParts::Factory::partInstanceFromLibrary((const QCString&)*(QCString*) 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;
}

