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

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

class TDEConfigINIBackEndJBridge : public TDEConfigINIBackEnd
{
public:
	TDEConfigINIBackEndJBridge(TDEConfigBase* arg1,const TQString& arg2,const char* arg3,bool arg4) : TDEConfigINIBackEnd(arg1,arg2,arg3,arg4) {};
	TDEConfigINIBackEndJBridge(TDEConfigBase* arg1,const TQString& arg2,const char* arg3) : TDEConfigINIBackEnd(arg1,arg2,arg3) {};
	void public_sync() {
		TDEConfigINIBackEnd::sync();
		return;
	}
	void protected_parseSingleConfigFile(TQFile& arg1) {
		TDEConfigINIBackEnd::parseSingleConfigFile(arg1);
		return;
	}
	bool protected_writeConfigFile(TQString arg1,bool arg2,bool arg3) {
		return (bool) TDEConfigINIBackEnd::writeConfigFile(arg1,arg2,arg3);
	}
	bool protected_writeConfigFile(TQString arg1,bool arg2) {
		return (bool) TDEConfigINIBackEnd::writeConfigFile(arg1,arg2);
	}
	bool protected_writeConfigFile(TQString arg1) {
		return (bool) TDEConfigINIBackEnd::writeConfigFile(arg1);
	}
	~TDEConfigINIBackEndJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_finalize(JNIEnv* env, jobject obj)
{
	if (QtSupport::allocatedInJavaWorld(env, obj)) {
		delete (TDEConfigINIBackEnd*)QtSupport::getQt(env, obj);
		QtSupport::setQt(env, obj, 0);
	}
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_newTDEConfigINIBackEnd__Lorg_trinitydesktop_koala_TDEConfigBase_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject _config, jstring _fileName, jstring _resType)
{
static TQString* _qstring__fileName = 0;
static TQCString* _qstring__resType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDEConfigINIBackEndJBridge((TDEConfigBase*) QtSupport::getQt(env, _config), (const TQString&)*(TQString*) QtSupport::toTQString(env, _fileName, &_qstring__fileName), (const char*) QtSupport::toCharString(env, _resType, &_qstring__resType)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_newTDEConfigINIBackEnd__Lorg_trinitydesktop_koala_TDEConfigBase_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject _config, jstring _fileName, jstring _resType, jboolean _useKDEGlobals)
{
static TQString* _qstring__fileName = 0;
static TQCString* _qstring__resType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDEConfigINIBackEndJBridge((TDEConfigBase*) QtSupport::getQt(env, _config), (const TQString&)*(TQString*) QtSupport::toTQString(env, _fileName, &_qstring__fileName), (const char*) QtSupport::toCharString(env, _resType, &_qstring__resType), (bool) _useKDEGlobals));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_parseConfigFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((TDEConfigINIBackEnd*) QtSupport::getQt(env, obj))->parseConfigFiles();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_parseSingleConfigFile(JNIEnv* env, jobject obj, jobject rFile)
{
	((TDEConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_parseSingleConfigFile((TQFile&)*(TQFile*) QtSupport::getQt(env, rFile));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_sync__Z(JNIEnv* env, jobject obj, jboolean bMerge)
{
	((TDEConfigINIBackEnd*) QtSupport::getQt(env, obj))->sync((bool) bMerge);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_writeConfigFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TDEConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_writeConfigFile((TQString)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_writeConfigFile__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring filename, jboolean bGlobal)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TDEConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_writeConfigFile((TQString)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) bGlobal);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDEConfigINIBackEnd_writeConfigFile__Ljava_lang_String_2ZZ(JNIEnv* env, jobject obj, jstring filename, jboolean bGlobal, jboolean bMerge)
{
static TQString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((TDEConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_writeConfigFile((TQString)*(TQString*) QtSupport::toTQString(env, filename, &_qstring_filename), (bool) bGlobal, (bool) bMerge);
	return xret;
}

