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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigBackEnd_changeFileName(JNIEnv* env, jobject obj, jstring _fileName, jstring _resType, jboolean _useKDEGlobals)
{
static QString* _qstring__fileName = 0;
static QCString* _qstring__resType = 0;
	((KConfigBackEnd*) QtSupport::getQt(env, obj))->changeFileName((const QString&)*(QString*) QtSupport::toQString(env, _fileName, &_qstring__fileName), (const char*) QtSupport::toCharString(env, _resType, &_qstring__resType), (bool) _useKDEGlobals);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KConfigBackEnd_checkConfigFilesWritable(JNIEnv* env, jobject obj, jboolean warnUser)
{
	jboolean xret = (jboolean) ((KConfigBackEnd*) QtSupport::getQt(env, obj))->checkConfigFilesWritable((bool) warnUser);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KConfigBackEnd_fileName(JNIEnv* env, jobject obj)
{
	QString  _qstring;
	_qstring = ((KConfigBackEnd*) QtSupport::getQt(env, obj))->fileName();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KConfigBackEnd_getConfigState(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KConfigBackEnd*) QtSupport::getQt(env, obj))->getConfigState();
	return xret;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigBackEnd_setLocaleString(JNIEnv* env, jobject obj, jstring _localeString)
{
static QCString* _qcstring__localeString = 0;
	((KConfigBackEnd*) QtSupport::getQt(env, obj))->setLocaleString((const QCString&)*(QCString*) QtSupport::toQCString(env, _localeString, &_qcstring__localeString));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KConfigBackEnd_sync__(JNIEnv* env, jobject obj)
{
	((KConfigBackEnd*) QtSupport::getQt(env, obj))->sync();
	return;
}

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

