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

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

class KConfigJBridge : public KConfig
{
public:
	KConfigJBridge(const TQString& arg1,bool arg2,bool arg3,const char* arg4) : KConfig(arg1,arg2,arg3,arg4) {};
	KConfigJBridge(const TQString& arg1,bool arg2,bool arg3) : KConfig(arg1,arg2,arg3) {};
	KConfigJBridge(const TQString& arg1,bool arg2) : KConfig(arg1,arg2) {};
	KConfigJBridge(const TQString& arg1) : KConfig(arg1) {};
	KConfigJBridge() : KConfig() {};
	KConfigJBridge(KConfigBackEnd* arg1,bool arg2) : KConfig(arg1,arg2) {};
	KConfigJBridge(KConfigBackEnd* arg1) : KConfig(arg1) {};
	void public_rollback() {
		KConfig::rollback();
		return;
	}
	void public_reparseConfiguration() {
		KConfig::reparseConfiguration();
		return;
	}
	bool protected_internalHasGroup(const TQCString& arg1) {
		return (bool) KConfig::internalHasGroup(arg1);
	}
	void protected_putData(const KEntryKey& arg1,const KEntry& arg2,bool arg3) {
		KConfig::putData(arg1,arg2,arg3);
		return;
	}
	void protected_putData(const KEntryKey& arg1,const KEntry& arg2) {
		KConfig::putData(arg1,arg2);
		return;
	}
	KEntry protected_lookupData(const KEntryKey& arg1) {
		return (KEntry) KConfig::lookupData(arg1);
	}
	~KConfigJBridge() {QtSupport::qtKeyDeleted(this);}
	void removeChild(TQObject* arg1) {
		if (!QtSupport::eventDelegate(this,"removeChild",(void*)arg1,"org.kde.qt.TQObject")) {
			TQObject::removeChild(arg1);
		}
		return;
	}
	void reparseConfiguration() {
		if (!QtSupport::voidDelegate(this,"org.kde.koala.KConfig","reparseConfiguration")) {
			KConfig::reparseConfiguration();
		}
		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.KConfig","sync")) {
			KConfigBase::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.KConfig","parseConfigFiles")) {
			KConfigBase::parseConfigFiles();
		}
		return;
	}
	bool eventFilter(TQObject* object,TQEvent* event) {
		if (!QtSupport::eventFilterDelegate(this,"org.kde.koala.KConfig",object,event)) {
			return TQObject::eventFilter(object,event);
		} else {
			return TRUE;
		}
	}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_checkUpdate(JNIEnv* env, jobject obj, jstring id, jstring updateFile)
{
static TQString* _qstring_id = 0;
static TQString* _qstring_updateFile = 0;
	((KConfig*) QtSupport::getQt(env, obj))->checkUpdate((const TQString&)*(TQString*) QtSupport::toQString(env, id, &_qstring_id), (const TQString&)*(TQString*) QtSupport::toQString(env, updateFile, &_qstring_updateFile));
	return;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KConfig_copyTo__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring file)
{
static TQString* _qstring_file = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KConfig*) QtSupport::getQt(env, obj))->copyTo((const TQString&)*(TQString*) QtSupport::toQString(env, file, &_qstring_file)), "org.kde.koala.KConfig");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KConfig_copyTo__Ljava_lang_String_2Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jstring file, jobject config)
{
static TQString* _qstring_file = 0;
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KConfig*) QtSupport::getQt(env, obj))->copyTo((const TQString&)*(TQString*) QtSupport::toQString(env, file, &_qstring_file), (KConfig*) QtSupport::getQt(env, config)), "org.kde.koala.KConfig");
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KConfig_finalize(env, obj);
	return;
}

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfig_forceGlobal(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KConfig*) QtSupport::getQt(env, obj))->forceGlobal();
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KConfig_groupList(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((KConfig*) QtSupport::getQt(env, obj))->groupList();
	return (jobject) QtSupport::arrayWithQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfig_internalHasGroup(JNIEnv* env, jobject obj, jstring group)
{
static TQCString* _qcstring_group = 0;
	jboolean xret = (jboolean) ((KConfigJBridge*) QtSupport::getQt(env, obj))->protected_internalHasGroup((const TQCString&)*(TQCString*) QtSupport::toQCString(env, group, &_qcstring_group));
	return xret;
}

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

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_newKConfig__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 KConfigJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_newKConfig__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 KConfigJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (bool) bReadOnly));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_newKConfig__Ljava_lang_String_2ZZLjava_lang_String_2(JNIEnv* env, jobject obj, jstring fileName, jboolean bReadOnly, jboolean bUseKDEGlobals, jstring resType)
{
static TQString* _qstring_fileName = 0;
static TQCString* _qstring_resType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KConfigJBridge((const TQString&)*(TQString*) QtSupport::toQString(env, fileName, &_qstring_fileName), (bool) bReadOnly, (bool) bUseKDEGlobals, (const char*) QtSupport::toCharString(env, resType, &_qstring_resType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_putData__Lorg_kde_koala_KEntryKey_2Lorg_kde_koala_KEntry_2(JNIEnv* env, jobject obj, jobject _key, jobject _data)
{
	((KConfigJBridge*) QtSupport::getQt(env, obj))->protected_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_KConfig_putData__Lorg_kde_koala_KEntryKey_2Lorg_kde_koala_KEntry_2Z(JNIEnv* env, jobject obj, jobject _key, jobject _data, jboolean _checkGroup)
{
	((KConfigJBridge*) QtSupport::getQt(env, obj))->protected_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_KConfig_reparseConfiguration(JNIEnv* env, jobject obj)
{
	((KConfigJBridge*) QtSupport::getQt(env, obj))->public_reparseConfiguration();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_rollback__(JNIEnv* env, jobject obj)
{
	((KConfigJBridge*) QtSupport::getQt(env, obj))->public_rollback();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_rollback__Z(JNIEnv* env, jobject obj, jboolean bDeep)
{
	((KConfig*) QtSupport::getQt(env, obj))->rollback((bool) bDeep);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_setFileWriteMode(JNIEnv* env, jobject obj, jint mode)
{
	((KConfig*) QtSupport::getQt(env, obj))->setFileWriteMode((int) mode);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfig_setForceGlobal(JNIEnv* env, jobject obj, jboolean force)
{
	((KConfig*) QtSupport::getQt(env, obj))->setForceGlobal((bool) force);
	return;
}

