//Auto-generated by kalyptus. DO NOT EDIT.
#include <klibloader.h>
#include <qstringlist.h>

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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLibFactory_create__(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLibFactory*) QtSupport::getQt(env, obj))->create(), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLibFactory_create__Lorg_kde_qt_QObject_2(JNIEnv* env, jobject obj, jobject parent)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLibFactory*) QtSupport::getQt(env, obj))->create((QObject*) QtSupport::getQt(env, parent)), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLibFactory_create__Lorg_kde_qt_QObject_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name)
{
static QCString* _qstring_name = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLibFactory*) QtSupport::getQt(env, obj))->create((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name)), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLibFactory_create__Lorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name, jstring classname)
{
static QCString* _qstring_name = 0;
static QCString* _qstring_classname = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLibFactory*) QtSupport::getQt(env, obj))->create((QObject*) QtSupport::getQt(env, parent), (const char*) QtSupport::toCharString(env, name, &_qstring_name), (const char*) QtSupport::toCharString(env, classname, &_qstring_classname)), "org.kde.qt.QObject");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLibFactory_create__Lorg_kde_qt_QObject_2Ljava_lang_String_2Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject parent, jstring name, jstring classname, jobjectArray args)
{
static QCString* _qstring_name = 0;
static QCString* _qstring_classname = 0;
static QStringList* _qlist_args = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLibFactory*) QtSupport::getQt(env, obj))->create((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.qt.QObject");
	return xret;
}

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

