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

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

class KConfigINIBackEndJBridge : public KConfigINIBackEnd
{
public:
	KConfigINIBackEndJBridge(KConfigBase* arg1,const QString& arg2,const char* arg3,bool arg4) : KConfigINIBackEnd(arg1,arg2,arg3,arg4) {};
	KConfigINIBackEndJBridge(KConfigBase* arg1,const QString& arg2,const char* arg3) : KConfigINIBackEnd(arg1,arg2,arg3) {};
	void public_sync() {
		KConfigINIBackEnd::sync();
		return;
	}
	void protected_parseSingleConfigFile(QFile& arg1) {
		KConfigINIBackEnd::parseSingleConfigFile(arg1);
		return;
	}
	bool protected_writeConfigFile(QString arg1,bool arg2,bool arg3) {
		return (bool) KConfigINIBackEnd::writeConfigFile(arg1,arg2,arg3);
	}
	bool protected_writeConfigFile(QString arg1,bool arg2) {
		return (bool) KConfigINIBackEnd::writeConfigFile(arg1,arg2);
	}
	bool protected_writeConfigFile(QString arg1) {
		return (bool) KConfigINIBackEnd::writeConfigFile(arg1);
	}
	~KConfigINIBackEndJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigINIBackEnd_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KConfigINIBackEnd_finalize(env, obj);
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigINIBackEnd_newKConfigINIBackEnd__Lorg_kde_koala_KConfigBase_2Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jobject _config, jstring _fileName, jstring _resType)
{
static QString* _qstring__fileName = 0;
static QCString* _qstring__resType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KConfigINIBackEndJBridge((KConfigBase*) QtSupport::getQt(env, _config), (const QString&)*(QString*) QtSupport::toQString(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_kde_koala_KConfigINIBackEnd_newKConfigINIBackEnd__Lorg_kde_koala_KConfigBase_2Ljava_lang_String_2Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jobject _config, jstring _fileName, jstring _resType, jboolean _useKDEGlobals)
{
static QString* _qstring__fileName = 0;
static QCString* _qstring__resType = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KConfigINIBackEndJBridge((KConfigBase*) QtSupport::getQt(env, _config), (const QString&)*(QString*) QtSupport::toQString(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_kde_koala_KConfigINIBackEnd_parseConfigFiles(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KConfigINIBackEnd*) QtSupport::getQt(env, obj))->parseConfigFiles();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigINIBackEnd_parseSingleConfigFile(JNIEnv* env, jobject obj, jobject rFile)
{
	((KConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_parseSingleConfigFile((QFile&)*(QFile*) QtSupport::getQt(env, rFile));
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfigINIBackEnd_writeConfigFile__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring filename)
{
static QString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((KConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_writeConfigFile((QString)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfigINIBackEnd_writeConfigFile__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring filename, jboolean bGlobal)
{
static QString* _qstring_filename = 0;
	jboolean xret = (jboolean) ((KConfigINIBackEndJBridge*) QtSupport::getQt(env, obj))->protected_writeConfigFile((QString)*(QString*) QtSupport::toQString(env, filename, &_qstring_filename), (bool) bGlobal);
	return xret;
}

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

