Rename KLocale to enhance compatibility with KDE4

pull/1/head
Timothy Pearson 12 years ago
parent 03995bc38f
commit ddde3d2db1

@ -993,8 +993,8 @@ BEGIN
'KListBox*' => 'kde_KListBox*',
'KListView*' => 'kde_KListView*' ,
'KListViewItem*' => 'kde_KListViewItem*',
'KLocale&' => 'kde_KLocale*' ,
'KLocale*' => 'kde_KLocale*' ,
'TDELocale&' => 'kde_TDELocale*' ,
'TDELocale*' => 'kde_TDELocale*' ,
'KMJobViewer*' => 'kde_KMJobViewer*',
'KMMainView*' => 'kde_KMMainView*',
'KMManager*' => 'kde_KMManager*',

File diff suppressed because one or more lines are too long

@ -41,11 +41,11 @@ static TQString* _qstring_calType = 0;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCalendarSystemFactory_create__Ljava_lang_String_2Lorg_kde_koala_KLocale_2(JNIEnv* env, jclass cls, jstring calType, jobject locale)
Java_org_kde_koala_KCalendarSystemFactory_create__Ljava_lang_String_2Lorg_kde_koala_TDELocale_2(JNIEnv* env, jclass cls, jstring calType, jobject locale)
{
(void) cls;
static TQString* _qstring_calType = 0;
jobject xret = QtSupport::objectForQtKey(env, (void*)KCalendarSystemFactoryJBridge::create((const TQString&)*(TQString*) QtSupport::toTQString(env, calType, &_qstring_calType), (const KLocale*) QtSupport::getQt(env, locale)), "org.kde.koala.KCalendarSystem");
jobject xret = QtSupport::objectForQtKey(env, (void*)KCalendarSystemFactoryJBridge::create((const TQString&)*(TQString*) QtSupport::toTQString(env, calType, &_qstring_calType), (const TDELocale*) QtSupport::getQt(env, locale)), "org.kde.koala.KCalendarSystem");
return xret;
}

