java.lang.Object
io.qt.QtUtilities
This class contains static members that gives information and performs QtJambi related tasks.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
static interface
static interface
static enum
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
This function gets the value of the environment variable named varName.static QMetaObject.DisposedSignal
getSignalOnDispose
(QtObjectInterface object) static void
static void
initializeNativeObject
(QtObjectInterface object, QtArgument.Stream arguments) static boolean
initializePackage
(Class<?> cls) static boolean
initializePackage
(Package pkg) static boolean
initializePackage
(String packagePath) static boolean
isAvailableQtLibrary
(String library) static boolean
isAvailableUtilityLibrary
(String library) static boolean
isAvailableUtilityLibrary
(String library, String versionString) static File
static File
Deprecated.static void
loadJambiLibrary
(String library) static void
loadLibrary
(String lib) static void
loadQtJambiLibrary
(String library) static void
loadQtLibrary
(String library) static void
loadQtLibrary
(String library, QtUtilities.LibraryRequirementMode mode, String... platforms) static void
loadUtilityLibrary
(String library) static void
loadUtilityLibrary
(String library, QtUtilities.LibraryRequirementMode mode, String... platforms) static void
loadUtilityLibrary
(String library, String version) static void
loadUtilityLibrary
(String library, String version, QtUtilities.LibraryRequirementMode mode, String... platforms) static boolean
This function sets the value of the environment variable named varName.static QVersionNumber
Return the version of QtJambistatic boolean
This method allows to reinstall the QtJambi event notify callback as the last callback.static boolean
Third-party libraries must not overwrite Java's installed signal handlers.static boolean
Third-party libraries must not overwrite Java's installed signal handlers.static boolean
This function deletes the variable varName from the environment.static void
useAsGadget
(Class<?> clazz) Use a class (e.g. from third party library) as gadget.static void
usePackageContentAsGadgets
(String _package) Define a package (e.g. from third party library) to let all its classes considered to be gadgets.
-
Method Details
-
isAvailableQtLibrary
-
isAvailableUtilityLibrary
-
isAvailableUtilityLibrary
-
loadQtLibrary
-
loadQtLibrary
public static void loadQtLibrary(String library, QtUtilities.LibraryRequirementMode mode, String... platforms) -
loadUtilityLibrary
-
loadUtilityLibrary
public static void loadUtilityLibrary(String library, QtUtilities.LibraryRequirementMode mode, String... platforms) -
loadUtilityLibrary
-
loadUtilityLibrary
public static void loadUtilityLibrary(String library, String version, QtUtilities.LibraryRequirementMode mode, String... platforms) -
loadQtJambiLibrary
-
loadJambiLibrary
-
loadLibrary
-
useAsGadget
Use a class (e.g. from third party library) as gadget.- See Also:
-
usePackageContentAsGadgets
Define a package (e.g. from third party library) to let all its classes considered to be gadgets.- See Also:
-
jambiDeploymentDir
-
jambiTempDir
Deprecated.UsejambiDeploymentDir()
instead.- Returns:
-
initializePackage
-
initializePackage
-
initializePackage
-
getSignalOnDispose
-
initializeNativeObject
-
initializeNativeObject
-
putenv
This function sets the value of the environment variable named varName.- Parameters:
varName
-value
-
-
unsetenv
This function deletes the variable varName from the environment.- Parameters:
varName
-
-
getenv
This function gets the value of the environment variable named varName.- Parameters:
varName
-- Returns:
- value
-
reinstallEventNotifyCallback
public static boolean reinstallEventNotifyCallback()This method allows to reinstall the QtJambi event notify callback as the last callback. If other libraries register their event notify callback to Qt, it is necessary to make sure QtJambi's callback is called at last. This method can only be called from inside the main thread and before callingQCoreApplication.exec()
. -
saveUnixSignalHandlers
public static boolean saveUnixSignalHandlers()Third-party libraries must not overwrite Java's installed signal handlers. Several of these signal handlers are crucial for JVM to work. This method saves the installed signal handlers for later restoring byrestoreUnixSignalHandlers()
. -
restoreUnixSignalHandlers
public static boolean restoreUnixSignalHandlers()Third-party libraries must not overwrite Java's installed signal handlers. Several of these signal handlers are crucial for JVM to work. This method restores the signal handlers previously saved bysaveUnixSignalHandlers()
. -
qtjambiVersion
Return the version of QtJambi- Returns:
- qtjambi version
-
jambiDeploymentDir()
instead.