//Auto-generated by kalyptus. DO NOT EDIT.
#include <qstring.h>
#include <qstringlist.h>
#include <qsettings.h>

#include <qtjava/QtSupport.h>
#include <qtjava/QSettings.h>

class QSettingsJBridge : public QSettings
{
public:
	QSettingsJBridge() : QSettings() {};
	QSettingsJBridge(QSettings::Format arg1) : QSettings(arg1) {};
	~QSettingsJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_beginGroup(JNIEnv* env, jobject obj, jstring group)
{
static QString* _qstring_group = 0;
	((QSettings*) QtSupport::getQt(env, obj))->beginGroup((const QString&)*(QString*) QtSupport::toQString(env, group, &_qstring_group));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_qt_QSettings_finalize(env, obj);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_endGroup(JNIEnv* env, jobject obj)
{
	((QSettings*) QtSupport::getQt(env, obj))->endGroup();
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_entryList(JNIEnv* env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->entryList((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_insertSearchPath(JNIEnv* env, jobject obj, jint arg1, jstring arg2)
{
static QString* _qstring_arg2 = 0;
	((QSettings*) QtSupport::getQt(env, obj))->insertSearchPath((QSettings::System) arg1, (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_newQSettings__I(JNIEnv* env, jobject obj, jint format)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new QSettingsJBridge((QSettings::Format) format));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_readBoolEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_readBoolEntry__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean def)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) def);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_readBoolEntry__Ljava_lang_String_2Z_3Z(JNIEnv* env, jobject obj, jstring arg1, jboolean def, jbooleanArray arg3)
{
static QString* _qstring_arg1 = 0;
	bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->readBoolEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) def,  (bool*) _bool_arg3);
	env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QSettings_readDoubleEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jdouble xret = (jdouble) ((QSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QSettings_readDoubleEntry__Ljava_lang_String_2D(JNIEnv* env, jobject obj, jstring arg1, jdouble def)
{
static QString* _qstring_arg1 = 0;
	jdouble xret = (jdouble) ((QSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (double) def);
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_qt_QSettings_readDoubleEntry__Ljava_lang_String_2D_3Z(JNIEnv* env, jobject obj, jstring arg1, jdouble def, jbooleanArray arg3)
{
static QString* _qstring_arg1 = 0;
	bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
	jdouble xret = (jdouble) ((QSettings*) QtSupport::getQt(env, obj))->readDoubleEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (double) def,  (bool*) _bool_arg3);
	env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSettings_readEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	QString  _qstring;
static QString* _qstring_arg1 = 0;
	_qstring = ((QSettings*) QtSupport::getQt(env, obj))->readEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSettings_readEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring def)
{
	QString  _qstring;
static QString* _qstring_arg1 = 0;
static QString* _qstring_def = 0;
	_qstring = ((QSettings*) QtSupport::getQt(env, obj))->readEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, def, &_qstring_def));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_qt_QSettings_readEntry__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring arg1, jstring def, jbooleanArray arg3)
{
	QString  _qstring;
static QString* _qstring_arg1 = 0;
static QString* _qstring_def = 0;
	bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
	_qstring = ((QSettings*) QtSupport::getQt(env, obj))->readEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QString&)*(QString*) QtSupport::toQString(env, def, &_qstring_def),  (bool*) _bool_arg3);
	env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_readListEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->readListEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_readListEntry__Ljava_lang_String_2C(JNIEnv* env, jobject obj, jstring arg1, jchar sep)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
static QChar* _qchar_sep = 0;
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->readListEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QChar&)*(QChar*) QtSupport::toQChar(env, sep, &_qchar_sep));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_readListEntry__Ljava_lang_String_2C_3Z(JNIEnv* env, jobject obj, jstring arg1, jchar sep, jbooleanArray arg3)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
static QChar* _qchar_sep = 0;
	bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->readListEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QChar&)*(QChar*) QtSupport::toQChar(env, sep, &_qchar_sep),  (bool*) _bool_arg3);
	env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_readListEntry__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring arg1, jbooleanArray arg2)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	bool* _bool_arg2 = QtSupport::toBooleanPtr(env, arg2);
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->readListEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1),  (bool*) _bool_arg2);
	env->SetBooleanArrayRegion(arg2, 0, 1, (jboolean*) _bool_arg2);
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSettings_readNumEntry__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jint xret = (jint) ((QSettings*) QtSupport::getQt(env, obj))->readNumEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSettings_readNumEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint def)
{
static QString* _qstring_arg1 = 0;
	jint xret = (jint) ((QSettings*) QtSupport::getQt(env, obj))->readNumEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) def);
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_qt_QSettings_readNumEntry__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring arg1, jint def, jbooleanArray arg3)
{
static QString* _qstring_arg1 = 0;
	bool* _bool_arg3 = QtSupport::toBooleanPtr(env, arg3);
	jint xret = (jint) ((QSettings*) QtSupport::getQt(env, obj))->readNumEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) def,  (bool*) _bool_arg3);
	env->SetBooleanArrayRegion(arg3, 0, 1, (jboolean*) _bool_arg3);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_removeEntry(JNIEnv* env, jobject obj, jstring arg1)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->removeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_removeSearchPath(JNIEnv* env, jobject obj, jint arg1, jstring arg2)
{
static QString* _qstring_arg2 = 0;
	((QSettings*) QtSupport::getQt(env, obj))->removeSearchPath((QSettings::System) arg1, (const QString&)*(QString*) QtSupport::toQString(env, arg2, &_qstring_arg2));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_resetGroup(JNIEnv* env, jobject obj)
{
	((QSettings*) QtSupport::getQt(env, obj))->resetGroup();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_setPath__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring domain, jstring product)
{
static QString* _qstring_domain = 0;
static QString* _qstring_product = 0;
	((QSettings*) QtSupport::getQt(env, obj))->setPath((const QString&)*(QString*) QtSupport::toQString(env, domain, &_qstring_domain), (const QString&)*(QString*) QtSupport::toQString(env, product, &_qstring_product));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_qt_QSettings_setPath__Ljava_lang_String_2Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring domain, jstring product, jint arg3)
{
static QString* _qstring_domain = 0;
static QString* _qstring_product = 0;
	((QSettings*) QtSupport::getQt(env, obj))->setPath((const QString&)*(QString*) QtSupport::toQString(env, domain, &_qstring_domain), (const QString&)*(QString*) QtSupport::toQString(env, product, &_qstring_product), (QSettings::Scope) arg3);
	return;
}

JNIEXPORT jobject JNICALL
Java_org_kde_qt_QSettings_subkeyList(JNIEnv* env, jobject obj, jstring arg1)
{
	QStringList  _qlist;
static QString* _qstring_arg1 = 0;
	_qlist = ((QSettings*) QtSupport::getQt(env, obj))->subkeyList((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1));
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_sync(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->sync();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2D(JNIEnv* env, jobject obj, jstring arg1, jdouble arg2)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (double) arg2);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring arg1, jint arg2)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (int) arg2);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jstring arg2)
{
static QString* _qstring_arg1 = 0;
static QCString* _qstring_arg2 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const char*) QtSupport::toCharString(env, arg2, &_qstring_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2Z(JNIEnv* env, jobject obj, jstring arg1, jboolean arg2)
{
static QString* _qstring_arg1 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (bool) arg2);
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2_3Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring arg1, jobjectArray arg2)
{
static QString* _qstring_arg1 = 0;
static QStringList* _qlist_arg2 = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg2, &_qlist_arg2));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_qt_QSettings_writeEntry__Ljava_lang_String_2_3Ljava_lang_String_2C(JNIEnv* env, jobject obj, jstring arg1, jobjectArray arg2, jchar sep)
{
static QString* _qstring_arg1 = 0;
static QStringList* _qlist_arg2 = 0;
static QChar* _qchar_sep = 0;
	jboolean xret = (jboolean) ((QSettings*) QtSupport::getQt(env, obj))->writeEntry((const QString&)*(QString*) QtSupport::toQString(env, arg1, &_qstring_arg1), (const QStringList&)*(QStringList*) QtSupport::toQStringList(env, arg2, &_qlist_arg2), (const QChar&)*(QChar*) QtSupport::toQChar(env, sep, &_qchar_sep));
	return xret;
}

