//Auto-generated by kalyptus. DO NOT EDIT. #include #include #include #include #include #include JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystem_addDays(JNIEnv* env, jobject obj, jobject date, jint ndays) { TQDate _qdate; static TQDate* _qdate_date = 0; _qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addDays((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (int) ndays); return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate); } JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystem_addMonths(JNIEnv* env, jobject obj, jobject date, jint nmonths) { TQDate _qdate; static TQDate* _qdate_date = 0; _qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addMonths((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (int) nmonths); return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate); } JNIEXPORT jobject JNICALL Java_org_kde_koala_KCalendarSystem_addYears(JNIEnv* env, jobject obj, jobject date, jint nyears) { TQDate _qdate; static TQDate* _qdate_date = 0; _qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addYears((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (int) nyears); return (jobject) QtSupport::fromTQDate(env, (TQDate*) &_qdate); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_calendarName(JNIEnv* env, jobject obj) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->calendarName(); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_dayOfWeek(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayOfWeek((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_dayOfYear(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayOfYear((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_dayStringToInteger(JNIEnv* env, jobject obj, jstring sNum, jintArray iLength) { static TQString* _qstring_sNum = 0; int* _int_iLength = QtSupport::toIntPtr(env, iLength); jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayStringToInteger((const TQString&)*(TQString*) QtSupport::toTQString(env, sNum, &_qstring_sNum), (int&) *_int_iLength); env->SetIntArrayRegion(iLength, 0, 1, (jint *) _int_iLength); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_dayString(JNIEnv* env, jobject obj, jobject pDate, jboolean bShort) { TQString _qstring; static TQDate* _qdate_pDate = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayString((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate), (bool) bShort); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_day(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->day((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_daysInMonth(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->daysInMonth((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_daysInYear(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->daysInYear((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCalendarSystem_isLunar(JNIEnv* env, jobject obj) { jboolean xret = (jboolean) ((KCalendarSystem*) QtSupport::getQt(env, obj))->isLunar(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCalendarSystem_isLunisolar(JNIEnv* env, jobject obj) { jboolean xret = (jboolean) ((KCalendarSystem*) QtSupport::getQt(env, obj))->isLunisolar(); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCalendarSystem_isSolar(JNIEnv* env, jobject obj) { jboolean xret = (jboolean) ((KCalendarSystem*) QtSupport::getQt(env, obj))->isSolar(); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_maxValidYear(JNIEnv* env, jobject obj) { jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->maxValidYear(); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_minValidYear(JNIEnv* env, jobject obj) { jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->minValidYear(); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthNamePossessive__II(JNIEnv* env, jobject obj, jint month, jint year) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((int) month, (int) year); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthNamePossessive__IIZ(JNIEnv* env, jobject obj, jint month, jint year, jboolean shortName) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((int) month, (int) year, (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthNamePossessive__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthNamePossessive__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthName__II(JNIEnv* env, jobject obj, jint month, jint year) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((int) month, (int) year); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthName__IIZ(JNIEnv* env, jobject obj, jint month, jint year, jboolean shortName) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((int) month, (int) year, (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthName__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthName__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_monthStringToInteger(JNIEnv* env, jobject obj, jstring sNum, jintArray iLength) { static TQString* _qstring_sNum = 0; int* _int_iLength = QtSupport::toIntPtr(env, iLength); jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthStringToInteger((const TQString&)*(TQString*) QtSupport::toTQString(env, sNum, &_qstring_sNum), (int&) *_int_iLength); env->SetIntArrayRegion(iLength, 0, 1, (jint *) _int_iLength); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_monthString(JNIEnv* env, jobject obj, jobject pDate, jboolean bShort) { TQString _qstring; static TQDate* _qdate_pDate = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthString((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate), (bool) bShort); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_month(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->month((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_monthsInYear(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthsInYear((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jboolean JNICALL Java_org_kde_koala_KCalendarSystem_setYMD(JNIEnv* env, jobject obj, jobject date, jint y, jint m, jint d) { static TQDate* _qdate_date = 0; jboolean xret = (jboolean) ((KCalendarSystem*) QtSupport::getQt(env, obj))->setYMD((TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (int) y, (int) m, (int) d); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_weekDayName__I(JNIEnv* env, jobject obj, jint weekDay) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((int) weekDay); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_weekDayName__IZ(JNIEnv* env, jobject obj, jint weekDay, jboolean shortName) { TQString _qstring; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((int) weekDay, (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_weekDayName__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_weekDayName__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName) { TQString _qstring; static TQDate* _qdate_date = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (bool) shortName); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_weekDayOfPray(JNIEnv* env, jobject obj) { jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayOfPray(); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_weekNumber__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekNumber((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_weekNumber__Ljava_util_Calendar_2_3I(JNIEnv* env, jobject obj, jobject date, jintArray yearNum) { static TQDate* _qdate_date = 0; int* _int_yearNum = QtSupport::toIntPtr(env, yearNum); jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekNumber((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date), (int*) _int_yearNum); env->SetIntArrayRegion(yearNum, 0, 1, (jint *) _int_yearNum); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_weeksInYear(JNIEnv* env, jobject obj, jint year) { jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weeksInYear((int) year); return xret; } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_yearStringToInteger(JNIEnv* env, jobject obj, jstring sNum, jintArray iLength) { static TQString* _qstring_sNum = 0; int* _int_iLength = QtSupport::toIntPtr(env, iLength); jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->yearStringToInteger((const TQString&)*(TQString*) QtSupport::toTQString(env, sNum, &_qstring_sNum), (int&) *_int_iLength); env->SetIntArrayRegion(iLength, 0, 1, (jint *) _int_iLength); return xret; } JNIEXPORT jstring JNICALL Java_org_kde_koala_KCalendarSystem_yearString(JNIEnv* env, jobject obj, jobject pDate, jboolean bShort) { TQString _qstring; static TQDate* _qdate_pDate = 0; _qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->yearString((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, pDate, &_qdate_pDate), (bool) bShort); return QtSupport::fromTQString(env, &_qstring); } JNIEXPORT jint JNICALL Java_org_kde_koala_KCalendarSystem_year(JNIEnv* env, jobject obj, jobject date) { static TQDate* _qdate_date = 0; jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->year((const TQDate&)*(TQDate*) QtSupport::toTQDate(env, date, &_qdate_date)); return xret; }