2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QTIMEZONE_H
|
|
|
|
#define GEN_QTIMEZONE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-10-16 05:07:56 +00:00
|
|
|
#include "../libmiqt/libmiqt.h"
|
2024-09-14 22:29:05 +00:00
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QByteArray;
|
|
|
|
class QDateTime;
|
2024-08-29 07:01:51 +00:00
|
|
|
class QLocale;
|
2024-08-25 04:08:24 +00:00
|
|
|
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
|
2024-08-25 04:08:24 +00:00
|
|
|
#else
|
|
|
|
typedef struct QByteArray QByteArray;
|
|
|
|
typedef struct QDateTime QDateTime;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QLocale QLocale;
|
2024-08-25 04:08:24 +00:00
|
|
|
typedef struct QTimeZone QTimeZone;
|
2024-08-29 07:01:51 +00:00
|
|
|
typedef struct QTimeZone__OffsetData QTimeZone__OffsetData;
|
2024-08-25 04:08:24 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
QTimeZone* QTimeZone_new();
|
2024-10-18 23:53:33 +00:00
|
|
|
QTimeZone* QTimeZone_new2(struct miqt_string ianaId);
|
2024-08-25 04:08:24 +00:00
|
|
|
QTimeZone* QTimeZone_new3(int offsetSeconds);
|
2024-10-18 23:53:33 +00:00
|
|
|
QTimeZone* QTimeZone_new4(struct miqt_string zoneId, int offsetSeconds, struct miqt_string name, struct miqt_string abbreviation);
|
2024-08-29 07:01:51 +00:00
|
|
|
QTimeZone* QTimeZone_new5(QTimeZone* other);
|
2024-10-18 23:53:33 +00:00
|
|
|
QTimeZone* QTimeZone_new6(struct miqt_string zoneId, int offsetSeconds, struct miqt_string name, struct miqt_string abbreviation, int country);
|
|
|
|
QTimeZone* QTimeZone_new7(struct miqt_string zoneId, int offsetSeconds, struct miqt_string name, struct miqt_string abbreviation, int country, struct miqt_string comment);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimeZone_OperatorAssign(QTimeZone* self, QTimeZone* other);
|
|
|
|
void QTimeZone_Swap(QTimeZone* self, QTimeZone* other);
|
2024-09-11 05:41:09 +00:00
|
|
|
bool QTimeZone_OperatorEqual(const QTimeZone* self, QTimeZone* other);
|
|
|
|
bool QTimeZone_OperatorNotEqual(const QTimeZone* self, QTimeZone* other);
|
|
|
|
bool QTimeZone_IsValid(const QTimeZone* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeZone_Id(const QTimeZone* self);
|
2024-09-18 00:12:02 +00:00
|
|
|
int QTimeZone_Country(const QTimeZone* self);
|
2024-10-18 23:53:33 +00:00
|
|
|
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, int timeType);
|
|
|
|
struct miqt_string QTimeZone_Abbreviation(const QTimeZone* self, QDateTime* atDateTime);
|
2024-09-11 05:41:09 +00:00
|
|
|
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);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QTimeZone_Transitions(const QTimeZone* self, QDateTime* fromDateTime, QDateTime* toDateTime);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeZone_SystemTimeZoneId();
|
2024-08-25 04:08:24 +00:00
|
|
|
QTimeZone* QTimeZone_SystemTimeZone();
|
|
|
|
QTimeZone* QTimeZone_Utc();
|
2024-10-18 23:53:33 +00:00
|
|
|
bool QTimeZone_IsTimeZoneIdAvailable(struct miqt_string ianaId);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QTimeZone_AvailableTimeZoneIds();
|
2024-09-18 00:12:02 +00:00
|
|
|
struct miqt_array* QTimeZone_AvailableTimeZoneIdsWithCountry(int country);
|
2024-09-14 22:29:05 +00:00
|
|
|
struct miqt_array* QTimeZone_AvailableTimeZoneIdsWithOffsetSeconds(int offsetSeconds);
|
2024-10-18 23:53:33 +00:00
|
|
|
struct miqt_string QTimeZone_IanaIdToWindowsId(struct miqt_string ianaId);
|
|
|
|
struct miqt_string QTimeZone_WindowsIdToDefaultIanaId(struct miqt_string windowsId);
|
|
|
|
struct miqt_string QTimeZone_WindowsIdToDefaultIanaId2(struct miqt_string windowsId, int country);
|
|
|
|
struct miqt_array* QTimeZone_WindowsIdToIanaIds(struct miqt_string windowsId);
|
|
|
|
struct miqt_array* QTimeZone_WindowsIdToIanaIds2(struct miqt_string windowsId, int country);
|
|
|
|
struct miqt_string QTimeZone_DisplayName2(const QTimeZone* self, QDateTime* atDateTime, int nameType);
|
|
|
|
struct miqt_string QTimeZone_DisplayName3(const QTimeZone* self, QDateTime* atDateTime, int nameType, QLocale* locale);
|
|
|
|
struct miqt_string QTimeZone_DisplayName22(const QTimeZone* self, int timeType, int nameType);
|
|
|
|
struct miqt_string QTimeZone_DisplayName32(const QTimeZone* self, int timeType, int nameType, QLocale* locale);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QTimeZone_Delete(QTimeZone* self);
|
|
|
|
|
2024-08-29 07:01:51 +00:00
|
|
|
QTimeZone__OffsetData* QTimeZone__OffsetData_new(QTimeZone__OffsetData* param1);
|
2024-09-18 00:12:02 +00:00
|
|
|
void QTimeZone__OffsetData_OperatorAssign(QTimeZone__OffsetData* self, QTimeZone__OffsetData* param1);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QTimeZone__OffsetData_Delete(QTimeZone__OffsetData* self);
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|