io.qt.core.QLibraryInfo Maven / Gradle / Ivy
package io.qt.core;
/**
* Information about the Qt library
* Java wrapper for Qt class QLibraryInfo
*/
public final class QLibraryInfo extends io.qt.QtObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QLibraryInfo::LibraryPath
*/
@io.qt.QtRejectedEntries({"Qml2ImportsPath"})
public enum LibraryPath implements io.qt.QtEnumerator {
PrefixPath(0),
DocumentationPath(1),
HeadersPath(2),
LibrariesPath(3),
LibraryExecutablesPath(4),
BinariesPath(5),
PluginsPath(6),
QmlImportsPath(7),
Qml2ImportsPath(7),
ArchDataPath(8),
DataPath(9),
TranslationsPath(10),
ExamplesPath(11),
TestsPath(12),
SettingsPath(100);
private LibraryPath(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 LibraryPath resolve(int value) {
switch (value) {
case 0: return PrefixPath;
case 1: return DocumentationPath;
case 2: return HeadersPath;
case 3: return LibrariesPath;
case 4: return LibraryExecutablesPath;
case 5: return BinariesPath;
case 6: return PluginsPath;
case 7: return QmlImportsPath;
case 8: return ArchDataPath;
case 9: return DataPath;
case 10: return TranslationsPath;
case 11: return ExamplesPath;
case 12: return TestsPath;
case 100: return SettingsPath;
default: throw new io.qt.QNoSuchEnumValueException(value);
}
}
private final int value;
}
public native static java.lang.String build();
/**
* See QLibraryInfo::isDebugBuild()
*/
public native static boolean isDebugBuild();
/**
* @deprecated Use {@link io.qt.core.QLibraryInfo#path(io.qt.core.QLibraryInfo.LibraryPath)} instead
*/
@Deprecated
public static java.lang.String location(io.qt.core.QLibraryInfo.LibraryPath location){
return location_native_QLibraryInfo_LibraryPath(location.value());
}
@Deprecated
private native static java.lang.String location_native_QLibraryInfo_LibraryPath(int location);
/**
* See QLibraryInfo::path(QLibraryInfo::LibraryPath)
*/
public static java.lang.String path(io.qt.core.QLibraryInfo.LibraryPath p){
return path_native_QLibraryInfo_LibraryPath(p.value());
}
private native static java.lang.String path_native_QLibraryInfo_LibraryPath(int p);
public native static io.qt.core.QStringList platformPluginArguments(java.lang.String platformName);
/**
*
*/
public native static io.qt.core.QVersionNumber version();
/**
* Constructor for internal use only.
* @param p expected to be null
.
*/
@io.qt.NativeAccess
protected QLibraryInfo(QPrivateConstructor p) { super(p); }
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy