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

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

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCalendarSystem_addDays(JNIEnv* env, jobject obj, jobject date, jint ndays)
{
	QDate  _qdate;
static QDate* _qdate_date = 0;
	_qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addDays((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (int) ndays);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCalendarSystem_addMonths(JNIEnv* env, jobject obj, jobject date, jint nmonths)
{
	QDate  _qdate;
static QDate* _qdate_date = 0;
	_qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addMonths((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (int) nmonths);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KCalendarSystem_addYears(JNIEnv* env, jobject obj, jobject date, jint nyears)
{
	QDate  _qdate;
static QDate* _qdate_date = 0;
	_qdate = ((KCalendarSystem*) QtSupport::getQt(env, obj))->addYears((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (int) nyears);
	return (jobject) QtSupport::fromQDate(env, (QDate*) &_qdate);
}

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

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_dayOfWeek(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayOfWeek((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_dayOfYear(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayOfYear((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_dayStringToInteger(JNIEnv* env, jobject obj, jstring sNum, jintArray iLength)
{
static QString* _qstring_sNum = 0;
	int* _int_iLength = QtSupport::toIntPtr(env, iLength);
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayStringToInteger((const QString&)*(QString*) QtSupport::toQString(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)
{
	QString  _qstring;
static QDate* _qdate_pDate = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->dayString((const QDate&)*(QDate*) QtSupport::toQDate(env, pDate, &_qdate_pDate), (bool) bShort);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_day(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->day((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_daysInMonth(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->daysInMonth((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_daysInYear(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->daysInYear((const QDate&)*(QDate*) QtSupport::toQDate(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)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((int) month, (int) year);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthNamePossessive__IIZ(JNIEnv* env, jobject obj, jint month, jint year, jboolean shortName)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((int) month, (int) year, (bool) shortName);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthNamePossessive__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthNamePossessive__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthNamePossessive((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (bool) shortName);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthName__II(JNIEnv* env, jobject obj, jint month, jint year)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((int) month, (int) year);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthName__IIZ(JNIEnv* env, jobject obj, jint month, jint year, jboolean shortName)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((int) month, (int) year, (bool) shortName);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthName__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_monthName__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthName((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (bool) shortName);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_monthStringToInteger(JNIEnv* env, jobject obj, jstring sNum, jintArray iLength)
{
static QString* _qstring_sNum = 0;
	int* _int_iLength = QtSupport::toIntPtr(env, iLength);
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthStringToInteger((const QString&)*(QString*) QtSupport::toQString(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)
{
	QString  _qstring;
static QDate* _qdate_pDate = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthString((const QDate&)*(QDate*) QtSupport::toQDate(env, pDate, &_qdate_pDate), (bool) bShort);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_month(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->month((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_monthsInYear(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->monthsInYear((const QDate&)*(QDate*) QtSupport::toQDate(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 QDate* _qdate_date = 0;
	jboolean xret = (jboolean) ((KCalendarSystem*) QtSupport::getQt(env, obj))->setYMD((QDate&)*(QDate*) QtSupport::toQDate(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)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((int) weekDay);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_weekDayName__IZ(JNIEnv* env, jobject obj, jint weekDay, jboolean shortName)
{
	QString  _qstring;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((int) weekDay, (bool) shortName);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_weekDayName__Ljava_util_Calendar_2(JNIEnv* env, jobject obj, jobject date)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jstring JNICALL
Java_org_kde_koala_KCalendarSystem_weekDayName__Ljava_util_Calendar_2Z(JNIEnv* env, jobject obj, jobject date, jboolean shortName)
{
	QString  _qstring;
static QDate* _qdate_date = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekDayName((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date), (bool) shortName);
	return QtSupport::fromQString(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 QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekNumber((const QDate&)*(QDate*) QtSupport::toQDate(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 QDate* _qdate_date = 0;
	int* _int_yearNum = QtSupport::toIntPtr(env, yearNum);
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->weekNumber((const QDate&)*(QDate*) QtSupport::toQDate(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 QString* _qstring_sNum = 0;
	int* _int_iLength = QtSupport::toIntPtr(env, iLength);
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->yearStringToInteger((const QString&)*(QString*) QtSupport::toQString(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)
{
	QString  _qstring;
static QDate* _qdate_pDate = 0;
	_qstring = ((KCalendarSystem*) QtSupport::getQt(env, obj))->yearString((const QDate&)*(QDate*) QtSupport::toQDate(env, pDate, &_qdate_pDate), (bool) bShort);
	return QtSupport::fromQString(env, &_qstring);
}

JNIEXPORT jint JNICALL
Java_org_kde_koala_KCalendarSystem_year(JNIEnv* env, jobject obj, jobject date)
{
static QDate* _qdate_date = 0;
	jint xret = (jint) ((KCalendarSystem*) QtSupport::getQt(env, obj))->year((const QDate&)*(QDate*) QtSupport::toQDate(env, date, &_qdate_date));
	return xret;
}