@ -11,7 +11,7 @@ extern "C"
#endif
extern JNIEXPORT void JNICALL Java_org_kde_koala_KCalendarSystemFactory_newKCalendarSystemFactory (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystemFactory_create__Ljava_lang_String_2Lorg_kde_koala_KLocale_2 (JNIEnv *env, jclass, jstring, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystemFactory_create__Ljava_lang_String_2Lorg_kde_koala_TDELocale_2 (JNIEnv *env, jclass, jstring, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystemFactory_create__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystemFactory_create__ (JNIEnv *env, jclass);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystemFactory_calendarSystems (JNIEnv *env, jclass);

@ -1,941 +0,0 @@
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatetime.h>
#include <klocale.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KLocale.h>
class KLocaleJBridge : public KLocale
{
public:
KLocaleJBridge(const TQString& arg1,TDEConfig* arg2) : KLocale(arg1,arg2) {};
KLocaleJBridge(const TQString& 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)
{
TQString _qstring;
(void) cls;
_qstring = KLocaleJBridge::_initLanguage((TDEConfigBase*) QtSupport::getQt(env, config));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_allCountriesTwoAlpha(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((KLocale*) QtSupport::getQt(env, obj))->allCountriesTwoAlpha();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_allLanguagesTwoAlpha(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((KLocale*) QtSupport::getQt(env, obj))->allLanguagesTwoAlpha();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_calendarType(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->calendarType();
return QtSupport::fromTQString(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.TQTextCodec");
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_country(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->country();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_currencySymbol(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->currencySymbol();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_dateFormatShort(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->dateFormatShort();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_dateFormat(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->dateFormat();
return QtSupport::fromTQString(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)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->decimalSymbol();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_defaultCountry(JNIEnv* env, jclass cls)
{
TQString _qstring;
(void) cls;
_qstring = KLocaleJBridge::defaultCountry();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_defaultLanguage(JNIEnv* env, jclass cls)
{
TQString _qstring;
(void) cls;
_qstring = KLocaleJBridge::defaultLanguage();
return QtSupport::fromTQString(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)
{
TQString _qstring;
static TQDateTime* _qdate_pDateTime = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDateTime((const TQDateTime&)*(TQDateTime*) QtSupport::toTQDateTime(env, pDateTime, &_qdate_pDateTime));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat)
{
TQString _qstring;
static TQDateTime* _qdate_pDateTime = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2ZZ(JNIEnv* env, jobject obj, jobject pDateTime, jboolean shortFormat, jboolean includeSecs)
{
TQString _qstring;
static TQDateTime* _qdate_pDateTime = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject pDate)
{
TQString _qstring;
static TQDate* _qdate_pDate = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatDate((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject pDate, jboolean shortFormat)
{
TQString _qstring;
static TQDate* _qdate_pDate = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatLong(JNIEnv* env, jobject obj, jlong num)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatLong((long) num);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatMoney__D(JNIEnv* env, jobject obj, jdouble num)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatMoney((double) num);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatMoney__DLjava_lang_String_2(JNIEnv* env, jobject obj, jdouble num, jstring currency)
{
TQString _qstring;
static TQString* _qstring_currency = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatMoney__DLjava_lang_String_2I(JNIEnv* env, jobject obj, jdouble num, jstring currency, jint digits)
{
TQString _qstring;
static TQString* _qstring_currency = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatNumber__D(JNIEnv* env, jobject obj, jdouble num)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatNumber((double) num);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatNumber__DI(JNIEnv* env, jobject obj, jdouble num, jint precision)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatNumber((double) num, (int) precision);
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatNumber__Ljava_lang_String_2ZI(JNIEnv* env, jobject obj, jstring numStr, jboolean round, jint precision)
{
TQString _qstring;
static TQString* _qstring_numStr = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatTime__Ljava_util_Date_2(JNIEnv* env, jobject obj, jobject pTime)
{
TQString _qstring;
static TQTime* _qtime_pTime = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->formatTime((const TQTime&)*(TQTime*) QtSupport::toTQTime(env, pTime, &_qtime_pTime));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2Z(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs)
{
TQString _qstring;
static TQTime* _qtime_pTime = 0;
_qstring = ((KLocale*) 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_kde_koala_KLocale_formatTime__Ljava_util_Date_2ZZ(JNIEnv* env, jobject obj, jobject pTime, jboolean includeSecs, jboolean isDuration)
{
TQString _qstring;
static TQTime* _qtime_pTime = 0;
_qstring = ((KLocale*) 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_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 TQString* _qstring_catalog = 0;
((KLocale*) QtSupport::getQt(env, obj))->insertCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(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)
{
TQString _qstring;
(void) cls;
static TQString* _qstring_fname = 0;
_qstring = KLocaleJBridge::langLookup((const TQString&)*(TQString*) QtSupport::toTQString(env, fname, &_qstring_fname));
return QtSupport::fromTQString(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)
{
TQString _qstring;
(void) cls;
static TQString* _qstring_fname = 0;
static TQCString* _qstring_rtype = 0;
_qstring = KLocaleJBridge::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_kde_koala_KLocale_languageList(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((KLocale*) QtSupport::getQt(env, obj))->languageList();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_qlist);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_language(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->language();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_languagesTwoAlpha(JNIEnv* env, jobject obj)
{
TQStringList _qlist;
_qlist = ((KLocale*) QtSupport::getQt(env, obj))->languagesTwoAlpha();
return (jobject) QtSupport::arrayWithTQStringList(env, (TQStringList*) &_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)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->monetaryDecimalSymbol();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_monetaryThousandsSeparator(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->monetaryThousandsSeparator();
return QtSupport::fromTQString(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)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->negativeSign();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_newKLocale__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 KLocaleJBridge((const TQString&)*(TQString*) QtSupport::toTQString(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_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 KLocaleJBridge((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_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)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->positiveSign();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
TQDate _qdate;
static TQString* _qstring_str = 0;
_qdate = ((KLocale*) 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_kde_koala_KLocale_readDate__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
TQDate _qdate;
static TQString* _qstring_str = 0;
_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (KLocale::ReadDateFlags) flags);
return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_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)
{
TQDate _qdate;
static TQString* _qstring_str = 0;
bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
_qdate = ((KLocale*) QtSupport::getQt(env, obj))->readDate((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (KLocale::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_kde_koala_KLocale_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 = ((KLocale*) 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_kde_koala_KLocale_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 = ((KLocale*) 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_kde_koala_KLocale_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 = ((KLocale*) 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_kde_koala_KLocale_readMoney__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static TQString* _qstring_numStr = 0;
jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readMoney((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_numStr = 0;
bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
jdouble xret = (jdouble) ((KLocale*) 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_kde_koala_KLocale_readNumber__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring numStr)
{
static TQString* _qstring_numStr = 0;
jdouble xret = (jdouble) ((KLocale*) QtSupport::getQt(env, obj))->readNumber((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_numStr = 0;
bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
jdouble xret = (jdouble) ((KLocale*) 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_kde_koala_KLocale_readTime__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring str)
{
TQTime _qtime;
static TQString* _qstring_str = 0;
_qtime = ((KLocale*) 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_kde_koala_KLocale_readTime__Ljava_lang_String_2I(JNIEnv* env, jobject obj, jstring str, jint flags)
{
TQTime _qtime;
static TQString* _qstring_str = 0;
_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (KLocale::ReadTimeFlags) flags);
return (jobject) QtSupport::fromTQTime(env, (TQTime*) &_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)
{
TQTime _qtime;
static TQString* _qstring_str = 0;
bool* _bool_ok = QtSupport::toBooleanPtr(env, ok);
_qtime = ((KLocale*) QtSupport::getQt(env, obj))->readTime((const TQString&)*(TQString*) QtSupport::toTQString(env, str, &_qstring_str), (KLocale::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_kde_koala_KLocale_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 = ((KLocale*) 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_kde_koala_KLocale_removeCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
((KLocale*) QtSupport::getQt(env, obj))->removeCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setActiveCatalogue(JNIEnv* env, jobject obj, jstring catalog)
{
static TQString* _qstring_catalog = 0;
((KLocale*) QtSupport::getQt(env, obj))->setActiveCatalogue((const TQString&)*(TQString*) QtSupport::toTQString(env, catalog, &_qstring_catalog));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setCalendar(JNIEnv* env, jobject obj, jstring calendarType)
{
static TQString* _qstring_calendarType = 0;
((KLocale*) QtSupport::getQt(env, obj))->setCalendar((const TQString&)*(TQString*) QtSupport::toTQString(env, calendarType, &_qstring_calendarType));
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_KLocale_setCountry(JNIEnv* env, jobject obj, jstring country)
{
static TQString* _qstring_country = 0;
jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setCountry((const TQString&)*(TQString*) QtSupport::toTQString(env, country, &_qstring_country));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setCurrencySymbol(JNIEnv* env, jobject obj, jstring symbol)
{
static TQString* _qstring_symbol = 0;
((KLocale*) QtSupport::getQt(env, obj))->setCurrencySymbol((const TQString&)*(TQString*) QtSupport::toTQString(env, symbol, &_qstring_symbol));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDateFormatShort(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
((KLocale*) QtSupport::getQt(env, obj))->setDateFormatShort((const TQString&)*(TQString*) QtSupport::toTQString(env, format, &_qstring_format));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setDateFormat(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
((KLocale*) QtSupport::getQt(env, obj))->setDateFormat((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_symbol = 0;
((KLocale*) QtSupport::getQt(env, obj))->setDecimalSymbol((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_language = 0;
jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setLanguage((const TQString&)*(TQString*) QtSupport::toTQString(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 TQStringList* _qlist_languages = 0;
jboolean xret = (jboolean) ((KLocale*) QtSupport::getQt(env, obj))->setLanguage((const TQStringList&)*(TQStringList*) QtSupport::toTQStringList(env, languages, &_qlist_languages));
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMainCatalogue(JNIEnv* env, jclass cls, jstring catalog)
{
(void) cls;
static TQCString* _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 TQString* _qstring_symbol = 0;
((KLocale*) QtSupport::getQt(env, obj))->setMonetaryDecimalSymbol((const TQString&)*(TQString*) QtSupport::toTQString(env, symbol, &_qstring_symbol));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setMonetaryThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static TQString* _qstring_separator = 0;
((KLocale*) QtSupport::getQt(env, obj))->setMonetaryThousandsSeparator((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_sign = 0;
((KLocale*) QtSupport::getQt(env, obj))->setNegativeSign((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_sign = 0;
((KLocale*) QtSupport::getQt(env, obj))->setPositiveSign((const TQString&)*(TQString*) QtSupport::toTQString(env, sign, &_qstring_sign));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setThousandsSeparator(JNIEnv* env, jobject obj, jstring separator)
{
static TQString* _qstring_separator = 0;
((KLocale*) QtSupport::getQt(env, obj))->setThousandsSeparator((const TQString&)*(TQString*) QtSupport::toTQString(env, separator, &_qstring_separator));
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_KLocale_setTimeFormat(JNIEnv* env, jobject obj, jstring format)
{
static TQString* _qstring_format = 0;
((KLocale*) QtSupport::getQt(env, obj))->setTimeFormat((const TQString&)*(TQString*) QtSupport::toTQString(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 TQString* _qstring_str = 0;
static TQString* _qstring_language = 0;
static TQString* _qstring_country = 0;
static TQString* _qstring_charset = 0;
KLocaleJBridge::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_kde_koala_KLocale_thousandsSeparator(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->thousandsSeparator();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_timeFormat(JNIEnv* env, jobject obj)
{
TQString _qstring;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->timeFormat();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_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 = ((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::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2(JNIEnv* env, jobject obj, jstring index)
{
TQString _qstring;
static TQCString* _qstring_index = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->translate((const char*) QtSupport::toCharString(env, index, &_qstring_index));
return QtSupport::fromTQString(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)
{
TQString _qstring;
static TQCString* _qstring_comment = 0;
static TQCString* _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::fromTQString(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)
{
TQString _qstring;
static TQCString* _qstring_singular = 0;
static TQCString* _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::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_twoAlphaToCountryName(JNIEnv* env, jobject obj, jstring code)
{
TQString _qstring;
static TQString* _qstring_code = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->twoAlphaToCountryName((const TQString&)*(TQString*) QtSupport::toTQString(env, code, &_qstring_code));
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_KLocale_twoAlphaToLanguageName(JNIEnv* env, jobject obj, jstring code)
{
TQString _qstring;
static TQString* _qstring_code = 0;
_qstring = ((KLocale*) QtSupport::getQt(env, obj))->twoAlphaToLanguageName((const TQString&)*(TQString*) QtSupport::toTQString(env, code, &_qstring_code));
return QtSupport::fromTQString(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;
}

@ -1,127 +0,0 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __org_kde_koala_KLocale__
#define __org_kde_koala_KLocale__
#include <jni.h>
#ifdef __cplusplus
extern "C"
{
#endif
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_newKLocale__Ljava_lang_String_2Lorg_kde_koala_TDEConfig_2 (JNIEnv *env, jobject, jstring, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_newKLocale__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_newKLocale__Lorg_kde_koala_KLocale_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_translate__Ljava_lang_String_2Ljava_lang_String_2J (JNIEnv *env, jobject, jstring, jstring, jlong);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_setEncoding (JNIEnv *env, jobject, jint);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_setLanguage__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_setLanguage___3Ljava_lang_String_2 (JNIEnv *env, jobject, jobjectArray);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_setCountry (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_decimalSymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_thousandsSeparator (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_currencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_monetaryDecimalSymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_monetaryThousandsSeparator (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_positiveSign (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_negativeSign (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_fracDigits (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_positivePrefixCurrencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_negativePrefixCurrencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_positiveMonetarySignPosition (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_negativeMonetarySignPosition (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatMoney__DLjava_lang_String_2I (JNIEnv *env, jobject, jdouble, jstring, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatMoney__DLjava_lang_String_2 (JNIEnv *env, jobject, jdouble, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatMoney__D (JNIEnv *env, jobject, jdouble);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatNumber__DI (JNIEnv *env, jobject, jdouble, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatNumber__D (JNIEnv *env, jobject, jdouble);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatNumber__Ljava_lang_String_2ZI (JNIEnv *env, jobject, jstring, jboolean, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatLong (JNIEnv *env, jobject, jlong);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_nounDeclension (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatDate__Ljava_util_Calendar_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_dateMonthNamePossessive (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2ZZ (JNIEnv *env, jobject, jobject, jboolean, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatTime__Ljava_util_Date_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_use12Clock (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_weekStartDay (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_calendar (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_calendarType (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setCalendar (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2ZZ (JNIEnv *env, jobject, jobject, jboolean, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_formatDateTime__Ljava_util_Calendar_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_KLocale_readMoney__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_KLocale_readMoney__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_KLocale_readNumber__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_KLocale_readNumber__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2I_3Z (JNIEnv *env, jobject, jstring, jint, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readDate__Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jint);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2I_3Z (JNIEnv *env, jobject, jstring, jint, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_readTime__Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_language (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_country (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_languagesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_languageList (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_encoding (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_encodingMib (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_codecForEncoding (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_fileEncodingMib (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setDateFormat (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setDateFormatShort (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setDateMonthNamePossessive (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setTimeFormat (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setWeekStartDay (JNIEnv *env, jobject, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_dateFormat (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_dateFormatShort (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_timeFormat (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setDecimalSymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setThousandsSeparator (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setPositiveSign (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setNegativeSign (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setPositiveMonetarySignPosition (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setNegativeMonetarySignPosition (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setPositivePrefixCurrencySymbol (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setNegativePrefixCurrencySymbol (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setFracDigits (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setMonetaryThousandsSeparator (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setMonetaryDecimalSymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setCurrencySymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_pageSize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setPageSize (JNIEnv *env, jobject, jint);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_KLocale_measureSystem (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setMeasureSystem (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_insertCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_removeCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setActiveCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_translateQt (JNIEnv *env, jobject, jstring, jstring, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_allLanguagesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_twoAlphaToLanguageName (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_KLocale_allCountriesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_twoAlphaToCountryName (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_splitLocale (JNIEnv *env, jclass, jstring, jobject, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_setMainCatalogue (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_langLookup__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jstring, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_langLookup__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_defaultLanguage (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale_defaultCountry (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_KLocale__1initLanguage (JNIEnv *env, jclass, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_initInstance (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_finalize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_KLocale_dispose (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_KLocale_isDisposed (JNIEnv *env, jobject);
#ifdef __cplusplus
}
#endif
#endif /* __org_kde_koala_KLocale__ */

File diff suppressed because one or more lines are too long

@ -97,7 +97,7 @@ JNIEXPORT jobject JNICALL
Java_org_kde_koala_TDEGlobal_locale(JNIEnv* env, jclass cls)
{
(void) cls;
jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::locale(), "org.kde.koala.KLocale");
jobject xret = QtSupport::objectForQtKey(env, (void*)TDEGlobalJBridge::locale(), "org.kde.koala.TDELocale");
return xret;
}

@ -0,0 +1,941 @@
//Auto-generated by kalyptus. DO NOT EDIT.
#include <tqdatetime.h>
#include <klocale.h>
#include <tqstring.h>
#include <tqstringlist.h>
#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/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_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_calendar(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TDELocale*) QtSupport::getQt(env, obj))->calendar(), "org.kde.koala.KCalendarSystem");
return xret;
}
JNIEXPORT jobject JNICALL
Java_org_kde_koala_TDELocale_codecForEncoding(JNIEnv* env, jobject obj)
{
jobject xret = QtSupport::objectForQtKey(env, (void*)((TDELocale*) QtSupport::getQt(env, obj))->codecForEncoding(), "org.kde.qt.TQTextCodec");
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_dateMonthNamePossessive(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->dateMonthNamePossessive();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_TDELocale_defaultCountry(JNIEnv* env, jclass cls)
{
TQString _qstring;
(void) cls;
_qstring = TDELocaleJBridge::defaultCountry();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT jstring JNICALL
Java_org_kde_koala_TDELocale_defaultLanguage(JNIEnv* env, jclass cls)
{
TQString _qstring;
(void) cls;
_qstring = TDELocaleJBridge::defaultLanguage();
return QtSupport::fromTQString(env, &_qstring);
}
JNIEXPORT void JNICALL
Java_org_kde_koala_TDELocale_dispose(JNIEnv* env, jobject obj)
{
Java_org_kde_koala_TDELocale_finalize(env, obj);
return;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_TDELocale_encodingMib(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->encodingMib();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_koala_TDELocale_fileEncodingMib(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->fileEncodingMib();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_fracDigits(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->fracDigits();
return xret;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_TDELocale_initInstance(JNIEnv* env, jclass cls)
{
(void) cls;
(void) env;
TDELocaleJBridge::protected_initInstance();
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_TDELocale_isDisposed(JNIEnv* env, jobject obj)
{
return (QtSupport::getQt(env, obj) == 0);
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_measureSystem(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->measureSystem();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_koala_TDELocale_negativeMonetarySignPosition(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->negativeMonetarySignPosition();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_TDELocale_negativePrefixCurrencySymbol(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->negativePrefixCurrencySymbol();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_koala_TDELocale_newTDELocale__Ljava_lang_String_2Lorg_kde_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_kde_koala_TDELocale_newTDELocale__Lorg_kde_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_kde_koala_TDELocale_nounDeclension(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->nounDeclension();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_TDELocale_pageSize(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->pageSize();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_TDELocale_positiveMonetarySignPosition(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->positiveMonetarySignPosition();
return xret;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_koala_TDELocale_positivePrefixCurrencySymbol(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->positivePrefixCurrencySymbol();
return xret;
}
JNIEXPORT jstring JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_setDateMonthNamePossessive(JNIEnv* env, jobject obj, jboolean possessive)
{
((TDELocale*) QtSupport::getQt(env, obj))->setDateMonthNamePossessive((bool) possessive);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_koala_TDELocale_setFracDigits(JNIEnv* env, jobject obj, jint digits)
{
((TDELocale*) QtSupport::getQt(env, obj))->setFracDigits((int) digits);
return;
}
JNIEXPORT jboolean JNICALL
Java_org_kde_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_kde_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_kde_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_kde_koala_TDELocale_setMeasureSystem(JNIEnv* env, jobject obj, jint value)
{
((TDELocale*) QtSupport::getQt(env, obj))->setMeasureSystem((TDELocale::MeasureSystem) value);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_koala_TDELocale_setNegativeMonetarySignPosition(JNIEnv* env, jobject obj, jint signpos)
{
((TDELocale*) QtSupport::getQt(env, obj))->setNegativeMonetarySignPosition((TDELocale::SignPosition) signpos);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_TDELocale_setNegativePrefixCurrencySymbol(JNIEnv* env, jobject obj, jboolean prefix)
{
((TDELocale*) QtSupport::getQt(env, obj))->setNegativePrefixCurrencySymbol((bool) prefix);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_koala_TDELocale_setPageSize(JNIEnv* env, jobject obj, jint paperFormat)
{
((TDELocale*) QtSupport::getQt(env, obj))->setPageSize((int) paperFormat);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_TDELocale_setPositiveMonetarySignPosition(JNIEnv* env, jobject obj, jint signpos)
{
((TDELocale*) QtSupport::getQt(env, obj))->setPositiveMonetarySignPosition((TDELocale::SignPosition) signpos);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_koala_TDELocale_setPositivePrefixCurrencySymbol(JNIEnv* env, jobject obj, jboolean prefix)
{
((TDELocale*) QtSupport::getQt(env, obj))->setPositivePrefixCurrencySymbol((bool) prefix);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_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_kde_koala_TDELocale_setWeekStartDay(JNIEnv* env, jobject obj, jint day)
{
((TDELocale*) QtSupport::getQt(env, obj))->setWeekStartDay((int) day);
return;
}
JNIEXPORT void JNICALL
Java_org_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_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_kde_koala_TDELocale_use12Clock(JNIEnv* env, jobject obj)
{
jboolean xret = (jboolean) ((TDELocale*) QtSupport::getQt(env, obj))->use12Clock();
return xret;
}
JNIEXPORT jint JNICALL
Java_org_kde_koala_TDELocale_weekStartDay(JNIEnv* env, jobject obj)
{
jint xret = (jint) ((TDELocale*) QtSupport::getQt(env, obj))->weekStartDay();
return xret;
}

@ -0,0 +1,127 @@
/* DO NOT EDIT THIS FILE - it is machine generated */
#ifndef __org_kde_koala_TDELocale__
#define __org_kde_koala_TDELocale__
#include <jni.h>
#ifdef __cplusplus
extern "C"
{
#endif
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_newTDELocale__Ljava_lang_String_2Lorg_kde_koala_TDEConfig_2 (JNIEnv *env, jobject, jstring, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_newTDELocale__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_newTDELocale__Lorg_kde_koala_TDELocale_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_translate__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_translate__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_translate__Ljava_lang_String_2Ljava_lang_String_2J (JNIEnv *env, jobject, jstring, jstring, jlong);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_setEncoding (JNIEnv *env, jobject, jint);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_setLanguage__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_setLanguage___3Ljava_lang_String_2 (JNIEnv *env, jobject, jobjectArray);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_setCountry (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_decimalSymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_thousandsSeparator (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_currencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_monetaryDecimalSymbol (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_monetaryThousandsSeparator (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_positiveSign (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_negativeSign (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_fracDigits (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_positivePrefixCurrencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_negativePrefixCurrencySymbol (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_positiveMonetarySignPosition (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_negativeMonetarySignPosition (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatMoney__DLjava_lang_String_2I (JNIEnv *env, jobject, jdouble, jstring, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatMoney__DLjava_lang_String_2 (JNIEnv *env, jobject, jdouble, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatMoney__D (JNIEnv *env, jobject, jdouble);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatNumber__DI (JNIEnv *env, jobject, jdouble, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatNumber__D (JNIEnv *env, jobject, jdouble);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatNumber__Ljava_lang_String_2ZI (JNIEnv *env, jobject, jstring, jboolean, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatLong (JNIEnv *env, jobject, jlong);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_nounDeclension (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatDate__Ljava_util_Calendar_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatDate__Ljava_util_Calendar_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_dateMonthNamePossessive (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatTime__Ljava_util_Date_2ZZ (JNIEnv *env, jobject, jobject, jboolean, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatTime__Ljava_util_Date_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatTime__Ljava_util_Date_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_use12Clock (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_weekStartDay (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_calendar (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_calendarType (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setCalendar (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2ZZ (JNIEnv *env, jobject, jobject, jboolean, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2Z (JNIEnv *env, jobject, jobject, jboolean);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_formatDateTime__Ljava_util_Calendar_2 (JNIEnv *env, jobject, jobject);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_TDELocale_readMoney__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_TDELocale_readMoney__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_TDELocale_readNumber__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jdouble JNICALL Java_org_kde_koala_TDELocale_readNumber__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jobject, jstring, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2I_3Z (JNIEnv *env, jobject, jstring, jint, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readDate__Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jint);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readTime__Ljava_lang_String_2_3Z (JNIEnv *env, jobject, jstring, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readTime__Ljava_lang_String_2 (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readTime__Ljava_lang_String_2I_3Z (JNIEnv *env, jobject, jstring, jint, jbooleanArray);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_readTime__Ljava_lang_String_2I (JNIEnv *env, jobject, jstring, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_language (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_country (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_languagesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_languageList (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_encoding (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_encodingMib (JNIEnv *env, jobject);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_codecForEncoding (JNIEnv *env, jobject);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_fileEncodingMib (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setDateFormat (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setDateFormatShort (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setDateMonthNamePossessive (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setTimeFormat (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setWeekStartDay (JNIEnv *env, jobject, jint);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_dateFormat (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_dateFormatShort (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_timeFormat (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setDecimalSymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setThousandsSeparator (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setPositiveSign (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setNegativeSign (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setPositiveMonetarySignPosition (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setNegativeMonetarySignPosition (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setPositivePrefixCurrencySymbol (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setNegativePrefixCurrencySymbol (JNIEnv *env, jobject, jboolean);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setFracDigits (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setMonetaryThousandsSeparator (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setMonetaryDecimalSymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setCurrencySymbol (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_pageSize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setPageSize (JNIEnv *env, jobject, jint);
extern JNIEXPORT jint JNICALL Java_org_kde_koala_TDELocale_measureSystem (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setMeasureSystem (JNIEnv *env, jobject, jint);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_insertCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_removeCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setActiveCatalogue (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_translateQt (JNIEnv *env, jobject, jstring, jstring, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_allLanguagesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_twoAlphaToLanguageName (JNIEnv *env, jobject, jstring);
extern JNIEXPORT jobject JNICALL Java_org_kde_koala_TDELocale_allCountriesTwoAlpha (JNIEnv *env, jobject);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_twoAlphaToCountryName (JNIEnv *env, jobject, jstring);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_splitLocale (JNIEnv *env, jclass, jstring, jobject, jobject, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_setMainCatalogue (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_langLookup__Ljava_lang_String_2Ljava_lang_String_2 (JNIEnv *env, jclass, jstring, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_langLookup__Ljava_lang_String_2 (JNIEnv *env, jclass, jstring);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_defaultLanguage (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale_defaultCountry (JNIEnv *env, jclass);
extern JNIEXPORT jstring JNICALL Java_org_kde_koala_TDELocale__1initLanguage (JNIEnv *env, jclass, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_initInstance (JNIEnv *env, jclass);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_finalize (JNIEnv *env, jobject);
extern JNIEXPORT void JNICALL Java_org_kde_koala_TDELocale_dispose (JNIEnv *env, jobject);
extern JNIEXPORT jboolean JNICALL Java_org_kde_koala_TDELocale_isDisposed (JNIEnv *env, jobject);
#ifdef __cplusplus
}
#endif
#endif /* __org_kde_koala_TDELocale__ */

@ -33,7 +33,7 @@ public class KCalendarSystemFactory implements QtSupport {
@short Gets specific calendar type number of days in previous month for a given date
*/
public static native KCalendarSystem create(String calType, KLocale locale);
public static native KCalendarSystem create(String calType, TDELocale locale);
public static native KCalendarSystem create(String calType);
public static native KCalendarSystem create();
/**

@ -9,7 +9,7 @@ import org.kde.qt.QtSupport;
This class abstracts a gettext message catalog. It will take care of
opening the file and reading the catalog.
@short This class abstracts a gettext message catalog.
@see KLocale
@see TDELocale
*/
public class KCatalogue implements QtSupport {

@ -64,7 +64,7 @@ public class KDE {
public static native String versionString();
// int KSSLPemCallback(char* arg1,int arg2,int arg3,void* arg4); >>>> NOT CONVERTED
/**
{@link KLocale}
{@link TDELocale}
i18n is the function that does everything you need to translate
a string. You just wrap around every user visible string a i18n
call to get a String with the string in the user's preferred
@ -73,20 +73,20 @@ public class KDE {
characters that are in US-ASCII, you're on the safe side. But
for e.g. German umlauts or French accents should be recoded to
UTF-8)
@short {@link KLocale} i18n is the function that does everything you need to translate a string.
@short {@link TDELocale} i18n is the function that does everything you need to translate a string.
*/
public static native String i18n(String text);
/**
{@link KLocale}
{@link TDELocale}
If the string is too ambiguous to be translated well to a non-english
language, use this form of i18n to separate lookup string and english
text.
@short {@link KLocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.
@short {@link TDELocale} If the string is too ambiguous to be translated well to a non-english language, use this form of i18n to separate lookup string and english text.
@see #translate
*/
public static native String i18n(String comment, String text);
/**
{@link KLocale}
{@link TDELocale}
If you want to handle plural forms, use this form of i18n.
@param singular the singular form of the word, for example "file".
@param plural the plural form of the word. Must contain a "%n" that will
@ -95,16 +95,16 @@ public class KDE {
@return the correct singular or plural for the selected language,
depending on n
@short {@link KLocale} If you want to handle plural forms, use this form of i18n.
@short {@link TDELocale} If you want to handle plural forms, use this form of i18n.
@see #translate
*/
public static native String i18n(String singular, String plural, long n);
/**
{@link KLocale}
{@link TDELocale}
Qt3's uic generates i18n( "msg", "comment" ) calls which conflict
with our i18n method. We use uic -tr tr2i18n to redirect
to the right i18n() function
@short {@link KLocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
@short {@link TDELocale} Qt3's uic generates i18n( "msg", "comment" ) calls which conflict with our i18n method.
*/
public static native String tr2i18n(String message, String arg2);
public static native String tr2i18n(String message);
@ -175,7 +175,7 @@ public class KDE {
// TQDataStream& op_read(TQDataStream& arg1,long long int& arg2); >>>> NOT CONVERTED
// TQDataStream& op_read(TQDataStream& arg1,unsigned long long int& arg2); >>>> NOT CONVERTED
/**
Convert an ASN1 UTCTIME value to a string. Uses KLocale settings.
Convert an ASN1 UTCTIME value to a string. Uses TDELocale settings.
@param tm the OpenSSL ASN1_UTCTIME pointer
@return the date formatted in a String
@ -184,7 +184,7 @@ public class KDE {
*/
// TQString ASN1_UTCTIME_QString(ASN1_UTCTIME* arg1); >>>> NOT CONVERTED
/**
Convert an ASN1 UTCTIME value to a Calendar. Uses KLocale settings.
Convert an ASN1 UTCTIME value to a Calendar. Uses TDELocale settings.
@param tm the OpenSSL ASN1_UTCTIME pointer
@param isGmt set to 1 if the date is set to GMT
@return the date formatted in a TQDateTime

@ -11,8 +11,8 @@ import org.kde.qt.TQDoubleValidator;
KDoubleValidator extends TQDoubleValidator to be
locale-aware. That means that - subject to not being disabled -
KLocale.decimalSymbol(), KLocale.thousandsSeparator()
and KLocale.positiveSign() and KLocale.negativeSign()
TDELocale.decimalSymbol(), TDELocale.thousandsSeparator()
and TDELocale.positiveSign() and TDELocale.negativeSign()
are respected.
@author Marc Mutz <mutz@kde.org>

@ -90,7 +90,7 @@ public class KFloatValidator extends TQValidator {
public native double top();
/**
Sets the validator to be locale aware if <code>is</code> true. In this case, the
character KLocale.decimalSymbol() from the global locale is recognized
character TDELocale.decimalSymbol() from the global locale is recognized
as decimal separator.
@short Sets the validator to be locale aware if <code>is</code> true.
*/

File diff suppressed because one or more lines are too long

@ -93,7 +93,7 @@ public class TDEConfigBackEnd implements QtSupport {
Set the locale string that defines the current language.
@param _localeString the identifier of the language
@short Set the locale string that defines the current language.
@see KLocale
@see TDELocale
*/
public native void setLocaleString(String _localeString);
/**

@ -68,7 +68,7 @@ public class TDEGlobal implements QtSupport {
@short Returns the global locale object.
*/
public static native KLocale locale();
public static native TDELocale locale();
/**
The global charset manager.
@return the global charset manager

@ -10,9 +10,9 @@ import java.util.Date;
/**
KLocale provides support for country specific stuff like
TDELocale provides support for country specific stuff like
the national language.
KLocale supports translating, as well as specifying the format
TDELocale supports translating, as well as specifying the format
for numbers, currency, time, and date.
@author Stephan Kulow <coolo@kde.org>, Preston Brown <pbrown@kde.org>,
Hans Petter Bieker <bieker@kde.org>, Lukas Tinkl <lukas.tinkl@suse.cz>
@ -20,10 +20,10 @@ import java.util.Date;
@short class for supporting locale settings and national language.
*/
public class KLocale implements QtSupport {
public class TDELocale implements QtSupport {
private long _qt;
private boolean _allocatedInJavaWorld = true;
protected KLocale(Class dummy){}
protected TDELocale(Class dummy){}
/**
Various positions for where to place the positive or negative
@ -51,36 +51,36 @@ public class KLocale implements QtSupport {
public static final int Imperial = 1;
/**
Constructs a KLocale with the given catalog name.
Constructs a TDELocale with the given catalog name.
The constructor looks for an entry Locale/Language in the
configuration file.
If no config file is specified, it will also look for languages
using the environment variables (KDE_LANG, LC_MESSAGES, LC_ALL, LANG),
as well as the global configuration file. If KLocale is not able to use
as well as the global configuration file. If TDELocale is not able to use
any of the specified languages, the default language (en_US) will be
used.
If you specify a configuration file, it has to be valid until
the KLocale object is destroyed.
the TDELocale object is destroyed.
@param catalog The name of the main language file
@param config The configuration file to use.
@short Constructs a KLocale with the given catalog name.
@short Constructs a TDELocale with the given catalog name.
*/
public KLocale(String catalog, TDEConfig config) {
newKLocale(catalog,config);
public TDELocale(String catalog, TDEConfig config) {
newTDELocale(catalog,config);
}
private native void newKLocale(String catalog, TDEConfig config);
public KLocale(String catalog) {
newKLocale(catalog);
private native void newTDELocale(String catalog, TDEConfig config);
public TDELocale(String catalog) {
newTDELocale(catalog);
}
private native void newKLocale(String catalog);
private native void newTDELocale(String catalog);
/**
Copy constructor.
@short Copy constructor.
*/
public KLocale(KLocale rhs) {
newKLocale(rhs);
public TDELocale(TDELocale rhs) {
newTDELocale(rhs);
}
private native void newKLocale(KLocale rhs);
private native void newTDELocale(TDELocale rhs);
/**
Translates the string into the corresponding string in
the national language, if available. If not, returns
@ -740,9 +740,9 @@ public class KLocale implements QtSupport {
*/
public native void setTimeFormat(String format);
/**
Changes how KLocale defines the first day in week.
Changes how TDELocale defines the first day in week.
@param day first day of the week (Monday=1..Sunday=7) as integer
@short Changes how KLocale defines the first day in week.
@short Changes how TDELocale defines the first day in week.
*/
public native void setWeekStartDay(int day);
/**
@ -945,12 +945,12 @@ public class KLocale implements QtSupport {
*/
public static native void splitLocale(String str, StringBuffer language, StringBuffer country, StringBuffer charset);
/**
Use this as main catalog for all KLocales, if not the appname
Use this as main catalog for all TDELocales, if not the appname
will be used. This function is best to be the very first instruction
in your program's main function as it only has an effect before the
first KLocale object is created.
first TDELocale object is created.
@param catalog Catalogue to override all other main catalogues.
@short Use this as main catalog for all KLocales, if not the appname will be used.
@short Use this as main catalog for all TDELocales, if not the appname will be used.
*/
public static native void setMainCatalogue(String catalog);
/**

@ -74,7 +74,7 @@ import java.util.ArrayList;
</li>
<li>
locale - Translation files for KLocale.
locale - Translation files for TDELocale.
</li>
<li>

@ -6,7 +6,7 @@ public class KDatePickTest {
public static void main (String[] args) {
KLocale.setMainCatalogue("tdelibs");
TDELocale.setMainCatalogue("tdelibs");
TDECmdLineArgs.init(args, "kdatepickertest", "KDatePickTest",
"A KDatePicker test..", "0.1");
TDEApplication app = new TDEApplication();

@ -3905,7 +3905,7 @@
</class>
<class>
<package>org.kde.koala</package>
<name>KLocale</name>
<name>TDELocale</name>
</class>
<class>
<package>org.kde.koala</package>

Loading…
Cancel
Save