io.qt.core.QSysInfo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qtjambi Show documentation
Show all versions of qtjambi Show documentation
QtJambi base module containing QtCore, QtGui and QtWidgets.
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}
*/
@Override
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();
}