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

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

There is a newer version: 6.8.0
Show newest version
package io.qt.core;

import io.qt.*;


/**
 * 

Java wrapper for Qt header file QSysInfo

*/ public final class QSysInfo { static { QtJambi_LibraryUtilities.initialize(); } private QSysInfo() throws java.lang.InstantiationError { throw new java.lang.InstantiationError("Cannot instantiate namespace QSysInfo."); } /** *

Java wrapper for Qt enum QSysInfo::Endian

*/ public enum Endian implements QtEnumerator { /** *

Representing QSysInfo::BigEndian

*/ BigEndian(0), /** *

Representing QSysInfo::LittleEndian

*/ LittleEndian(1); static { QtJambi_LibraryUtilities.initialize(); } private Endian(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 @NonNull Endian resolve(int value) { switch (value) { case 0: return BigEndian; case 1: return LittleEndian; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QSysInfo::bootUniqueId()

*/ public native static io.qt.core.@NonNull QByteArray bootUniqueId(); /** *

See QSysInfo::buildAbi()

*/ public native static java.lang.@NonNull String buildAbi(); /** *

See QSysInfo::buildCpuArchitecture()

*/ public native static java.lang.@NonNull String buildCpuArchitecture(); /** *

See QSysInfo::currentCpuArchitecture()

*/ public native static java.lang.@NonNull String currentCpuArchitecture(); /** *

See QSysInfo::kernelType()

*/ public native static java.lang.@NonNull String kernelType(); /** *

See QSysInfo::kernelVersion()

*/ public native static java.lang.@NonNull String kernelVersion(); /** *

See QSysInfo::machineHostName()

*/ public native static java.lang.@NonNull String machineHostName(); /** *

See QSysInfo::machineUniqueId()

*/ public native static io.qt.core.@NonNull QByteArray machineUniqueId(); /** *

See QSysInfo::prettyProductName()

*/ public native static java.lang.@NonNull String prettyProductName(); /** *

See QSysInfo::productType()

*/ public native static java.lang.@NonNull String productType(); /** *

See QSysInfo::productVersion()

*/ public native static java.lang.@NonNull String productVersion(); private native static int byteOrder(); private native static int wordSize(); public static final Endian ByteOrder = Endian.resolve(byteOrder()); public static final int WordSize = wordSize(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy