//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatetime.h>
#include <tdelocale.h>
#include <tqstring.h>
#include <tqstringlist.h>

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

class TDELocaleJBridge : public TDELocale
{
public:
	TDELocaleJBridge(const TQString& arg1,TDEConfig* arg2) : TDELocale(arg1,arg2) {};
	TDELocaleJBridge(const TQString& arg1) : TDELocale(arg1) {};
	TDELocaleJBridge(const TDELocale& arg1) : TDELocale(arg1) {};
	static void protected_initInstance() {
		TDELocale::initInstance();
		return;
	}
	~TDELocaleJBridge() {QtSupport::qtKeyDeleted(this);}
};

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale__1initLanguage(JNIEnv* env, jclass cls, jobject config)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDELocaleJBridge::_initLanguage((TDEConfigBase*) QtSupport::getQt(env, config));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_allCountriesTwoAlpha(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDELocale*) QtSupport::getQt(env, obj))->allCountriesTwoAlpha();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_allLanguagesTwoAlpha(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDELocale*) QtSupport::getQt(env, obj))->allLanguagesTwoAlpha();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_calendarType(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->calendarType();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_codecForEncoding(JNIEnv* env, jobject obj)
{
	jobject xret = QtSupport::objectForQtKey(env, (void*)((TDELocale*) QtSupport::getQt(env, obj))->codecForEncoding(), "org.trinitydesktop.qt.TQTextCodec");
	return xret;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_country(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->country();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_currencySymbol(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->currencySymbol();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_dateFormatShort(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->dateFormatShort();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_dateFormat(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->dateFormat();
	return QtSupport::fromTQString(env, &_qstring);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_decimalSymbol(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->decimalSymbol();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_defaultCountry(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDELocaleJBridge::defaultCountry();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_defaultLanguage(JNIEnv* env, jclass cls)
{
	TQString  _qstring;
	(void) cls;
	_qstring = TDELocaleJBridge::defaultLanguage();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_dispose(JNIEnv* env, jobject obj)
{
	Java_org_trinitydesktop_koala_TDELocale_finalize(env, obj);
	return;
}

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject pDateTime)
{
	TQString  _qstring;
static TQDateTime* _qdate_pDateTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatDateTime((const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, pDateTime, &_qdate_pDateTime));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat)
{
	TQString  _qstring;
static TQDateTime* _qdate_pDateTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatDateTime((const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, pDateTime, &_qdate_pDateTime), (bool) shortFormat);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2ZZ(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat, jboolean includeSecs)
{
	TQString  _qstring;
static TQDateTime* _qdate_pDateTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatDateTime((const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, pDateTime, &_qdate_pDateTime), (bool) shortFormat, (bool) includeSecs);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatDate__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject pDate)
{
	TQString  _qstring;
static TQDate* _qdate_pDate = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatDate((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatDate__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDate, jboolean shortFormat)
{
	TQString  _qstring;
static TQDate* _qdate_pDate = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatDate((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate), (bool) shortFormat);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatLong(JNIEnv* env, jobject obj, jlong num)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatLong((long) num);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatMoney__D(JNIEnv* env, jobject obj, jdouble num)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatMoney((double) num);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatMoney__DLjava_lang_String_2(JNIEnv* env, jobject obj, jdouble num, jstring currency)
{
	TQString  _qstring;
static TQString* _qstring_currency = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatMoney((double) num, (const TQString&)*(TQString*) QtSupport::toTQString(env, currency, &_qstring_currency));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatMoney__DLjava_lang_String_2I(JNIEnv* env, jobject obj, jdouble num, jstring currency, jint digits)
{
	TQString  _qstring;
static TQString* _qstring_currency = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatMoney((double) num, (const TQString&)*(TQString*) QtSupport::toTQString(env, currency, &_qstring_currency), (int) digits);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatNumber__D(JNIEnv* env, jobject obj, jdouble num)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatNumber((double) num);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatNumber__DI(JNIEnv* env, jobject obj, jdouble num, jint precision)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatNumber((double) num, (int) precision);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatNumber__Ljava_lang_String_2ZI(JNIEnv* env, jobject obj, jstring numStr, jboolean round, jint precision)
{
	TQString  _qstring;
static TQString* _qstring_numStr = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatNumber((const TQString&)*(TQString*) QtSupport::toTQString(env, numStr, &_qstring_numStr), (bool) round, (int) precision);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatTime__Ljava_util_Date_2(JNIEnv* env, jobject obj, jobject pTime)
{
	TQString  _qstring;
static TQTime* _qtime_pTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatTime((const TQTime&)*(TQTime*) QtSupport::toTQTime(env, pTime, &_qtime_pTime));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatTime__Ljava_util_Date_2Z(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs)
{
	TQString  _qstring;
static TQTime* _qtime_pTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatTime((const TQTime&)*(TQTime*) QtSupport::toTQTime(env, pTime, &_qtime_pTime), (bool) includeSecs);
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_formatTime__Ljava_util_Date_2ZZ(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs, jboolean isDuration)
{
	TQString  _qstring;
static TQTime* _qtime_pTime = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->formatTime((const TQTime&)*(TQTime*) QtSupport::toTQTime(env, pTime, &_qtime_pTime), (bool) includeSecs, (bool) isDuration);
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_insertCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->insertCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog));
	return;
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_langLookup__Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fname)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_fname = 0;
	_qstring = TDELocaleJBridge::langLookup((const TQString&)*(TQString*) QtSupport::toTQString(env, fname, &_qstring_fname));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_langLookup__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jclass cls, jstring fname, jstring rtype)
{
	TQString  _qstring;
	(void) cls;
static TQString* _qstring_fname = 0;
static TQCString* _qstring_rtype = 0;
	_qstring = TDELocaleJBridge::langLookup((const TQString&)*(TQString*) QtSupport::toTQString(env, fname, &_qstring_fname), (const char*) QtSupport::toCharString(env, rtype, &_qstring_rtype));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_languageList(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDELocale*) QtSupport::getQt(env, obj))->languageList();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_language(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->language();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_languagesTwoAlpha(JNIEnv* env, jobject obj)
{
	TQStringList  _qlist;
	_qlist = ((TDELocale*) QtSupport::getQt(env, obj))->languagesTwoAlpha();
	return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_monetaryDecimalSymbol(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->monetaryDecimalSymbol();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_monetaryThousandsSeparator(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->monetaryThousandsSeparator();
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_negativeSign(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->negativeSign();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_newTDELocale__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDELocaleJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_newTDELocale__Ljava_lang_String_2Lorg_trinitydesktop_koala_TDEConfig_2(JNIEnv* env, jobject obj, jstring catalog, jobject config)
{
static TQString* _qstring_catalog = 0;
	if (QtSupport::getQt(env, obj) == 0) {
		QtSupport::setQt(env, obj, new TDELocaleJBridge((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog), (TDEConfig*) QtSupport::getQt(env, config)));
		QtSupport::setObjectForQtKey(env, obj, QtSupport::getQt(env, obj));
	}
	return;
}

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

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

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

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

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

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_positiveSign(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->positiveSign();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
	TQDate  _qdate;
static TQString* _qstring_str = 0;
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
	TQDate  _qdate;
static TQString* _qstring_str = 0;
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (TDELocale::ReadDateFlags) flags);
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring str, jint flags, jbooleanArray ok)
{
	TQDate  _qdate;
static TQString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (TDELocale::ReadDateFlags) flags,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring intstr, jstring fmt)
{
	TQDate  _qdate;
static TQString* _qstring_intstr = 0;
static TQString* _qstring_fmt = 0;
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, intstr, &_qstring_intstr), (const TQString&)*(TQString*) QtSupport::toTQString(env, fmt, &_qstring_fmt));
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring intstr, jstring fmt, jbooleanArray ok)
{
	TQDate  _qdate;
static TQString* _qstring_intstr = 0;
static TQString* _qstring_fmt = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, intstr, &_qstring_intstr), (const TQString&)*(TQString*) QtSupport::toTQString(env, fmt, &_qstring_fmt),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readDate__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring str, jbooleanArray ok)
{
	TQDate  _qdate;
static TQString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qdate = ((TDELocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate);
}

JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_koala_TDELocale_readMoney__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static TQString* _qstring_numStr = 0;
	jdouble xret = (jdouble) ((TDELocale*) QtSupport::getQt(env, obj))->readMoney((const TQString&)*(TQString*) QtSupport::toTQString(env, numStr, &_qstring_numStr));
	return xret;
}

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

JNIEXPORT jdouble JNICALL
Java_org_trinitydesktop_koala_TDELocale_readNumber__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static TQString* _qstring_numStr = 0;
	jdouble xret = (jdouble) ((TDELocale*) QtSupport::getQt(env, obj))->readNumber((const TQString&)*(TQString*) QtSupport::toTQString(env, numStr, &_qstring_numStr));
	return xret;
}

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

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readTime__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
	TQTime  _qtime;
static TQString* _qstring_str = 0;
	_qtime = ((TDELocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str));
	return (jobject) QtSupport::fromTQTime(env, (TQTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readTime__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
	TQTime  _qtime;
static TQString* _qstring_str = 0;
	_qtime = ((TDELocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (TDELocale::ReadTimeFlags) flags);
	return (jobject) QtSupport::fromTQTime(env, (TQTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readTime__Ljava_lang_String_2I_3Z(JNIEnv* env, jobject obj, jstring str, jint flags, jbooleanArray ok)
{
	TQTime  _qtime;
static TQString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qtime = ((TDELocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (TDELocale::ReadTimeFlags) flags,  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromTQTime(env, (TQTime*) &_qtime);
}

JNIEXPORT jobject JNICALL
Java_org_trinitydesktop_koala_TDELocale_readTime__Ljava_lang_String_2_3Z(JNIEnv* env, jobject obj, jstring str, jbooleanArray ok)
{
	TQTime  _qtime;
static TQString* _qstring_str = 0;
	bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
	_qtime = ((TDELocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str),  (bool*) _bool_ok);
	env->SetBooleanArrayRegion(ok, 0, 1, (jboolean*) _bool_ok);
	return (jobject) QtSupport::fromTQTime(env, (TQTime*) &_qtime);
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_removeCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->removeCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setActiveCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setActiveCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setCalendar(JNIEnv* env, jobject obj, jstring calendarType)
{
static TQString* _qstring_calendarType = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setCalendar((const TQString&)*(TQString*) QtSupport::toTQString(env, calendarType, &_qstring_calendarType));
	return;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDELocale_setCountry(JNIEnv* env, jobject obj, jstring country)
{
static TQString* _qstring_country = 0;
	jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->setCountry((const TQString&)*(TQString*) QtSupport::toTQString(env, country, &_qstring_country));
	return xret;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setCurrencySymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static TQString* _qstring_symbol = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setCurrencySymbol((const TQString&)*(TQString*) QtSupport::toTQString(env, symbol, &_qstring_symbol));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setDateFormatShort(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setDateFormatShort((const TQString&)*(TQString*) QtSupport::toTQString(env, format, &_qstring_format));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setDateFormat(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setDateFormat((const TQString&)*(TQString*) QtSupport::toTQString(env, format, &_qstring_format));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setDecimalSymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static TQString* _qstring_symbol = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setDecimalSymbol((const TQString&)*(TQString*) QtSupport::toTQString(env, symbol, &_qstring_symbol));
	return;
}

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

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

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDELocale_setLanguage__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring language)
{
static TQString* _qstring_language = 0;
	jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->setLanguage((const TQString&)*(TQString*) QtSupport::toTQString(env, language, &_qstring_language));
	return xret;
}

JNIEXPORT jboolean JNICALL
Java_org_trinitydesktop_koala_TDELocale_setLanguage___3Ljava_lang_String_2(JNIEnv* env, jobject obj, jobjectArray languages)
{
static TQStringList* _qlist_languages = 0;
	jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->setLanguage((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, languages, &_qlist_languages));
	return xret;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setMonetaryDecimalSymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static TQString* _qstring_symbol = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setMonetaryDecimalSymbol((const TQString&)*(TQString*) QtSupport::toTQString(env, symbol, &_qstring_symbol));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setMonetaryThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static TQString* _qstring_separator = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setMonetaryThousandsSeparator((const TQString&)*(TQString*) QtSupport::toTQString(env, separator, &_qstring_separator));
	return;
}

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setNegativeSign(JNIEnv* env, jobject obj, jstring sign)
{
static TQString* _qstring_sign = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setNegativeSign((const TQString&)*(TQString*) QtSupport::toTQString(env, sign, &_qstring_sign));
	return;
}

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

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

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setPositiveSign(JNIEnv* env, jobject obj, jstring sign)
{
static TQString* _qstring_sign = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setPositiveSign((const TQString&)*(TQString*) QtSupport::toTQString(env, sign, &_qstring_sign));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static TQString* _qstring_separator = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setThousandsSeparator((const TQString&)*(TQString*) QtSupport::toTQString(env, separator, &_qstring_separator));
	return;
}

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_setTimeFormat(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
	((TDELocale*) QtSupport::getQt(env, obj))->setTimeFormat((const TQString&)*(TQString*) QtSupport::toTQString(env, format, &_qstring_format));
	return;
}

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

JNIEXPORT void JNICALL
Java_org_trinitydesktop_koala_TDELocale_splitLocale(JNIEnv* env, jclass cls, jstring str, jobject language, jobject country, jobject charset)
{
	(void) cls;
static TQString* _qstring_str = 0;
static TQString* _qstring_language = 0;
static TQString* _qstring_country = 0;
static TQString* _qstring_charset = 0;
	TDELocaleJBridge::splitLocale((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, language, &_qstring_language), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, country, &_qstring_country), (TQString&)*(TQString*) QtSupport::toTQStringFromStringBuffer(env, charset, &_qstring_charset));
	QtSupport::fromTQStringToStringBuffer(env, _qstring_language, language);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_country, country);
	QtSupport::fromTQStringToStringBuffer(env, _qstring_charset, charset);
	return;
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_thousandsSeparator(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->thousandsSeparator();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_timeFormat(JNIEnv* env, jobject obj)
{
	TQString  _qstring;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->timeFormat();
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_translateQt(JNIEnv* env, jobject obj, jstring context, jstring sourceText, jstring message)
{
	TQString  _qstring;
static TQCString* _qstring_context = 0;
static TQCString* _qstring_sourceText = 0;
static TQCString* _qstring_message = 0;
	_qstring = ((TDELocale*) 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::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_translate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring index)
{
	TQString  _qstring;
static TQCString* _qstring_index = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, index, &_qstring_index));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_translate__Ljava_lang_String_2Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring comment, jstring fallback)
{
	TQString  _qstring;
static TQCString* _qstring_comment = 0;
static TQCString* _qstring_fallback = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, comment, &_qstring_comment), (const char*) QtSupport::toCharString(env, fallback, &_qstring_fallback));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_translate__Ljava_lang_String_2Ljava_lang_String_2J(JNIEnv* env, jobject obj, jstring singular, jstring plural, jlong n)
{
	TQString  _qstring;
static TQCString* _qstring_singular = 0;
static TQCString* _qstring_plural = 0;
	_qstring = ((TDELocale*) 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::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_twoAlphaToCountryName(JNIEnv* env, jobject obj, jstring code)
{
	TQString  _qstring;
static TQString* _qstring_code = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->twoAlphaToCountryName((const TQString&)*(TQString*) QtSupport::toTQString(env, code, &_qstring_code));
	return QtSupport::fromTQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_trinitydesktop_koala_TDELocale_twoAlphaToLanguageName(JNIEnv* env, jobject obj, jstring code)
{
	TQString  _qstring;
static TQString* _qstring_code = 0;
	_qstring = ((TDELocale*) QtSupport::getQt(env, obj))->twoAlphaToLanguageName((const TQString&)*(TQString*) QtSupport::toTQString(env, code, &_qstring_code));
	return QtSupport::fromTQString(env, &_qstring);
}

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

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

