miqt/qt/gen_qtimezone.h

88 lines
4.3 KiB
C
Raw Normal View History

#ifndef GEN_QTIMEZONE_H
#define GEN_QTIMEZONE_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#include "binding.h"
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
class QByteArray;
class QDateTime;
2024-08-29 07:01:51 +00:00
class QLocale;
class QTimeZone;
2024-08-29 07:01:51 +00:00
#if defined(WORKAROUND_INNER_CLASS_DEFINITION_QTimeZone__OffsetData)
typedef QTimeZone::OffsetData QTimeZone__OffsetData;
#else
class QTimeZone__OffsetData;
#endif
#else
typedef struct QByteArray QByteArray;
typedef struct QDateTime QDateTime;
2024-08-29 07:01:51 +00:00
typedef struct QLocale QLocale;
typedef struct QTimeZone QTimeZone;
2024-08-29 07:01:51 +00:00
typedef struct QTimeZone__OffsetData QTimeZone__OffsetData;
#endif
QTimeZone* QTimeZone_new();
QTimeZone* QTimeZone_new2(QByteArray* ianaId);
QTimeZone* QTimeZone_new3(int offsetSeconds);
QTimeZone* QTimeZone_new4(QByteArray* zoneId, int offsetSeconds, struct miqt_string* name, struct miqt_string* abbreviation);
2024-08-29 07:01:51 +00:00
QTimeZone* QTimeZone_new5(QTimeZone* other);
QTimeZone* QTimeZone_new6(QByteArray* zoneId, int offsetSeconds, struct miqt_string* name, struct miqt_string* abbreviation, uintptr_t country);
QTimeZone* QTimeZone_new7(QByteArray* zoneId, int offsetSeconds, struct miqt_string* name, struct miqt_string* abbreviation, uintptr_t country, struct miqt_string* comment);
void QTimeZone_OperatorAssign(QTimeZone* self, QTimeZone* other);
void QTimeZone_Swap(QTimeZone* self, QTimeZone* other);
bool QTimeZone_OperatorEqual(const QTimeZone* self, QTimeZone* other);
bool QTimeZone_OperatorNotEqual(const QTimeZone* self, QTimeZone* other);
bool QTimeZone_IsValid(const QTimeZone* self);
QByteArray* QTimeZone_Id(const QTimeZone* self);
uintptr_t QTimeZone_Country(const QTimeZone* self);
struct miqt_string* QTimeZone_Comment(const QTimeZone* self);
struct miqt_string* QTimeZone_DisplayName(const QTimeZone* self, QDateTime* atDateTime);
struct miqt_string* QTimeZone_DisplayNameWithTimeType(const QTimeZone* self, uintptr_t timeType);
struct miqt_string* QTimeZone_Abbreviation(const QTimeZone* self, QDateTime* atDateTime);
int QTimeZone_OffsetFromUtc(const QTimeZone* self, QDateTime* atDateTime);
int QTimeZone_StandardTimeOffset(const QTimeZone* self, QDateTime* atDateTime);
int QTimeZone_DaylightTimeOffset(const QTimeZone* self, QDateTime* atDateTime);
bool QTimeZone_HasDaylightTime(const QTimeZone* self);
bool QTimeZone_IsDaylightTime(const QTimeZone* self, QDateTime* atDateTime);
QTimeZone__OffsetData* QTimeZone_OffsetData(const QTimeZone* self, QDateTime* forDateTime);
bool QTimeZone_HasTransitions(const QTimeZone* self);
QTimeZone__OffsetData* QTimeZone_NextTransition(const QTimeZone* self, QDateTime* afterDateTime);
QTimeZone__OffsetData* QTimeZone_PreviousTransition(const QTimeZone* self, QDateTime* beforeDateTime);
struct miqt_array* QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime);
QByteArray* QTimeZone_SystemTimeZoneId();
QTimeZone* QTimeZone_SystemTimeZone();
QTimeZone* QTimeZone_Utc();
bool QTimeZone_IsTimeZoneIdAvailable(QByteArray* ianaId);
struct miqt_array* QTimeZone_AvailableTimeZoneIds();
struct miqt_array* QTimeZone_AvailableTimeZoneIdsWithCountry(uintptr_t country);
struct miqt_array* QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds);
QByteArray* QTimeZone_IanaIdToWindowsId(QByteArray* ianaId);
QByteArray* QTimeZone_WindowsIdToDefaultIanaId(QByteArray* windowsId);
2024-08-29 07:01:51 +00:00
QByteArray* QTimeZone_WindowsIdToDefaultIanaId2(QByteArray* windowsId, uintptr_t country);
struct miqt_array* QTimeZone_WindowsIdToIanaIds(QByteArray* windowsId);
struct miqt_array* QTimeZone_WindowsIdToIanaIds2(QByteArray* windowsId, uintptr_t country);
struct miqt_string* QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDateTime, uintptr_t nameType);
struct miqt_string* QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, uintptr_t nameType, QLocale* locale);
struct miqt_string* QTimeZone_DisplayName22(const QTimeZone* self, uintptr_t timeType, uintptr_t nameType);
struct miqt_string* QTimeZone_DisplayName32(const QTimeZone* self, uintptr_t timeType, uintptr_t nameType, QLocale* locale);
void QTimeZone_Delete(QTimeZone* self);
2024-08-29 07:01:51 +00:00
QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1);
void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self);
#ifdef __cplusplus
} /* extern C */
#endif
#endif