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

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

class KLocaleJBridge : public KLocale
{
public:
	KLocaleJBridge(const QString& arg1,KConfig* arg2) : KLocale(arg1,arg2) {};
	KLocaleJBridge(const QString& arg1) : KLocale(arg1) {};
	KLocaleJBridge(const KLocale& arg1) : KLocale(arg1) {};
	static void protected_initInstance() {
		KLocale::initInstance();
		return;
	}
	~KLocaleJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale__1initLanguage(JNIEnv* env, jclass cls, jobject config)
{
	QString  _qstring;
	(void) cls;
	_qstring = KLocaleJBridge::_initLanguage((KConfigBase*) QtSupport::getQt(env, config));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_allCountriesTwoAlpha(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KLocale*) QtSupport::getQt(env, obj))->allCountriesTwoAlpha();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_allLanguagesTwoAlpha(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KLocale*) QtSupport::getQt(env, obj))->allLanguagesTwoAlpha();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_calendar(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLocale*) QtSupport::getQt(env, obj))->calendar(), "org.kde.koala.KCalendarSystem");
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_codecForEncoding(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((KLocale*) QtSupport::getQt(env, obj))->codecForEncoding(), "org.kde.qt.QTextCodec");
	return xret;
}

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

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

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

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

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_dateMonthNamePossessive(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->dateMonthNamePossessive();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_defaultCountry(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KLocaleJBridge::defaultCountry();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_defaultLanguage(JNIEnv* env, jclass cls)
{
	QString  _qstring;
	(void) cls;
	_qstring = KLocaleJBridge::defaultLanguage();
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_dispose(JNIEnv* env, jobject obj)
{
	Java_org_kde_koala_KLocale_finalize(env, obj);
	return;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_encodingMib(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->encodingMib();
	return xret;
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_fileEncodingMib(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->fileEncodingMib();
	return xret;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject pDateTime)
{
	QString  _qstring;
static QDateTime* _qdate_pDateTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDateTime((const QDateTime&)*(QDateTime*) QtSupport::toQDateTime(env, pDateTime, &_qdate_pDateTime));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat)
{
	QString  _qstring;
static QDateTime* _qdate_pDateTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDateTime((const QDateTime&)*(QDateTime*) QtSupport::toQDateTime(env, pDateTime, &_qdate_pDateTime), (bool) shortFormat);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2ZZ(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat, jboolean includeSecs)
{
	QString  _qstring;
static QDateTime* _qdate_pDateTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDateTime((const QDateTime&)*(QDateTime*) QtSupport::toQDateTime(env, pDateTime, &_qdate_pDateTime), (bool) shortFormat, (bool) includeSecs);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject pDate)
{
	QString  _qstring;
static QDate* _qdate_pDate = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDate((const QDate&)*(QDate*) QtSupport::toQDate(env, pDate, &_qdate_pDate));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDate, jboolean shortFormat)
{
	QString  _qstring;
static QDate* _qdate_pDate = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDate((const QDate&)*(QDate*) QtSupport::toQDate(env, pDate, &_qdate_pDate), (bool) shortFormat);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatLong(JNIEnv* env, jobject obj, jlong num)
{
	QString  _qstring;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatLong((long) num);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatMoney__D(JNIEnv* env, jobject obj, jdouble num)
{
	QString  _qstring;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatMoney((double) num);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatMoney__DLjava_lang_String_2(JNIEnv* env, jobject obj, jdouble num, jstring currency)
{
	QString  _qstring;
static QString* _qstring_currency = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatMoney((double) num, (const QString&)*(QString*) QtSupport::toQString(env, currency, &_qstring_currency));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatMoney__DLjava_lang_String_2I(JNIEnv* env, jobject obj, jdouble num, jstring currency, jint digits)
{
	QString  _qstring;
static QString* _qstring_currency = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatMoney((double) num, (const QString&)*(QString*) QtSupport::toQString(env, currency, &_qstring_currency), (int) digits);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatNumber__D(JNIEnv* env, jobject obj, jdouble num)
{
	QString  _qstring;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatNumber((double) num);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatNumber__DI(JNIEnv* env, jobject obj, jdouble num, jint precision)
{
	QString  _qstring;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatNumber((double) num, (int) precision);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2(JNIEnv* env, jobject obj, jobject pTime)
{
	QString  _qstring;
static QTime* _qtime_pTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatTime((const QTime&)*(QTime*) QtSupport::toQTime(env, pTime, &_qtime_pTime));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2Z(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs)
{
	QString  _qstring;
static QTime* _qtime_pTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatTime((const QTime&)*(QTime*) QtSupport::toQTime(env, pTime, &_qtime_pTime), (bool) includeSecs);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2ZZ(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs, jboolean isDuration)
{
	QString  _qstring;
static QTime* _qtime_pTime = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatTime((const QTime&)*(QTime*) QtSupport::toQTime(env, pTime, &_qtime_pTime), (bool) includeSecs, (bool) isDuration);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_fracDigits(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->fracDigits();
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_initInstance(JNIEnv* env, jclass cls)
{
	(void) cls;
	(void) env;
	KLocaleJBridge::protected_initInstance();
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_insertCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static QString* _qstring_catalog = 0;
	((KLocale*) QtSupport::getQt(env, obj))->insertCatalogue((const QString&)*(QString*) QtSupport::toQString(env, catalog, &_qstring_catalog));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_langLookup__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fname)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_fname = 0;
	_qstring = KLocaleJBridge::langLookup((const QString&)*(QString*) QtSupport::toQString(env, fname, &_qstring_fname));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_langLookup__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fname, jstring rtype)
{
	QString  _qstring;
	(void) cls;
static QString* _qstring_fname = 0;
static QCString* _qstring_rtype = 0;
	_qstring = KLocaleJBridge::langLookup((const QString&)*(QString*) QtSupport::toQString(env, fname, &_qstring_fname), (const char*) QtSupport::toCharString(env, rtype, &_qstring_rtype));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_languageList(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KLocale*) QtSupport::getQt(env, obj))->languageList();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_languagesTwoAlpha(JNIEnv* env, jobject obj)
{
	QStringList  _qlist;
	_qlist = ((KLocale*) QtSupport::getQt(env, obj))->languagesTwoAlpha();
	return (jobject) QtSupport::arrayWithQStringList(env, (QStringList*) &_qlist);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_measureSystem(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->measureSystem();
	return xret;
}

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

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_negativeMonetarySignPosition(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->negativeMonetarySignPosition();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_negativePrefixCurrencySymbol(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->negativePrefixCurrencySymbol();
	return xret;
}

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

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_newKLocale__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring catalog)
{
static QString* _qstring_catalog = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KLocaleJBridge((const QString&)*(QString*) QtSupport::toQString(env, catalog, &_qstring_catalog)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_newKLocale__Ljava_lang_String_2Lorg_kde_koala_KConfig_2(JNIEnv* env, jobject obj, jstring catalog, jobject config)
{
static QString* _qstring_catalog = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KLocaleJBridge((const QString&)*(QString*) QtSupport::toQString(env, catalog, &_qstring_catalog), (KConfig*) QtSupport::getQt(env, config)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_newKLocale__Lorg_kde_koala_KLocale_2(JNIEnv* env, jobject obj, jobject rhs)
{
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new KLocaleJBridge((const KLocale&)*(const KLocale*) QtSupport::getQt(env, rhs)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_nounDeclension(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->nounDeclension();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_pageSize(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->pageSize();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_positiveMonetarySignPosition(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->positiveMonetarySignPosition();
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_positivePrefixCurrencySymbol(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->positivePrefixCurrencySymbol();
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
	QDate  _qdate;
static QString* _qstring_str = 0;
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
	QDate  _qdate;
static QString* _qstring_str = 0;
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (KLocale::ReadDateFlags) flags);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring str, jint flags, jbooleanArray ok)
{
	QDate  _qdate;
static QString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (KLocale::ReadDateFlags) flags,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring intstr, jstring fmt)
{
	QDate  _qdate;
static QString* _qstring_intstr = 0;
static QString* _qstring_fmt = 0;
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, intstr, &_qstring_intstr), (const QString&)*(QString*) QtSupport::toQString(env, fmt, &_qstring_fmt));
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring intstr, jstring fmt, jbooleanArray ok)
{
	QDate  _qdate;
static QString* _qstring_intstr = 0;
static QString* _qstring_fmt = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, intstr, &_qstring_intstr), (const QString&)*(QString*) QtSupport::toQString(env, fmt, &_qstring_fmt),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring str, jbooleanArray ok)
{
	QDate  _qdate;
static QString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jdouble JNICALL
Java_org_kde_koala_KLocale_readMoney__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static QString* _qstring_numStr = 0;
	jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readMoney((const QString&)*(QString*) QtSupport::toQString(env, numStr, &_qstring_numStr));
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_koala_KLocale_readMoney__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring numStr, jbooleanArray ok)
{
static QString* _qstring_numStr = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readMoney((const QString&)*(QString*) QtSupport::toQString(env, numStr, &_qstring_numStr),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_koala_KLocale_readNumber__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static QString* _qstring_numStr = 0;
	jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readNumber((const QString&)*(QString*) QtSupport::toQString(env, numStr, &_qstring_numStr));
	return xret;
}

JNIEXPORT jdouble JNICALL
Java_org_kde_koala_KLocale_readNumber__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring numStr, jbooleanArray ok)
{
static QString* _qstring_numStr = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readNumber((const QString&)*(QString*) QtSupport::toQString(env, numStr, &_qstring_numStr),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return xret;
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
	QTime  _qtime;
static QString* _qstring_str = 0;
	_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str));
	return (jobject) QtSupport::fromQTime(env, (QTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
	QTime  _qtime;
static QString* _qstring_str = 0;
	_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (KLocale::ReadTimeFlags) flags);
	return (jobject) QtSupport::fromQTime(env, (QTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring str, jint flags, jbooleanArray ok)
{
	QTime  _qtime;
static QString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (KLocale::ReadTimeFlags) flags,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromQTime(env, (QTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring str, jbooleanArray ok)
{
	QTime  _qtime;
static QString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromQTime(env, (QTime*) &_qtime);
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_removeCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static QString* _qstring_catalog = 0;
	((KLocale*) QtSupport::getQt(env, obj))->removeCatalogue((const QString&)*(QString*) QtSupport::toQString(env, catalog, &_qstring_catalog));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setActiveCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static QString* _qstring_catalog = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setActiveCatalogue((const QString&)*(QString*) QtSupport::toQString(env, catalog, &_qstring_catalog));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setCalendar(JNIEnv* env, jobject obj, jstring calendarType)
{
static QString* _qstring_calendarType = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setCalendar((const QString&)*(QString*) QtSupport::toQString(env, calendarType, &_qstring_calendarType));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_setCountry(JNIEnv* env, jobject obj, jstring country)
{
static QString* _qstring_country = 0;
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setCountry((const QString&)*(QString*) QtSupport::toQString(env, country, &_qstring_country));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setCurrencySymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static QString* _qstring_symbol = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setCurrencySymbol((const QString&)*(QString*) QtSupport::toQString(env, symbol, &_qstring_symbol));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDateFormatShort(JNIEnv* env, jobject obj, jstring format)
{
static QString* _qstring_format = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setDateFormatShort((const QString&)*(QString*) QtSupport::toQString(env, format, &_qstring_format));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDateFormat(JNIEnv* env, jobject obj, jstring format)
{
static QString* _qstring_format = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setDateFormat((const QString&)*(QString*) QtSupport::toQString(env, format, &_qstring_format));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDateMonthNamePossessive(JNIEnv* env, jobject obj, jboolean possessive)
{
	((KLocale*) QtSupport::getQt(env, obj))->setDateMonthNamePossessive((bool) possessive);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDecimalSymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static QString* _qstring_symbol = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setDecimalSymbol((const QString&)*(QString*) QtSupport::toQString(env, symbol, &_qstring_symbol));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_setEncoding(JNIEnv* env, jobject obj, jint mibEnum)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setEncoding((int) mibEnum);
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setFracDigits(JNIEnv* env, jobject obj, jint digits)
{
	((KLocale*) QtSupport::getQt(env, obj))->setFracDigits((int) digits);
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_setLanguage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring language)
{
static QString* _qstring_language = 0;
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setLanguage((const QString&)*(QString*) QtSupport::toQString(env, language, &_qstring_language));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_setLanguage___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray languages)
{
static QStringList* _qlist_languages = 0;
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setLanguage((const QStringList&)*(QStringList*) QtSupport::toQStringList(env, languages, &_qlist_languages));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMainCatalogue(JNIEnv* env, jclass cls, jstring catalog)
{
	(void) cls;
static QCString* _qstring_catalog = 0;
	KLocaleJBridge::setMainCatalogue((const char*) QtSupport::toCharString(env, catalog, &_qstring_catalog));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMeasureSystem(JNIEnv* env, jobject obj, jint value)
{
	((KLocale*) QtSupport::getQt(env, obj))->setMeasureSystem((KLocale::MeasureSystem) value);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMonetaryDecimalSymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static QString* _qstring_symbol = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setMonetaryDecimalSymbol((const QString&)*(QString*) QtSupport::toQString(env, symbol, &_qstring_symbol));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMonetaryThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static QString* _qstring_separator = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setMonetaryThousandsSeparator((const QString&)*(QString*) QtSupport::toQString(env, separator, &_qstring_separator));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setNegativeMonetarySignPosition(JNIEnv* env, jobject obj, jint signpos)
{
	((KLocale*) QtSupport::getQt(env, obj))->setNegativeMonetarySignPosition((KLocale::SignPosition) signpos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setNegativePrefixCurrencySymbol(JNIEnv* env, jobject obj, jboolean prefix)
{
	((KLocale*) QtSupport::getQt(env, obj))->setNegativePrefixCurrencySymbol((bool) prefix);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setNegativeSign(JNIEnv* env, jobject obj, jstring sign)
{
static QString* _qstring_sign = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setNegativeSign((const QString&)*(QString*) QtSupport::toQString(env, sign, &_qstring_sign));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setPageSize(JNIEnv* env, jobject obj, jint paperFormat)
{
	((KLocale*) QtSupport::getQt(env, obj))->setPageSize((int) paperFormat);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setPositiveMonetarySignPosition(JNIEnv* env, jobject obj, jint signpos)
{
	((KLocale*) QtSupport::getQt(env, obj))->setPositiveMonetarySignPosition((KLocale::SignPosition) signpos);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setPositivePrefixCurrencySymbol(JNIEnv* env, jobject obj, jboolean prefix)
{
	((KLocale*) QtSupport::getQt(env, obj))->setPositivePrefixCurrencySymbol((bool) prefix);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setPositiveSign(JNIEnv* env, jobject obj, jstring sign)
{
static QString* _qstring_sign = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setPositiveSign((const QString&)*(QString*) QtSupport::toQString(env, sign, &_qstring_sign));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static QString* _qstring_separator = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setThousandsSeparator((const QString&)*(QString*) QtSupport::toQString(env, separator, &_qstring_separator));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setTimeFormat(JNIEnv* env, jobject obj, jstring format)
{
static QString* _qstring_format = 0;
	((KLocale*) QtSupport::getQt(env, obj))->setTimeFormat((const QString&)*(QString*) QtSupport::toQString(env, format, &_qstring_format));
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setWeekStartDay(JNIEnv* env, jobject obj, jint day)
{
	((KLocale*) QtSupport::getQt(env, obj))->setWeekStartDay((int) day);
	return;
}

JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_splitLocale(JNIEnv* env, jclass cls, jstring str, jobject language, jobject country, jobject charset)
{
	(void) cls;
static QString* _qstring_str = 0;
static QString* _qstring_language = 0;
static QString* _qstring_country = 0;
static QString* _qstring_charset = 0;
	KLocaleJBridge::splitLocale((const QString&)*(QString*) QtSupport::toQString(env, str, &_qstring_str), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, language, &_qstring_language), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, country, &_qstring_country), (QString&)*(QString*) QtSupport::toQStringFromStringBuffer(env, charset, &_qstring_charset));
	QtSupport::fromQStringToStringBuffer(env, _qstring_language, language);
	QtSupport::fromQStringToStringBuffer(env, _qstring_country, country);
	QtSupport::fromQStringToStringBuffer(env, _qstring_charset, charset);
	return;
}

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

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

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_translateQt(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring message)
{
	QString  _qstring;
static QCString* _qstring_context = 0;
static QCString* _qstring_sourceText = 0;
static QCString* _qstring_message = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->translateQt((const char*) QtSupport::toCharString(env, context, &_qstring_context), (const char*) QtSupport::toCharString(env, sourceText, &_qstring_sourceText), (const char*) QtSupport::toCharString(env, message, &_qstring_message));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring index)
{
	QString  _qstring;
static QCString* _qstring_index = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, index, &_qstring_index));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring comment, jstring fallback)
{
	QString  _qstring;
static QCString* _qstring_comment = 0;
static QCString* _qstring_fallback = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, comment, &_qstring_comment), (const char*) QtSupport::toCharString(env, fallback, &_qstring_fallback));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring singular, jstring plural, jlong n)
{
	QString  _qstring;
static QCString* _qstring_singular = 0;
static QCString* _qstring_plural = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, singular, &_qstring_singular), (const char*) QtSupport::toCharString(env, plural, &_qstring_plural), (unsigned long) n);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_twoAlphaToCountryName(JNIEnv* env, jobject obj, jstring code)
{
	QString  _qstring;
static QString* _qstring_code = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->twoAlphaToCountryName((const QString&)*(QString*) QtSupport::toQString(env, code, &_qstring_code));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_twoAlphaToLanguageName(JNIEnv* env, jobject obj, jstring code)
{
	QString  _qstring;
static QString* _qstring_code = 0;
	_qstring = ((KLocale*) QtSupport::getQt(env, obj))->twoAlphaToLanguageName((const QString&)*(QString*) QtSupport::toQString(env, code, &_qstring_code));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_use12Clock(JNIEnv* env, jobject obj)
{
	jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->use12Clock();
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KLocale_weekStartDay(JNIEnv* env, jobject obj)
{
	jint xret = (jint) ((KLocale*) QtSupport::getQt(env, obj))->weekStartDay();
	return xret;
}

