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

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

class KSimpleConfigJBridge : public KSimpleConfig
{
public:
	KSimpleConfigJBridge(const TQString& arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
	KSimpleConfigJBridge(const TQString& arg1) : KSimpleConfig(arg1) {};
	KSimpleConfigJBridge(TDEConfigBackEnd* arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
	KSimpleConfigJBridge(TDEConfigBackEnd* arg1) : KSimpleConfig(arg1) {};
	void public_sync() {
		KSimpleConfig::sync();
		return;
	}
	~KSimpleConfigJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void reparseConfiguration() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","reparseConfiguration")) {
			TDEConfig::reparseConfiguration();
		}
		return;
	}
	void customEvent(TQCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.trinitydesktop.qt.TQCustomEvent")) {
			TQObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(TQTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.trinitydesktop.qt.TQTimerEvent")) {
			TQObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(TQChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.trinitydesktop.qt.TQChildEvent")) {
			TQObject::childEvent(arg1);
		}
		return;
	}
	void sync() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","sync")) {
			KSimpleConfig::sync();
		}
		return;
	}
	void insertChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.trinitydesktop.qt.TQObject")) {
			TQObject::insertChild(arg1);
		}
		return;
	}
	void parseConfigFiles() {
		if (!QtSupport::voidDelegate(this,"org.trinitydesktop.koala.KSimpleConfig","parseConfigFiles")) {
			TDEConfigBase::parseConfigFiles();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.KSimpleConfig",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_className(JNIEnv* env, jobject obj)
{
	const char* _qstring;
	_qstring = ((KSimpleConfig*) QtSupport::getQt(env, obj))->className();
	return QtSupport::fromCharString(env, (char *) _qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_KSimpleConfig_finalize(env, obj);
	return;
}

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

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_metaObject(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KSimpleConfig*) QtSupport::getQt(env, obj))->metaObject(), "org.trinitydesktop.qt.TQMetaObject");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName)
{
static TQString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring fileName, jboolean bReadOnly)
{
static TQString* _qstring_fileName = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSimpleConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) bReadOnly));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_KSimpleConfig_newKSimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2Z(JNIEnv* env, jobject obj, jobject backEnd, jboolean bReadOnly)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KSimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd), (bool) bReadOnly));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

