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

#include <qtjava/QtSupport.h>
#include <qtjava/QStyleFactory.h>

class QStyleFactoryJBridge : public QStyleFactory
{
public:
	QStyleFactoryJBridge() : QStyleFactory() {};
	~QStyleFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleFactory_create(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static QString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)QStyleFactoryJBridge::create((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1)), "org.kde.qt.QStyle");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QStyleFactory_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleFactory_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (QStyleFactory*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QStyleFactory_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QStyleFactory_keys(JNIEnv* env, jclass cls)
{
	QStringList  _qlist;
	(void) cls;
	_qlist = QStyleFactoryJBridge::keys();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QStyleFactory_newQStyleFactory(JNIEnv* env, jobject obj)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QStyleFactoryJBridge());
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

