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

class x_QDate : public QDate {
public:
    static void x_0(Smoke::Stack x) {
	// QDate()
	x_QDate* xret = new x_QDate();
	x[0].s_class = (void*)xret;
    }
    x_QDate() : QDate() {
    }
    static void x_1(Smoke::Stack x) {
	// QDate(int, int, int)
	x_QDate* xret = new x_QDate((int)x[1].s_int,(int)x[2].s_int,(int)x[3].s_int);
	x[0].s_class = (void*)xret;
    }
    x_QDate(int x1, int x2, int x3) : QDate(x1, x2, x3) {
    }
    void x_2(Smoke::Stack x) const {
	// isNull()
	bool xret = this->QDate::isNull();
	x[0].s_bool = xret;
    }
    void x_3(Smoke::Stack x) const {
	// isValid()
	bool xret = this->QDate::isValid();
	x[0].s_bool = xret;
    }
    void x_4(Smoke::Stack x) const {
	// year()
	int xret = this->QDate::year();
	x[0].s_int = xret;
    }
    void x_5(Smoke::Stack x) const {
	// month()
	int xret = this->QDate::month();
	x[0].s_int = xret;
    }
    void x_6(Smoke::Stack x) const {
	// day()
	int xret = this->QDate::day();
	x[0].s_int = xret;
    }
    void x_7(Smoke::Stack x) const {
	// dayOfWeek()
	int xret = this->QDate::dayOfWeek();
	x[0].s_int = xret;
    }
    void x_8(Smoke::Stack x) const {
	// dayOfYear()
	int xret = this->QDate::dayOfYear();
	x[0].s_int = xret;
    }
    void x_9(Smoke::Stack x) const {
	// daysInMonth()
	int xret = this->QDate::daysInMonth();
	x[0].s_int = xret;
    }
    void x_10(Smoke::Stack x) const {
	// daysInYear()
	int xret = this->QDate::daysInYear();
	x[0].s_int = xret;
    }
    void x_11(Smoke::Stack x) const {
	// weekNumber(int*)
	int xret = this->QDate::weekNumber((int*)x[1].s_voidp);
	x[0].s_int = xret;
    }
    void x_12(Smoke::Stack x) const {
	// weekNumber()
	int xret = this->QDate::weekNumber();
	x[0].s_int = xret;
    }
    void x_13(Smoke::Stack x) const {
	// toString(Qt::DateFormat)
	QString xret = this->QDate::toString((Qt::DateFormat)x[1].s_enum);
	x[0].s_voidp = (void*)new QString(xret);
    }
    void x_14(Smoke::Stack x) const {
	// toString()
	QString xret = this->QDate::toString();
	x[0].s_voidp = (void*)new QString(xret);
    }
    void x_15(Smoke::Stack x) const {
	// toString(const QString&)
	QString xret = this->QDate::toString(*(const QString *)x[1].s_voidp);
	x[0].s_voidp = (void*)new QString(xret);
    }
    void x_16(Smoke::Stack x) {
	// setYMD(int, int, int)
	bool xret = this->QDate::setYMD((int)x[1].s_int,(int)x[2].s_int,(int)x[3].s_int);
	x[0].s_bool = xret;
    }
    void x_17(Smoke::Stack x) const {
	// addDays(int)
	QDate xret = this->QDate::addDays((int)x[1].s_int);
	x[0].s_class = (void*)new QDate(xret);
    }
    void x_18(Smoke::Stack x) const {
	// addMonths(int)
	QDate xret = this->QDate::addMonths((int)x[1].s_int);
	x[0].s_class = (void*)new QDate(xret);
    }
    void x_19(Smoke::Stack x) const {
	// addYears(int)
	QDate xret = this->QDate::addYears((int)x[1].s_int);
	x[0].s_class = (void*)new QDate(xret);
    }
    void x_20(Smoke::Stack x) const {
	// daysTo(const QDate&)
	int xret = this->QDate::daysTo(*(const QDate *)x[1].s_class);
	x[0].s_int = xret;
    }
    void x_21(Smoke::Stack x) const {
	// operator==(const QDate&)
	bool xret = this->QDate::operator==(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    void x_22(Smoke::Stack x) const {
	// operator!=(const QDate&)
	bool xret = this->QDate::operator!=(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    void x_23(Smoke::Stack x) const {
	// operator<(const QDate&)
	bool xret = this->QDate::operator<(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    void x_24(Smoke::Stack x) const {
	// operator<=(const QDate&)
	bool xret = this->QDate::operator<=(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    void x_25(Smoke::Stack x) const {
	// operator>(const QDate&)
	bool xret = this->QDate::operator>(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    void x_26(Smoke::Stack x) const {
	// operator>=(const QDate&)
	bool xret = this->QDate::operator>=(*(const QDate *)x[1].s_class);
	x[0].s_bool = xret;
    }
    static void x_27(Smoke::Stack x) {
	// QDate(const QDate&)
	x_QDate* xret = new x_QDate(*(const QDate *)x[1].s_class);
	x[0].s_class = (void*)xret;
    }
    x_QDate(const QDate& x1) : QDate(x1) {
    }
    static void x_28(Smoke::Stack x) {
	// monthName(int)
	QString xret = QDate::monthName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_29(Smoke::Stack x) {
	// dayName(int)
	QString xret = QDate::dayName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_30(Smoke::Stack x) {
	// shortMonthName(int)
	QString xret = QDate::shortMonthName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_31(Smoke::Stack x) {
	// shortDayName(int)
	QString xret = QDate::shortDayName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_32(Smoke::Stack x) {
	// longMonthName(int)
	QString xret = QDate::longMonthName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_33(Smoke::Stack x) {
	// longDayName(int)
	QString xret = QDate::longDayName((int)x[1].s_int);
	x[0].s_voidp = (void*)new QString(xret);
    }
    static void x_34(Smoke::Stack x) {
	// currentDate()
	QDate xret = QDate::currentDate();
	x[0].s_class = (void*)new QDate(xret);
    }
    static void x_35(Smoke::Stack x) {
	// currentDate(Qt::TimeSpec)
	QDate xret = QDate::currentDate((Qt::TimeSpec)x[1].s_enum);
	x[0].s_class = (void*)new QDate(xret);
    }
    static void x_36(Smoke::Stack x) {
	// fromString(const QString&, Qt::DateFormat)
	QDate xret = QDate::fromString(*(const QString *)x[1].s_voidp,(Qt::DateFormat)x[2].s_enum);
	x[0].s_class = (void*)new QDate(xret);
    }
    static void x_37(Smoke::Stack x) {
	// fromString(const QString&)
	QDate xret = QDate::fromString(*(const QString *)x[1].s_voidp);
	x[0].s_class = (void*)new QDate(xret);
    }
    static void x_38(Smoke::Stack x) {
	// isValid(int, int, int)
	bool xret = QDate::isValid((int)x[1].s_int,(int)x[2].s_int,(int)x[3].s_int);
	x[0].s_bool = xret;
    }
    static void x_39(Smoke::Stack x) {
	// leapYear(int)
	bool xret = QDate::leapYear((int)x[1].s_int);
	x[0].s_bool = xret;
    }
    static void x_40(Smoke::Stack x) {
	// gregorianToJulian(int, int, int)
	uint xret = QDate::gregorianToJulian((int)x[1].s_int,(int)x[2].s_int,(int)x[3].s_int);
	x[0].s_uint = xret;
    }
    static void x_41(Smoke::Stack x) {
	// julianToGregorian(uint, int&, int&, int&)
	QDate::julianToGregorian((uint)x[1].s_uint,*(int *)x[2].s_voidp,*(int *)x[3].s_voidp,*(int *)x[4].s_voidp);
	(void)x; // noop (for compiler warning)
    }
    ~x_QDate() { qt_Smoke->binding->deleted(63, (void*)this); }
};
void xcall_QDate(Smoke::Index xi, void *obj, Smoke::Stack args) {
    x_QDate *xself = (x_QDate*)obj;
    switch(xi) {
	case 0: x_QDate::x_0(args);	break;
	case 1: x_QDate::x_1(args);	break;
	case 2: xself->x_2(args);	break;
	case 3: xself->x_3(args);	break;
	case 4: xself->x_4(args);	break;
	case 5: xself->x_5(args);	break;
	case 6: xself->x_6(args);	break;
	case 7: xself->x_7(args);	break;
	case 8: xself->x_8(args);	break;
	case 9: xself->x_9(args);	break;
	case 10: xself->x_10(args);	break;
	case 11: xself->x_11(args);	break;
	case 12: xself->x_12(args);	break;
	case 13: xself->x_13(args);	break;
	case 14: xself->x_14(args);	break;
	case 15: xself->x_15(args);	break;
	case 16: xself->x_16(args);	break;
	case 17: xself->x_17(args);	break;
	case 18: xself->x_18(args);	break;
	case 19: xself->x_19(args);	break;
	case 20: xself->x_20(args);	break;
	case 21: xself->x_21(args);	break;
	case 22: xself->x_22(args);	break;
	case 23: xself->x_23(args);	break;
	case 24: xself->x_24(args);	break;
	case 25: xself->x_25(args);	break;
	case 26: xself->x_26(args);	break;
	case 27: x_QDate::x_27(args);	break;
	case 28: x_QDate::x_28(args);	break;
	case 29: x_QDate::x_29(args);	break;
	case 30: x_QDate::x_30(args);	break;
	case 31: x_QDate::x_31(args);	break;
	case 32: x_QDate::x_32(args);	break;
	case 33: x_QDate::x_33(args);	break;
	case 34: x_QDate::x_34(args);	break;
	case 35: x_QDate::x_35(args);	break;
	case 36: x_QDate::x_36(args);	break;
	case 37: x_QDate::x_37(args);	break;
	case 38: x_QDate::x_38(args);	break;
	case 39: x_QDate::x_39(args);	break;
	case 40: x_QDate::x_40(args);	break;
	case 41: x_QDate::x_41(args);	break;
	case 42: delete (QDate*)xself;	break;
    }
}
