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

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

class KSimpleConfigJBridge : public KSimpleConfig
{
public:
	KSimpleConfigJBridge(const QString& arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
	KSimpleConfigJBridge(const QString& arg1) : KSimpleConfig(arg1) {};
	KSimpleConfigJBridge(KConfigBackEnd* arg1,bool arg2) : KSimpleConfig(arg1,arg2) {};
	KSimpleConfigJBridge(KConfigBackEnd* arg1) : KSimpleConfig(arg1) {};
	void public_sync() {
		KSimpleConfig::sync();
		return;
	}
	~KSimpleConfigJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::removeChild(arg1);
		}
		return;
	}
	void reparseConfiguration() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KSimpleConfig","reparseConfiguration")) {
			KConfig::reparseConfiguration();
		}
		return;
	}
	void customEvent(QCustomEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"customEvent",(void*)arg1,"org.kde.qt.QCustomEvent")) {
			QObject::customEvent(arg1);
		}
		return;
	}
	void timerEvent(QTimerEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"timerEvent",(void*)arg1,"org.kde.qt.QTimerEvent")) {
			QObject::timerEvent(arg1);
		}
		return;
	}
	void childEvent(QChildEvent* arg1) {
		if (!QtSupport::eventDelegate(this,"childEvent",(void*)arg1,"org.kde.qt.QChildEvent")) {
			QObject::childEvent(arg1);
		}
		return;
	}
	void sync() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KSimpleConfig","sync")) {
			KSimpleConfig::sync();
		}
		return;
	}
	void insertChild(QObject* arg1) {
		if (!QtSupport::eventDelegate(this,"insertChild",(void*)arg1,"org.kde.qt.QObject")) {
			QObject::insertChild(arg1);
		}
		return;
	}
	void parseConfigFiles() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KSimpleConfig","parseConfigFiles")) {
			KConfigBase::parseConfigFiles();
		}
		return;
	}
	bool eventFilter(QObject* object,QEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KSimpleConfig",object,event)) {
			return QObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_KSimpleConfig_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KSimpleConfig_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_KSimpleConfig_isDisposed(JNIEnv* env, jobject obj)
{
	return (QtSupport::getQt(env, obj) == 0);
}

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

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

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

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

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

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

