//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqstylefactory.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class TQStyleFactoryJBridge : public TQStyleFactory
{
public:
	TQStyleFactoryJBridge() : TQStyleFactory() {};
	~TQStyleFactoryJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QStyleFactory_create(JNIEnv* env, jclass cls, jstring arg1)
{
	(void) cls;
static TQString* _qstring_arg1 = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)TQStyleFactoryJBridge::create((const TQString&)*(TQString*) QtSupport::toTQString(env, arg1, &_qstring_arg1)), "org.trinitydesktop.qt.TQStyle");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_qt_QStyleFactory_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_qt_QStyleFactory_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_qt_QStyleFactory_keys(JNIEnv* env, jclass cls)
{
	TQStringList  _qlist;
	(void) cls;
	_qlist = TQStyleFactoryJBridge::keys();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

