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

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

class KConfigGroupJBridge : public KConfigGroup
{
public:
	KConfigGroupJBridge(KConfigBase* arg1,const TQCString& arg2) : KConfigGroup(arg1,arg2) {};
	void public_sync() {
		KConfigGroup::sync();
		return;
	}
	~KConfigGroupJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void sync() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KConfigGroup","sync")) {
			KConfigGroup::sync();
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void parseConfigFiles() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KConfigGroup","parseConfigFiles")) {
			KConfigBase::parseConfigFiles();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KConfigGroup",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_deleteGroup__(JNIEnv* env, jobject obj)
{
	((KConfigGroup*) QtSupport::getQt(env, obj))->deleteGroup();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_deleteGroup__Z(JNIEnv* env, jobject obj, jboolean bGlobal)
{
	((KConfigGroup*) QtSupport::getQt(env, obj))->deleteGroup((bool) bGlobal);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KConfigGroup_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj) && ((KConfigGroup*)QtSupport::getQt(env, obj))->parent() == 0) {
		delete (KConfigGroup*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfigGroup_groupIsImmutable(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KConfigGroup*) QtSupport::getQt(env, obj))->groupIsImmutable();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KConfigGroup_lookupData(JNIEnv* env, jobject obj, jobject _key)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)new KEntry(((KConfigGroup*) QtSupport::getQt(env, obj))->lookupData((const KEntryKey&)*(const KEntryKey*) QtSupport::getQt(env, _key))), "org.kde.koala.KEntry", TRUE);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_newKConfigGroup(JNIEnv* env, jobject obj, jobject master, jstring group)
{
static TQCString* _qcstring_group = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KConfigGroupJBridge((KConfigBase*) QtSupport::getQt(env, master), (const TQCString&)*(TQCString*) QtSupport::toQCString(env, group, &_qcstring_group)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_putData__Lorg_kde_koala_KEntryKey_2Lorg_kde_koala_KEntry_2(JNIEnv* env, jobject obj, jobject _key, jobject _data)
{
	((KConfigGroup*) QtSupport::getQt(env, obj))->putData((const KEntryKey&)*(const KEntryKey*) QtSupport::getQt(env, _key), (const KEntry&)*(const KEntry*) QtSupport::getQt(env, _data));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_putData__Lorg_kde_koala_KEntryKey_2Lorg_kde_koala_KEntry_2Z(JNIEnv* env, jobject obj, jobject _key, jobject _data, jboolean _checkGroup)
{
	((KConfigGroup*) QtSupport::getQt(env, obj))->putData((const KEntryKey&)*(const KEntryKey*) QtSupport::getQt(env, _key), (const KEntry&)*(const KEntry*) QtSupport::getQt(env, _data), (bool) _checkGroup);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_setDirty(JNIEnv* env, jobject obj, jboolean b)
{
	((KConfigGroup*) QtSupport::getQt(env, obj))->setDirty((bool) b);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigGroup_sync(JNIEnv* env, jobject obj)
{
	((KConfigGroupJBridge*) QtSupport::getQt(env, obj))->public_sync();
	return;
}

