#ifndef GEN_QDATETIME_H #define GEN_QDATETIME_H #include #include #include #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #include "binding.h" #ifdef __cplusplus extern "C" { #endif #ifdef __cplusplus class QCalendar; class QDate; class QDateTime; class QTime; class QTimeZone; #else typedef struct QCalendar QCalendar; typedef struct QDate QDate; typedef struct QDateTime QDateTime; typedef struct QTime QTime; typedef struct QTimeZone QTimeZone; #endif QDate* QDate_new(); QDate* QDate_new2(int y, int m, int d); QDate* QDate_new3(int y, int m, int d, QCalendar* cal); QDate* QDate_new4(QDate* param1); bool QDate_IsNull(const QDate* self); bool QDate_IsValid(const QDate* self); int QDate_Year(const QDate* self); int QDate_Month(const QDate* self); int QDate_Day(const QDate* self); int QDate_DayOfWeek(const QDate* self); int QDate_DayOfYear(const QDate* self); int QDate_DaysInMonth(const QDate* self); int QDate_DaysInYear(const QDate* self); int QDate_WeekNumber(const QDate* self); int QDate_YearWithCal(const QDate* self, QCalendar* cal); int QDate_MonthWithCal(const QDate* self, QCalendar* cal); int QDate_DayWithCal(const QDate* self, QCalendar* cal); int QDate_DayOfWeekWithCal(const QDate* self, QCalendar* cal); int QDate_DayOfYearWithCal(const QDate* self, QCalendar* cal); int QDate_DaysInMonthWithCal(const QDate* self, QCalendar* cal); int QDate_DaysInYearWithCal(const QDate* self, QCalendar* cal); QDateTime* QDate_StartOfDay(const QDate* self); QDateTime* QDate_EndOfDay(const QDate* self); QDateTime* QDate_StartOfDayWithZone(const QDate* self, QTimeZone* zone); QDateTime* QDate_EndOfDayWithZone(const QDate* self, QTimeZone* zone); struct miqt_string* QDate_ShortMonthName(int month); struct miqt_string* QDate_ShortDayName(int weekday); struct miqt_string* QDate_LongMonthName(int month); struct miqt_string* QDate_LongDayName(int weekday); struct miqt_string* QDate_ToString(const QDate* self); struct miqt_string* QDate_ToString2(const QDate* self, uintptr_t format, QCalendar* cal); struct miqt_string* QDate_ToStringWithFormat(const QDate* self, struct miqt_string* format); struct miqt_string* QDate_ToString3(const QDate* self, struct miqt_string* format, QCalendar* cal); bool QDate_SetDate(QDate* self, int year, int month, int day); bool QDate_SetDate2(QDate* self, int year, int month, int day, QCalendar* cal); void QDate_GetDate(QDate* self, int* year, int* month, int* day); void QDate_GetDate2(const QDate* self, int* year, int* month, int* day); QDate* QDate_AddDays(const QDate* self, long long days); QDate* QDate_AddMonths(const QDate* self, int months); QDate* QDate_AddYears(const QDate* self, int years); QDate* QDate_AddMonths2(const QDate* self, int months, QCalendar* cal); QDate* QDate_AddYears2(const QDate* self, int years, QCalendar* cal); long long QDate_DaysTo(const QDate* self, QDate* param1); bool QDate_OperatorEqual(const QDate* self, QDate* other); bool QDate_OperatorNotEqual(const QDate* self, QDate* other); bool QDate_OperatorLesser(const QDate* self, QDate* other); bool QDate_OperatorLesserOrEqual(const QDate* self, QDate* other); bool QDate_OperatorGreater(const QDate* self, QDate* other); bool QDate_OperatorGreaterOrEqual(const QDate* self, QDate* other); QDate* QDate_CurrentDate(); QDate* QDate_FromString(struct miqt_string* s); QDate* QDate_FromString2(struct miqt_string* s, struct miqt_string* format); QDate* QDate_FromString3(struct miqt_string* s, struct miqt_string* format, QCalendar* cal); bool QDate_IsValid2(int y, int m, int d); bool QDate_IsLeapYear(int year); QDate* QDate_FromJulianDay(long long jd_); long long QDate_ToJulianDay(const QDate* self); int QDate_WeekNumber1(const QDate* self, int* yearNum); QDateTime* QDate_StartOfDay1(const QDate* self, uintptr_t spec); QDateTime* QDate_StartOfDay2(const QDate* self, uintptr_t spec, int offsetSeconds); QDateTime* QDate_EndOfDay1(const QDate* self, uintptr_t spec); QDateTime* QDate_EndOfDay2(const QDate* self, uintptr_t spec, int offsetSeconds); struct miqt_string* QDate_ShortMonthName2(int month, uintptr_t typeVal); struct miqt_string* QDate_ShortDayName2(int weekday, uintptr_t typeVal); struct miqt_string* QDate_LongMonthName2(int month, uintptr_t typeVal); struct miqt_string* QDate_LongDayName2(int weekday, uintptr_t typeVal); struct miqt_string* QDate_ToString1(const QDate* self, uintptr_t format); QDate* QDate_FromString22(struct miqt_string* s, uintptr_t f); void QDate_Delete(QDate* self); QTime* QTime_new(); QTime* QTime_new2(int h, int m); QTime* QTime_new3(QTime* param1); QTime* QTime_new4(int h, int m, int s); QTime* QTime_new5(int h, int m, int s, int ms); bool QTime_IsNull(const QTime* self); bool QTime_IsValid(const QTime* self); int QTime_Hour(const QTime* self); int QTime_Minute(const QTime* self); int QTime_Second(const QTime* self); int QTime_Msec(const QTime* self); struct miqt_string* QTime_ToString(const QTime* self); struct miqt_string* QTime_ToStringWithFormat(const QTime* self, struct miqt_string* format); bool QTime_SetHMS(QTime* self, int h, int m, int s); QTime* QTime_AddSecs(const QTime* self, int secs); int QTime_SecsTo(const QTime* self, QTime* param1); QTime* QTime_AddMSecs(const QTime* self, int ms); int QTime_MsecsTo(const QTime* self, QTime* param1); bool QTime_OperatorEqual(const QTime* self, QTime* other); bool QTime_OperatorNotEqual(const QTime* self, QTime* other); bool QTime_OperatorLesser(const QTime* self, QTime* other); bool QTime_OperatorLesserOrEqual(const QTime* self, QTime* other); bool QTime_OperatorGreater(const QTime* self, QTime* other); bool QTime_OperatorGreaterOrEqual(const QTime* self, QTime* other); QTime* QTime_FromMSecsSinceStartOfDay(int msecs); int QTime_MsecsSinceStartOfDay(const QTime* self); QTime* QTime_CurrentTime(); QTime* QTime_FromString(struct miqt_string* s); QTime* QTime_FromString2(struct miqt_string* s, struct miqt_string* format); bool QTime_IsValid2(int h, int m, int s); void QTime_Start(QTime* self); int QTime_Restart(QTime* self); int QTime_Elapsed(const QTime* self); struct miqt_string* QTime_ToString1(const QTime* self, uintptr_t f); bool QTime_SetHMS4(QTime* self, int h, int m, int s, int ms); QTime* QTime_FromString22(struct miqt_string* s, uintptr_t f); bool QTime_IsValid4(int h, int m, int s, int ms); void QTime_Delete(QTime* self); QDateTime* QDateTime_new(QDate* param1); QDateTime* QDateTime_new2(QDate* param1, QTime* param2); QDateTime* QDateTime_new3(QDate* date, QTime* time, uintptr_t spec, int offsetSeconds); QDateTime* QDateTime_new4(QDate* date, QTime* time, QTimeZone* timeZone); QDateTime* QDateTime_new5(QDateTime* other); QDateTime* QDateTime_new6(QDate* param1, QTime* param2, uintptr_t spec); void QDateTime_OperatorAssign(QDateTime* self, QDateTime* other); void QDateTime_Swap(QDateTime* self, QDateTime* other); bool QDateTime_IsNull(const QDateTime* self); bool QDateTime_IsValid(const QDateTime* self); QDate* QDateTime_Date(const QDateTime* self); QTime* QDateTime_Time(const QDateTime* self); uintptr_t QDateTime_TimeSpec(const QDateTime* self); int QDateTime_OffsetFromUtc(const QDateTime* self); QTimeZone* QDateTime_TimeZone(const QDateTime* self); struct miqt_string* QDateTime_TimeZoneAbbreviation(const QDateTime* self); bool QDateTime_IsDaylightTime(const QDateTime* self); long long QDateTime_ToMSecsSinceEpoch(const QDateTime* self); long long QDateTime_ToSecsSinceEpoch(const QDateTime* self); void QDateTime_SetDate(QDateTime* self, QDate* date); void QDateTime_SetTime(QDateTime* self, QTime* time); void QDateTime_SetTimeSpec(QDateTime* self, uintptr_t spec); void QDateTime_SetOffsetFromUtc(QDateTime* self, int offsetSeconds); void QDateTime_SetTimeZone(QDateTime* self, QTimeZone* toZone); void QDateTime_SetMSecsSinceEpoch(QDateTime* self, long long msecs); void QDateTime_SetSecsSinceEpoch(QDateTime* self, long long secs); struct miqt_string* QDateTime_ToString(const QDateTime* self); struct miqt_string* QDateTime_ToStringWithFormat(const QDateTime* self, struct miqt_string* format); struct miqt_string* QDateTime_ToString2(const QDateTime* self, struct miqt_string* format, QCalendar* cal); QDateTime* QDateTime_AddDays(const QDateTime* self, long long days); QDateTime* QDateTime_AddMonths(const QDateTime* self, int months); QDateTime* QDateTime_AddYears(const QDateTime* self, int years); QDateTime* QDateTime_AddSecs(const QDateTime* self, long long secs); QDateTime* QDateTime_AddMSecs(const QDateTime* self, long long msecs); QDateTime* QDateTime_ToTimeSpec(const QDateTime* self, uintptr_t spec); QDateTime* QDateTime_ToLocalTime(const QDateTime* self); QDateTime* QDateTime_ToUTC(const QDateTime* self); QDateTime* QDateTime_ToOffsetFromUtc(const QDateTime* self, int offsetSeconds); QDateTime* QDateTime_ToTimeZone(const QDateTime* self, QTimeZone* toZone); long long QDateTime_DaysTo(const QDateTime* self, QDateTime* param1); long long QDateTime_SecsTo(const QDateTime* self, QDateTime* param1); long long QDateTime_MsecsTo(const QDateTime* self, QDateTime* param1); bool QDateTime_OperatorEqual(const QDateTime* self, QDateTime* other); bool QDateTime_OperatorNotEqual(const QDateTime* self, QDateTime* other); bool QDateTime_OperatorLesser(const QDateTime* self, QDateTime* other); bool QDateTime_OperatorLesserOrEqual(const QDateTime* self, QDateTime* other); bool QDateTime_OperatorGreater(const QDateTime* self, QDateTime* other); bool QDateTime_OperatorGreaterOrEqual(const QDateTime* self, QDateTime* other); void QDateTime_SetUtcOffset(QDateTime* self, int seconds); int QDateTime_UtcOffset(const QDateTime* self); QDateTime* QDateTime_CurrentDateTime(); QDateTime* QDateTime_CurrentDateTimeUtc(); QDateTime* QDateTime_FromString(struct miqt_string* s); QDateTime* QDateTime_FromString2(struct miqt_string* s, struct miqt_string* format); QDateTime* QDateTime_FromString3(struct miqt_string* s, struct miqt_string* format, QCalendar* cal); unsigned int QDateTime_ToTimeT(const QDateTime* self); void QDateTime_SetTimeT(QDateTime* self, unsigned int secsSince1Jan1970UTC); QDateTime* QDateTime_FromTimeT(unsigned int secsSince1Jan1970UTC); QDateTime* QDateTime_FromTimeT2(unsigned int secsSince1Jan1970UTC, uintptr_t spec); QDateTime* QDateTime_FromTimeT3(unsigned int secsSince1Jan1970UTC, QTimeZone* timeZone); QDateTime* QDateTime_FromMSecsSinceEpoch(long long msecs); QDateTime* QDateTime_FromMSecsSinceEpoch2(long long msecs, uintptr_t spec); QDateTime* QDateTime_FromSecsSinceEpoch(long long secs); QDateTime* QDateTime_FromMSecsSinceEpoch3(long long msecs, QTimeZone* timeZone); QDateTime* QDateTime_FromSecsSinceEpoch2(long long secs, QTimeZone* timeZone); long long QDateTime_CurrentMSecsSinceEpoch(); long long QDateTime_CurrentSecsSinceEpoch(); struct miqt_string* QDateTime_ToString1(const QDateTime* self, uintptr_t format); QDateTime* QDateTime_FromString22(struct miqt_string* s, uintptr_t f); QDateTime* QDateTime_FromTimeT32(unsigned int secsSince1Jan1970UTC, uintptr_t spec, int offsetFromUtc); QDateTime* QDateTime_FromMSecsSinceEpoch32(long long msecs, uintptr_t spec, int offsetFromUtc); QDateTime* QDateTime_FromSecsSinceEpoch22(long long secs, uintptr_t spe); QDateTime* QDateTime_FromSecsSinceEpoch3(long long secs, uintptr_t spe, int offsetFromUtc); void QDateTime_Delete(QDateTime* self); #ifdef __cplusplus } /* extern C */ #endif #endif