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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfig_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEConfig_finalize(env, obj);
	return;
}

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

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

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

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

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

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfig_newTDEConfig__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 TDEConfigJBridge((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_TDEConfig_newTDEConfig__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 TDEConfigJBridge((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_TDEConfig_newTDEConfig__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 TDEConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, fileName, &_qstring_fileName), (bool) bReadOnly, (bool) bUseKDEGlobals));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfig_newTDEConfig__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 TDEConfigJBridge((const TQString&)*(TQString*) QtSupport::toTQString(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_trinitydesktop_koala_TDEConfig_newTDEConfig__Lorg_trinitydesktop_koala_TDEConfigBackEnd_2(JNIEnv* env, jobject obj, jobject backEnd)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDEConfigJBridge((TDEConfigBackEnd*) QtSupport::getQt(env, backEnd)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfig_putData__Lorg_trinitydesktop_koala_KEntryKey_2Lorg_trinitydesktop_koala_KEntry_2(JNIEnv* env, jobject obj, jobject _key, jobject _data)
{
	((TDEConfigJBridge*) 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_trinitydesktop_koala_TDEConfig_putData__Lorg_trinitydesktop_koala_KEntryKey_2Lorg_trinitydesktop_koala_KEntry_2Z(JNIEnv* env, jobject obj, jobject _key, jobject _data, jboolean _checkGroup)
{
	((TDEConfigJBridge*) 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_trinitydesktop_koala_TDEConfig_reparseConfiguration(JNIEnv* env, jobject obj)
{
	((TDEConfigJBridge*) QtSupport::getQt(env, obj))->public_reparseConfiguration();
	return;
}

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

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

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

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

