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

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

class KConfigGroupSaverJBridge : public KConfigGroupSaver
{
public:
	KConfigGroupSaverJBridge(KConfigBase* arg1,TQString arg2) : KConfigGroupSaver(arg1,arg2) {};
	~KConfigGroupSaverJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KConfigGroupSaver_config(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KConfigGroupSaver*) QtSupport::getQt(env, obj))->config(), "org.kde.koala.KConfigBase");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroupSaver_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KConfigGroupSaver_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroupSaver_newKConfigGroupSaver(JNIEnv* env, jobject obj, jobject config, jstring group)
{
static TQString* _qstring_group = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KConfigGroupSaverJBridge((KConfigBase*) QtSupport::getQt(env, config), (TQString)*(TQString*) QtSupport::toQString(env, group, &_qstring_group)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

