io.qt.core.QTimeZone Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Identifies how a time representation relates to UTC
* Java wrapper for Qt class QTimeZone
*/
public class QTimeZone extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QTimeZone::Initialization
* @since This enum was introduced in Qt 6.5.
*/
public enum Initialization implements QtEnumerator {
/**
* Representing QTimeZone:: LocalTime
*/
LocalTime(0),
/**
* Representing QTimeZone:: UTC
*/
UTC(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private Initialization(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull Initialization resolve(int value) {
switch (value) {
case 0: return LocalTime;
case 1: return UTC;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTimeZone::NameType
*/
public enum NameType implements QtEnumerator {
/**
* Representing QTimeZone:: DefaultName
*/
DefaultName(0),
/**
* Representing QTimeZone:: LongName
*/
LongName(1),
/**
* Representing QTimeZone:: ShortName
*/
ShortName(2),
/**
* Representing QTimeZone:: OffsetName
*/
OffsetName(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private NameType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull NameType resolve(int value) {
switch (value) {
case 0: return DefaultName;
case 1: return LongName;
case 2: return ShortName;
case 3: return OffsetName;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QTimeZone::TimeType
*/
public enum TimeType implements QtEnumerator {
/**
* Representing QTimeZone:: StandardTime
*/
StandardTime(0),
/**
* Representing QTimeZone:: DaylightTime
*/
DaylightTime(1),
/**
* Representing QTimeZone:: GenericTime
*/
GenericTime(2);
static {
QtJambi_LibraryUtilities.initialize();
}
private TimeType(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull TimeType resolve(int value) {
switch (value) {
case 0: return StandardTime;
case 1: return DaylightTime;
case 2: return GenericTime;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt class QTimeZone::OffsetData
*/
public static class OffsetData extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QTimeZone::OffsetData:: OffsetData()
*/
public OffsetData(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(OffsetData instance);
/**
* See QTimeZone::OffsetData:: OffsetData(QTimeZone::OffsetData)
* @param other
*/
public OffsetData(io.qt.core.QTimeZone.@NonNull OffsetData other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(OffsetData instance, io.qt.core.QTimeZone.OffsetData other);
/**
* See QTimeZone::OffsetData:: OffsetData{QString, QDateTime, int, int, int}
* @param abbreviation
* @param atUtc
* @param offsetFromUtc
* @param standardTimeOffset
* @param daylightTimeOffset
*/
public OffsetData(java.lang.@NonNull String abbreviation, io.qt.core.@NonNull QDateTime atUtc, int offsetFromUtc, int standardTimeOffset, int daylightTimeOffset){
super((QPrivateConstructor)null);
initialize_native(this, abbreviation, atUtc, offsetFromUtc, standardTimeOffset, daylightTimeOffset);
}
private native static void initialize_native(OffsetData instance, java.lang.String abbreviation, io.qt.core.QDateTime atUtc, int offsetFromUtc, int standardTimeOffset, int daylightTimeOffset);
/**
* See QTimeZone::OffsetData:: abbreviation
* @param abbreviation
*/
@QtUninvokable
public final void setAbbreviation(java.lang.@NonNull String abbreviation){
setAbbreviation_native_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), abbreviation);
}
@QtUninvokable
private native void setAbbreviation_native_cref_QString(long __this__nativeId, java.lang.String abbreviation);
/**
* See QTimeZone::OffsetData:: abbreviation
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String abbreviation(){
return abbreviation_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String abbreviation_native(long __this__nativeId);
/**
* See QTimeZone::OffsetData:: atUtc
* @param atUtc
*/
@QtUninvokable
public final void setAtUtc(io.qt.core.@NonNull QDateTime atUtc){
setAtUtc_native_cref_QDateTime(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atUtc));
}
@QtUninvokable
private native void setAtUtc_native_cref_QDateTime(long __this__nativeId, long atUtc);
/**
* See QTimeZone::OffsetData:: atUtc
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QDateTime atUtc(){
return atUtc_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QDateTime atUtc_native(long __this__nativeId);
/**
* See QTimeZone::OffsetData:: daylightTimeOffset
* @param daylightTimeOffset
*/
@QtUninvokable
public final void setDaylightTimeOffset(int daylightTimeOffset){
setDaylightTimeOffset_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), daylightTimeOffset);
}
@QtUninvokable
private native void setDaylightTimeOffset_native_int(long __this__nativeId, int daylightTimeOffset);
/**
* See QTimeZone::OffsetData:: daylightTimeOffset
* @return
*/
@QtUninvokable
public final int daylightTimeOffset(){
return daylightTimeOffset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int daylightTimeOffset_native(long __this__nativeId);
/**
* See QTimeZone::OffsetData:: offsetFromUtc
* @param offsetFromUtc
*/
@QtUninvokable
public final void setOffsetFromUtc(int offsetFromUtc){
setOffsetFromUtc_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), offsetFromUtc);
}
@QtUninvokable
private native void setOffsetFromUtc_native_int(long __this__nativeId, int offsetFromUtc);
/**
* See QTimeZone::OffsetData:: offsetFromUtc
* @return
*/
@QtUninvokable
public final int offsetFromUtc(){
return offsetFromUtc_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int offsetFromUtc_native(long __this__nativeId);
/**
* See QTimeZone::OffsetData:: standardTimeOffset
* @param standardTimeOffset
*/
@QtUninvokable
public final void setStandardTimeOffset(int standardTimeOffset){
setStandardTimeOffset_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), standardTimeOffset);
}
@QtUninvokable
private native void setStandardTimeOffset_native_int(long __this__nativeId, int standardTimeOffset);
/**
* See QTimeZone::OffsetData:: standardTimeOffset
* @return
*/
@QtUninvokable
public final int standardTimeOffset(){
return standardTimeOffset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int standardTimeOffset_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected OffsetData(QPrivateConstructor p) { super(p); }
/**
* Creates and returns a copy of this object.
See QTimeZone::OffsetData:: OffsetData(QTimeZone::OffsetData)
*/
@QtUninvokable
@Override
public OffsetData clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native OffsetData clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #abbreviation()} instead.
*/
@QtUninvokable
public final java.lang.@NonNull String getAbbreviation() {
return abbreviation();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #atUtc()} instead.
*/
@QtUninvokable
public final io.qt.core.@NonNull QDateTime getAtUtc() {
return atUtc();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #daylightTimeOffset()} instead.
*/
@QtUninvokable
public final int getDaylightTimeOffset() {
return daylightTimeOffset();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #offsetFromUtc()} instead.
*/
@QtUninvokable
public final int getOffsetFromUtc() {
return offsetFromUtc();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #standardTimeOffset()} instead.
*/
@QtUninvokable
public final int getStandardTimeOffset() {
return standardTimeOffset();
}
}
/**
*
*/
public QTimeZone(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QTimeZone instance);
/**
* See QTimeZone:: QTimeZone(QByteArray)
* @param ianaId
*/
public QTimeZone(io.qt.core.@NonNull QByteArray ianaId){
super((QPrivateConstructor)null);
initialize_native(this, ianaId);
}
private native static void initialize_native(QTimeZone instance, io.qt.core.QByteArray ianaId);
/**
* See QTimeZone:: QTimeZone(QByteArray, int, QString, QString, QLocale::Territory, QString)
* @param zoneId
* @param offsetSeconds
* @param name
* @param abbreviation
* @param territory
* @param comment
*/
public QTimeZone(io.qt.core.@NonNull QByteArray zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation, io.qt.core.QLocale.@NonNull Country territory, java.lang.@NonNull String comment){
super((QPrivateConstructor)null);
initialize_native(this, zoneId, offsetSeconds, name, abbreviation, territory, comment);
}
private native static void initialize_native(QTimeZone instance, io.qt.core.QByteArray zoneId, int offsetSeconds, java.lang.String name, java.lang.String abbreviation, io.qt.core.QLocale.Country territory, java.lang.String comment);
/**
* See QTimeZone:: QTimeZone(QTimeZone)
* @param other
*/
public QTimeZone(io.qt.core.@NonNull QTimeZone other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QTimeZone instance, io.qt.core.QTimeZone other);
/**
* See QTimeZone:: QTimeZone(QTimeZone::Initialization)
* @since This function was introduced in Qt 6.5.
* @param spec
*/
public QTimeZone(io.qt.core.QTimeZone.@NonNull Initialization spec){
super((QPrivateConstructor)null);
initialize_native(this, spec);
}
private native static void initialize_native(QTimeZone instance, io.qt.core.QTimeZone.Initialization spec);
/**
*
* @param offsetSeconds
*/
public QTimeZone(int offsetSeconds){
super((QPrivateConstructor)null);
initialize_native(this, offsetSeconds);
}
private native static void initialize_native(QTimeZone instance, int offsetSeconds);
/**
* See QTimeZone:: abbreviation(QDateTime)const
* @param atDateTime
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String abbreviation(io.qt.core.@NonNull QDateTime atDateTime){
return abbreviation_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime));
}
@QtUninvokable
private native java.lang.String abbreviation_native_cref_QDateTime_constfct(long __this__nativeId, long atDateTime);
/**
* See QTimeZone:: asBackendZone()const
* @since This function was introduced in Qt 6.5.
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QTimeZone asBackendZone(){
return asBackendZone_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QTimeZone asBackendZone_native_constfct(long __this__nativeId);
/**
*
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String comment(){
return comment_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String comment_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: country()const
* @return
*/
@QtUninvokable
public final io.qt.core.QLocale.@NonNull Country country(){
return io.qt.core.QLocale.Country.resolve(country_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native short country_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: daylightTimeOffset(QDateTime)const
* @param atDateTime
* @return
*/
@QtUninvokable
public final int daylightTimeOffset(io.qt.core.@NonNull QDateTime atDateTime){
return daylightTimeOffset_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime));
}
@QtUninvokable
private native int daylightTimeOffset_native_cref_QDateTime_constfct(long __this__nativeId, long atDateTime);
/**
* See QTimeZone:: displayName(QDateTime, QTimeZone::NameType, QLocale)const
* @param atDateTime
* @param nameType
* @param locale
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.@NonNull QDateTime atDateTime, io.qt.core.QTimeZone.@NonNull NameType nameType, io.qt.core.@NonNull QLocale locale){
return displayName_native_cref_QDateTime_QTimeZone_NameType_cref_QLocale_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime), nameType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(locale));
}
@QtUninvokable
private native java.lang.String displayName_native_cref_QDateTime_QTimeZone_NameType_cref_QLocale_constfct(long __this__nativeId, long atDateTime, int nameType, long locale);
/**
* See QTimeZone:: displayName(QTimeZone::TimeType, QTimeZone::NameType, QLocale)const
* @param timeType
* @param nameType
* @param locale
* @return
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.QTimeZone.@NonNull TimeType timeType, io.qt.core.QTimeZone.@NonNull NameType nameType, io.qt.core.@NonNull QLocale locale){
return displayName_native_QTimeZone_TimeType_QTimeZone_NameType_cref_QLocale_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), timeType.value(), nameType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(locale));
}
@QtUninvokable
private native java.lang.String displayName_native_QTimeZone_TimeType_QTimeZone_NameType_cref_QLocale_constfct(long __this__nativeId, int timeType, int nameType, long locale);
/**
* See QTimeZone:: fixedSecondsAheadOfUtc()const
* @since This function was introduced in Qt 6.5.
* @return
*/
@QtUninvokable
public final int fixedSecondsAheadOfUtc(){
return fixedSecondsAheadOfUtc_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int fixedSecondsAheadOfUtc_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: hasAlternativeName(QByteArrayView)const
* @since This function was introduced in Qt 6.8.
* @param alias
* @return
*/
@QtUninvokable
public final boolean hasAlternativeName(io.qt.core.@NonNull QByteArrayView alias){
return hasAlternativeName_native_QByteArrayView_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(alias));
}
@QtUninvokable
private native boolean hasAlternativeName_native_QByteArrayView_constfct(long __this__nativeId, long alias);
/**
* See QTimeZone:: hasDaylightTime()const
* @return
*/
@QtUninvokable
public final boolean hasDaylightTime(){
return hasDaylightTime_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasDaylightTime_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: hasTransitions()const
* @return
*/
@QtUninvokable
public final boolean hasTransitions(){
return hasTransitions_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasTransitions_native_constfct(long __this__nativeId);
/**
*
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray id(){
return id_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray id_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: isDaylightTime(QDateTime)const
* @param atDateTime
* @return
*/
@QtUninvokable
public final boolean isDaylightTime(io.qt.core.@NonNull QDateTime atDateTime){
return isDaylightTime_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime));
}
@QtUninvokable
private native boolean isDaylightTime_native_cref_QDateTime_constfct(long __this__nativeId, long atDateTime);
/**
* See QTimeZone:: isUtcOrFixedOffset()const
* @since This function was introduced in Qt 6.5.
* @return
*/
@QtUninvokable
public final boolean isUtcOrFixedOffset(){
return isUtcOrFixedOffset_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isUtcOrFixedOffset_native_constfct(long __this__nativeId);
/**
*
* @return
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: nextTransition(QDateTime)const
* @param afterDateTime
* @return
*/
@QtUninvokable
public final io.qt.core.QTimeZone.@NonNull OffsetData nextTransition(io.qt.core.@NonNull QDateTime afterDateTime){
return nextTransition_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(afterDateTime));
}
@QtUninvokable
private native io.qt.core.QTimeZone.OffsetData nextTransition_native_cref_QDateTime_constfct(long __this__nativeId, long afterDateTime);
/**
* See QTimeZone:: offsetData(QDateTime)const
* @param forDateTime
* @return
*/
@QtUninvokable
public final io.qt.core.QTimeZone.@NonNull OffsetData offsetData(io.qt.core.@NonNull QDateTime forDateTime){
return offsetData_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(forDateTime));
}
@QtUninvokable
private native io.qt.core.QTimeZone.OffsetData offsetData_native_cref_QDateTime_constfct(long __this__nativeId, long forDateTime);
/**
* See QTimeZone:: offsetFromUtc(QDateTime)const
* @param atDateTime
* @return
*/
@QtUninvokable
public final int offsetFromUtc(io.qt.core.@NonNull QDateTime atDateTime){
return offsetFromUtc_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime));
}
@QtUninvokable
private native int offsetFromUtc_native_cref_QDateTime_constfct(long __this__nativeId, long atDateTime);
/**
* See operator<<(QDataStream&, QTimeZone)
* @param ds
*/
@QtUninvokable
public void writeTo(io.qt.core.@StrictNonNull QDataStream ds){
java.util.Objects.requireNonNull(ds, "Argument 'ds': null not expected.");
writeTo_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ds));
}
@QtUninvokable
private native void writeTo_native_ref_QDataStream(long __this__nativeId, long ds);
/**
* See QTimeZone:: operator=(QTimeZone)
* @param other
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QTimeZone other){
assign_native_cref_QTimeZone(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QTimeZone(long __this__nativeId, long other);
/**
* See operator==(QTimeZone, QTimeZone)
* @param rhs
* @return
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QTimeZone rhs){
return equals_native_cref_QTimeZone(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs));
}
@QtUninvokable
private native boolean equals_native_cref_QTimeZone(long __this__nativeId, long rhs);
/**
* See operator>>(QDataStream&, QTimeZone&)
* @param ds
*/
@QtUninvokable
public void readFrom(io.qt.core.@StrictNonNull QDataStream ds){
java.util.Objects.requireNonNull(ds, "Argument 'ds': null not expected.");
readFrom_native_ref_QDataStream(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ds));
}
@QtUninvokable
private native void readFrom_native_ref_QDataStream(long __this__nativeId, long ds);
/**
* See QTimeZone:: previousTransition(QDateTime)const
* @param beforeDateTime
* @return
*/
@QtUninvokable
public final io.qt.core.QTimeZone.@NonNull OffsetData previousTransition(io.qt.core.@NonNull QDateTime beforeDateTime){
return previousTransition_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(beforeDateTime));
}
@QtUninvokable
private native io.qt.core.QTimeZone.OffsetData previousTransition_native_cref_QDateTime_constfct(long __this__nativeId, long beforeDateTime);
/**
* See QTimeZone:: standardTimeOffset(QDateTime)const
* @param atDateTime
* @return
*/
@QtUninvokable
public final int standardTimeOffset(io.qt.core.@NonNull QDateTime atDateTime){
return standardTimeOffset_native_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(atDateTime));
}
@QtUninvokable
private native int standardTimeOffset_native_cref_QDateTime_constfct(long __this__nativeId, long atDateTime);
/**
* See QTimeZone:: swap(QTimeZone&)
* @param other
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QTimeZone other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QTimeZone(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QTimeZone(long __this__nativeId, long other);
/**
* See QTimeZone:: territory()const
* @since This function was introduced in Qt 6.2.
* @return
*/
@QtUninvokable
public final io.qt.core.QLocale.@NonNull Country territory(){
return io.qt.core.QLocale.Country.resolve(territory_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native short territory_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: timeSpec()const
* @since This function was introduced in Qt 6.5.
* @return
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull TimeSpec timeSpec(){
return io.qt.core.Qt.TimeSpec.resolve(timeSpec_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int timeSpec_native_constfct(long __this__nativeId);
/**
* See QTimeZone:: transitions(QDateTime, QDateTime)const
* @param fromDateTime
* @param toDateTime
* @return
*/
@QtUninvokable
public final io.qt.core.@NonNull QList transitions(io.qt.core.@NonNull QDateTime fromDateTime, io.qt.core.@NonNull QDateTime toDateTime){
return transitions_native_cref_QDateTime_cref_QDateTime_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(fromDateTime), QtJambi_LibraryUtilities.internal.checkedNativeId(toDateTime));
}
@QtUninvokable
private native io.qt.core.QList transitions_native_cref_QDateTime_cref_QDateTime_constfct(long __this__nativeId, long fromDateTime, long toDateTime);
/**
* See QTimeZone:: availableTimeZoneIds()
* @return
*/
public native static io.qt.core.@NonNull QList availableTimeZoneIds();
/**
* See QTimeZone:: availableTimeZoneIds(QLocale::Territory)
* @param territory
* @return
*/
public static io.qt.core.@NonNull QList availableTimeZoneIds(io.qt.core.QLocale.@NonNull Country territory){
return availableTimeZoneIds_native_QLocale_Country(territory.value());
}
private native static io.qt.core.QList availableTimeZoneIds_native_QLocale_Country(short territory);
/**
* See QTimeZone:: availableTimeZoneIds(int)
* @param offsetSeconds
* @return
*/
public native static io.qt.core.@NonNull QList availableTimeZoneIds(int offsetSeconds);
/**
* See QTimeZone:: fromDurationAheadOfUtc(std::chrono::seconds)
* @since This function was introduced in Qt 6.5.
* @param offset
* @return
*/
public native static io.qt.core.@NonNull QTimeZone fromDurationAheadOfUtc(java.time.temporal.@NonNull TemporalAmount offset);
/**
* See QTimeZone:: fromSecondsAheadOfUtc(int)
* @since This function was introduced in Qt 6.5.
* @param offset
* @return
*/
public native static io.qt.core.@NonNull QTimeZone fromSecondsAheadOfUtc(int offset);
/**
* See QTimeZone:: ianaIdToWindowsId(QByteArray)
* @param ianaId
* @return
*/
public static io.qt.core.@NonNull QByteArray ianaIdToWindowsId(io.qt.core.@NonNull QByteArray ianaId){
return ianaIdToWindowsId_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(ianaId));
}
private native static io.qt.core.QByteArray ianaIdToWindowsId_native_cref_QByteArray(long ianaId);
/**
* See QTimeZone:: isTimeZoneIdAvailable(QByteArray)
* @param ianaId
* @return
*/
public static boolean isTimeZoneIdAvailable(io.qt.core.@NonNull QByteArray ianaId){
return isTimeZoneIdAvailable_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(ianaId));
}
private native static boolean isTimeZoneIdAvailable_native_cref_QByteArray(long ianaId);
/**
* See QTimeZone:: isUtcOrFixedOffset(Qt::TimeSpec)
* @since This function was introduced in Qt 6.5.
* @param spec
* @return
*/
public static boolean isUtcOrFixedOffset(io.qt.core.Qt.@NonNull TimeSpec spec){
return isUtcOrFixedOffset_native_Qt_TimeSpec(spec.value());
}
private native static boolean isUtcOrFixedOffset_native_Qt_TimeSpec(int spec);
/**
* See QTimeZone:: systemTimeZone()
* @return
*/
public native static io.qt.core.@NonNull QTimeZone systemTimeZone();
/**
* See QTimeZone:: systemTimeZoneId()
* @return
*/
public native static io.qt.core.@NonNull QByteArray systemTimeZoneId();
/**
* See QTimeZone:: utc()
* @return
*/
public native static io.qt.core.@NonNull QTimeZone utc();
/**
* See QTimeZone:: windowsIdToDefaultIanaId(QByteArray)
* @param windowsId
* @return
*/
public static io.qt.core.@NonNull QByteArray windowsIdToDefaultIanaId(io.qt.core.@NonNull QByteArray windowsId){
return windowsIdToDefaultIanaId_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(windowsId));
}
private native static io.qt.core.QByteArray windowsIdToDefaultIanaId_native_cref_QByteArray(long windowsId);
/**
* See QTimeZone:: windowsIdToDefaultIanaId(QByteArray, QLocale::Territory)
* @param windowsId
* @param territory
* @return
*/
public static io.qt.core.@NonNull QByteArray windowsIdToDefaultIanaId(io.qt.core.@NonNull QByteArray windowsId, io.qt.core.QLocale.@NonNull Country territory){
return windowsIdToDefaultIanaId_native_cref_QByteArray_QLocale_Country(QtJambi_LibraryUtilities.internal.checkedNativeId(windowsId), territory.value());
}
private native static io.qt.core.QByteArray windowsIdToDefaultIanaId_native_cref_QByteArray_QLocale_Country(long windowsId, short territory);
/**
* See QTimeZone:: windowsIdToIanaIds(QByteArray)
* @param windowsId
* @return
*/
public static io.qt.core.@NonNull QList windowsIdToIanaIds(io.qt.core.@NonNull QByteArray windowsId){
return windowsIdToIanaIds_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.checkedNativeId(windowsId));
}
private native static io.qt.core.QList windowsIdToIanaIds_native_cref_QByteArray(long windowsId);
/**
* See QTimeZone:: windowsIdToIanaIds(QByteArray, QLocale::Territory)
* @param windowsId
* @param territory
* @return
*/
public static io.qt.core.@NonNull QList windowsIdToIanaIds(io.qt.core.@NonNull QByteArray windowsId, io.qt.core.QLocale.@NonNull Country territory){
return windowsIdToIanaIds_native_cref_QByteArray_QLocale_Country(QtJambi_LibraryUtilities.internal.checkedNativeId(windowsId), territory.value());
}
private native static io.qt.core.QList windowsIdToIanaIds_native_cref_QByteArray_QLocale_Country(long windowsId, short territory);
private native static int MaxUtcOffsetSecs();
/**
* Timezone offsets from UTC are expected to be no higher than this
* See QTimeZone:: MaxUtcOffsetSecs
*/
public static final int MaxUtcOffsetSecs = MaxUtcOffsetSecs();
private native static int MinUtcOffsetSecs();
/**
* Timezone offsets from UTC are expected to be no lower than this
* See QTimeZone:: MinUtcOffsetSecs
*/
public static final int MinUtcOffsetSecs = MinUtcOffsetSecs();
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QTimeZone(QPrivateConstructor p) { super(p); }
/**
* See operator==(QTimeZone, QTimeZone)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.core.QTimeZone) {
return equals((io.qt.core.QTimeZone) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QTimeZone)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
/**
* See operator<<(QDebug, QTimeZone)
*/
@QtUninvokable
@Override
public @NonNull String toString() {
return toString_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private static native String toString_native(long __this_nativeId);
/**
* Creates and returns a copy of this object.
See QTimeZone:: QTimeZone(QTimeZone)
*/
@QtUninvokable
@Override
public QTimeZone clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QTimeZone clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QTimeZone(io.qt.core.QByteArray)}.
*/
public QTimeZone(byte @NonNull[] ianaId) {
this(new io.qt.core.QByteArray(ianaId));
}
/**
* Overloaded constructor for {@link #QTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)}
* with comment = (String)null
.
*/
public QTimeZone(io.qt.core.@NonNull QByteArray zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation, io.qt.core.QLocale.@NonNull Country territory) {
this(zoneId, offsetSeconds, name, abbreviation, territory, (String)null);
}
/**
* Overloaded constructor for {@link #QTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)}
* with:
* territory = io.qt.core.QLocale.Country.AnyTerritory
* comment = (String)null
*
*/
public QTimeZone(io.qt.core.@NonNull QByteArray zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation) {
this(zoneId, offsetSeconds, name, abbreviation, io.qt.core.QLocale.Country.AnyTerritory, (String)null);
}
/**
* Overloaded constructor for {@link #QTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)}
* with comment = (String)null
.
*/
public QTimeZone(byte @NonNull[] zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation, io.qt.core.QLocale.@NonNull Country territory) {
this(zoneId, offsetSeconds, name, abbreviation, territory, (String)null);
}
/**
* Overloaded constructor for {@link #QTimeZone(byte[], int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)}
* with:
* territory = io.qt.core.QLocale.Country.AnyTerritory
* comment = (String)null
*
*/
public QTimeZone(byte @NonNull[] zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation) {
this(zoneId, offsetSeconds, name, abbreviation, io.qt.core.QLocale.Country.AnyTerritory, (String)null);
}
/**
* Overloaded constructor for {@link #QTimeZone(io.qt.core.QByteArray, int, java.lang.String, java.lang.String, io.qt.core.QLocale.Country, java.lang.String)}.
*/
public QTimeZone(byte @NonNull[] zoneId, int offsetSeconds, java.lang.@NonNull String name, java.lang.@NonNull String abbreviation, io.qt.core.QLocale.@NonNull Country territory, java.lang.@NonNull String comment) {
this(new io.qt.core.QByteArray(zoneId), offsetSeconds, name, abbreviation, territory, comment);
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}
* with locale = new io.qt.core.QLocale()
.
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.@NonNull QDateTime atDateTime, io.qt.core.QTimeZone.@NonNull NameType nameType) {
return displayName(atDateTime, nameType, new io.qt.core.QLocale());
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}
* with:
* nameType = io.qt.core.QTimeZone.NameType.DefaultName
* locale = new io.qt.core.QLocale()
*
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.@NonNull QDateTime atDateTime) {
return displayName(atDateTime, io.qt.core.QTimeZone.NameType.DefaultName, new io.qt.core.QLocale());
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QDateTime, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}.
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.@NonNull QDateTime atDateTime, io.qt.core.QTimeZone.@NonNull NameType nameType, io.qt.core.QLocale.@NonNull Language locale) {
return displayName(atDateTime, nameType, new io.qt.core.QLocale(locale));
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}
* with locale = new io.qt.core.QLocale()
.
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.QTimeZone.@NonNull TimeType timeType, io.qt.core.QTimeZone.@NonNull NameType nameType) {
return displayName(timeType, nameType, new io.qt.core.QLocale());
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}
* with:
* nameType = io.qt.core.QTimeZone.NameType.DefaultName
* locale = new io.qt.core.QLocale()
*
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.QTimeZone.@NonNull TimeType timeType) {
return displayName(timeType, io.qt.core.QTimeZone.NameType.DefaultName, new io.qt.core.QLocale());
}
/**
* Overloaded function for {@link #displayName(io.qt.core.QTimeZone.TimeType, io.qt.core.QTimeZone.NameType, io.qt.core.QLocale)}.
*/
@QtUninvokable
public final java.lang.@NonNull String displayName(io.qt.core.QTimeZone.@NonNull TimeType timeType, io.qt.core.QTimeZone.@NonNull NameType nameType, io.qt.core.QLocale.@NonNull Language locale) {
return displayName(timeType, nameType, new io.qt.core.QLocale(locale));
}
/**
* Overloaded function for {@link #hasAlternativeName(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final boolean hasAlternativeName(io.qt.core.@NonNull QByteArray alias) {
return hasAlternativeName(new io.qt.core.QByteArrayView(alias));
}
/**
* Overloaded function for {@link #hasAlternativeName(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final boolean hasAlternativeName(java.nio.@NonNull ByteBuffer alias) {
return hasAlternativeName(new io.qt.core.QByteArrayView(alias));
}
/**
* Overloaded function for {@link #hasAlternativeName(io.qt.core.QByteArrayView)}.
*/
@QtUninvokable
public final boolean hasAlternativeName(byte @NonNull[] alias) {
return hasAlternativeName(new io.qt.core.QByteArrayView(alias));
}
/**
* Overloaded function for {@link #ianaIdToWindowsId(io.qt.core.QByteArray)}.
*/
public static io.qt.core.@NonNull QByteArray ianaIdToWindowsId(byte @NonNull[] ianaId) {
return ianaIdToWindowsId(new io.qt.core.QByteArray(ianaId));
}
/**
* Overloaded function for {@link #isTimeZoneIdAvailable(io.qt.core.QByteArray)}.
*/
public static boolean isTimeZoneIdAvailable(byte @NonNull[] ianaId) {
return isTimeZoneIdAvailable(new io.qt.core.QByteArray(ianaId));
}
/**
* Overloaded function for {@link #windowsIdToDefaultIanaId(io.qt.core.QByteArray)}.
*/
public static io.qt.core.@NonNull QByteArray windowsIdToDefaultIanaId(byte @NonNull[] windowsId) {
return windowsIdToDefaultIanaId(new io.qt.core.QByteArray(windowsId));
}
/**
* Overloaded function for {@link #windowsIdToDefaultIanaId(io.qt.core.QByteArray, io.qt.core.QLocale.Country)}.
*/
public static io.qt.core.@NonNull QByteArray windowsIdToDefaultIanaId(byte @NonNull[] windowsId, io.qt.core.QLocale.@NonNull Country territory) {
return windowsIdToDefaultIanaId(new io.qt.core.QByteArray(windowsId), territory);
}
/**
* Overloaded function for {@link #windowsIdToIanaIds(io.qt.core.QByteArray)}.
*/
public static io.qt.core.@NonNull QList windowsIdToIanaIds(byte @NonNull[] windowsId) {
return windowsIdToIanaIds(new io.qt.core.QByteArray(windowsId));
}
/**
* Overloaded function for {@link #windowsIdToIanaIds(io.qt.core.QByteArray, io.qt.core.QLocale.Country)}.
*/
public static io.qt.core.@NonNull QList windowsIdToIanaIds(byte @NonNull[] windowsId, io.qt.core.QLocale.@NonNull Country territory) {
return windowsIdToIanaIds(new io.qt.core.QByteArray(windowsId), territory);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #MaxUtcOffsetSecs()} instead.
*/
private static int getMaxUtcOffsetSecs() {
return MaxUtcOffsetSecs();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #MinUtcOffsetSecs()} instead.
*/
private static int getMinUtcOffsetSecs() {
return MinUtcOffsetSecs();
}
}