All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.qt.core.QOperatingSystemVersionBase Maven / Gradle / Ivy

The newest version!
package io.qt.core;


/**
 * 

Java wrapper for Qt class QOperatingSystemVersionBase

*/ public class QOperatingSystemVersionBase extends io.qt.QtObject implements java.lang.Comparable, java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

Java wrapper for Qt enum QOperatingSystemVersionBase::OSType

*/ public enum OSType implements io.qt.QtEnumerator { Unknown(0), Windows(1), MacOS(2), IOS(3), TvOS(4), WatchOS(5), Android(6); private OSType(int value) { this.value = value; } /** * {@inheritDoc} */ public int value() { return value; } /** * Returns the corresponding enum entry for the given value. * @param value * @return enum entry */ public static OSType resolve(int value) { switch (value) { case 0: return Unknown; case 1: return Windows; case 2: return MacOS; case 3: return IOS; case 4: return TvOS; case 5: return WatchOS; case 6: return Android; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } protected QOperatingSystemVersionBase(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QOperatingSystemVersionBase instance); /** *

Overloaded constructor for {@link #QOperatingSystemVersionBase(io.qt.core.QOperatingSystemVersionBase.OSType, int, int, int)} * with vmicro = -1.

*/ public QOperatingSystemVersionBase(io.qt.core.QOperatingSystemVersionBase.OSType osType, int vmajor, int vminor) { this(osType, vmajor, vminor, (int)-1); } /** *

Overloaded constructor for {@link #QOperatingSystemVersionBase(io.qt.core.QOperatingSystemVersionBase.OSType, int, int, int)}

*

with:

    *
  • vminor = -1
  • *
  • vmicro = -1
  • *
*/ public QOperatingSystemVersionBase(io.qt.core.QOperatingSystemVersionBase.OSType osType, int vmajor) { this(osType, vmajor, (int)-1, (int)-1); } public QOperatingSystemVersionBase(io.qt.core.QOperatingSystemVersionBase.OSType osType, int vmajor, int vminor, int vmicro){ super((QPrivateConstructor)null); initialize_native(this, osType, vmajor, vminor, vmicro); } private native static void initialize_native(QOperatingSystemVersionBase instance, io.qt.core.QOperatingSystemVersionBase.OSType osType, int vmajor, int vminor, int vmicro); @io.qt.QtUninvokable public final boolean isAnyOfType(io.qt.core.QOperatingSystemVersionBase.OSType ... types){ return isAnyOfType_native_std_initializer_list_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), types); } @io.qt.QtUninvokable private native boolean isAnyOfType_native_std_initializer_list_constfct(long __this__nativeId, io.qt.core.QOperatingSystemVersionBase.OSType ... types); @io.qt.QtUninvokable public final int majorVersion(){ return majorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int majorVersion_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final int microVersion(){ return microVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int microVersion_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final int minorVersion(){ return minorVersion_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int minorVersion_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final java.lang.String name(){ return name_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native java.lang.String name_native_constfct(long __this__nativeId); @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QOperatingSystemVersionBase rhs){ return operator_less_native_QOperatingSystemVersionBase(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(rhs)); } @io.qt.QtUninvokable private native boolean operator_less_native_QOperatingSystemVersionBase(long __this__nativeId, long rhs); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QOperatingSystemVersionBase value2){ return operator_equal_native_cref_QOperatingSystemVersionBase(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QOperatingSystemVersionBase(long __this__nativeId, long value2); @io.qt.QtUninvokable public final int segmentCount(){ return segmentCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native int segmentCount_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final io.qt.core.QOperatingSystemVersionBase.OSType type(){ return io.qt.core.QOperatingSystemVersionBase.OSType.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int type_native_constfct(long __this__nativeId); @io.qt.QtUninvokable public final io.qt.core.QVersionNumber version(){ return version_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native io.qt.core.QVersionNumber version_native_constfct(long __this__nativeId); protected static int compare(io.qt.core.QOperatingSystemVersionBase v1, io.qt.core.QOperatingSystemVersionBase v2){ return compare_native_QOperatingSystemVersionBase_QOperatingSystemVersionBase(QtJambi_LibraryUtilities.internal.checkedNativeId(v1), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } private native static int compare_native_QOperatingSystemVersionBase_QOperatingSystemVersionBase(long v1, long v2); public native static io.qt.core.QOperatingSystemVersionBase current(); public static io.qt.core.QOperatingSystemVersionBase.OSType currentType(){ return io.qt.core.QOperatingSystemVersionBase.OSType.resolve(currentType_native()); } private native static int currentType_native(); public static boolean isAnyOfType(io.qt.core.QOperatingSystemVersionBase.OSType[] types, io.qt.core.QOperatingSystemVersionBase.OSType type){ return isAnyOfType_native_std_initializer_list_QOperatingSystemVersionBase_OSType(types, type.value()); } private native static boolean isAnyOfType_native_std_initializer_list_QOperatingSystemVersionBase_OSType(io.qt.core.QOperatingSystemVersionBase.OSType[] types, int type); public static java.lang.String name(io.qt.core.QOperatingSystemVersionBase osversion){ return name_native_QOperatingSystemVersionBase(QtJambi_LibraryUtilities.internal.checkedNativeId(osversion)); } private native static java.lang.String name_native_QOperatingSystemVersionBase(long osversion); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QOperatingSystemVersionBase(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QOperatingSystemVersionBase) { return operator_equal((io.qt.core.QOperatingSystemVersionBase) other); } return false; } @io.qt.QtUninvokable public int compareTo(io.qt.core.QOperatingSystemVersionBase other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public QOperatingSystemVersionBase clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QOperatingSystemVersionBase clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy