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

#include <qtjava/QtSupport.h>
#include <tdejava/TDESupport.h>
#include <tdejava/TDEConfigGroupSaver.h>

class TDEConfigGroupSaverJBridge : public TDEConfigGroupSaver
{
public:
	TDEConfigGroupSaverJBridge(TDEConfigBase* arg1,TQString arg2) : TDEConfigGroupSaver(arg1,arg2) {};
	~TDEConfigGroupSaverJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDEConfigGroupSaver_config(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDEConfigGroupSaver*) QtSupport::getQt(env, obj))->config(), "org.trinitydesktop.koala.TDEConfigBase");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigGroupSaver_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEConfigGroupSaver_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigGroupSaver_newTDEConfigGroupSaver(JNIEnv* env, jobject obj, jobject config, jstring group)
{
static TQString* _qstring_group = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDEConfigGroupSaverJBridge((TDEConfigBase*) QtSupport::getQt(env, config), (TQString)*(TQString*) QtSupport::toTQString(env, group, &_qstring_group)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

