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

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

class TDESimpleConfigJBridge : public TDESimpleConfig
{
public:
	TDESimpleConfigJBridge(const TQString& arg1,bool arg2) : TDESimpleConfig(arg1,arg2) {};
	TDESimpleConfigJBridge(const TQString& arg1) : TDESimpleConfig(arg1) {};
	TDESimpleConfigJBridge(TDEConfigBackEnd* arg1,bool arg2) : TDESimpleConfig(arg1,arg2) {};
	TDESimpleConfigJBridge(TDEConfigBackEnd* arg1) : TDESimpleConfig(arg1) {};
	void public_sync() {
		TDESimpleConfig::sync();
		return;
	}
	~TDESimpleConfigJBridge() {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.TDESimpleConfig","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.TDESimpleConfig","sync")) {
			TDESimpleConfig::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.TDESimpleConfig","parseConfigFiles")) {
			TDEConfigBase::parseConfigFiles();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.trinitydesktop.koala.TDESimpleConfig",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return true;
		}
	}
};

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDESimpleConfig_finalize(env, obj);
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDESimpleConfig_newTDESimpleConfig__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 TDESimpleConfigJBridge((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_TDESimpleConfig_newTDESimpleConfig__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 TDESimpleConfigJBridge((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_TDESimpleConfig_newTDESimpleConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2(JNIEnv* env, jobject obj, jobject backEnd)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDESimpleConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

