Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
io.qt.core.QCoreApplication Maven / Gradle / Ivy
Go to download
QtJambi base module containing QtCore, QtGui and QtWidgets.
package io.qt.core;
import io.qt.*;
/**
* Event loop for Qt applications without UI
* Java wrapper for Qt class QCoreApplication
*/
public class QCoreApplication extends io.qt.core.QObject
{
@QtPropertyMember(enabled=false)
private static java.util.Collection __rcTranslators;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QCoreApplication.class);
/**
* See QCoreApplication:: aboutToQuit()
*/
public final @NonNull PrivateSignal0 aboutToQuit = new PrivateSignal0();
/**
* See QCoreApplication:: applicationNameChanged()
*/
@QtPropertyNotify(name="applicationName")
public final @NonNull Signal0 applicationNameChanged = new Signal0();
/**
* See QCoreApplication:: applicationVersionChanged()
*/
@QtPropertyNotify(name="applicationVersion")
public final @NonNull Signal0 applicationVersionChanged = new Signal0();
/**
* See QCoreApplication:: organizationDomainChanged()
*/
@QtPropertyNotify(name="organizationDomain")
public final @NonNull Signal0 organizationDomainChanged = new Signal0();
/**
* See QCoreApplication:: organizationNameChanged()
*/
@QtPropertyNotify(name="organizationName")
public final @NonNull Signal0 organizationNameChanged = new Signal0();
/**
* See QCoreApplication:: QCoreApplication(int&, char**, int)
*/
protected QCoreApplication(java.lang.@Nullable String @Nullable[] argv){
super((QPrivateConstructor)null);
if(!__qt_isInitializing){
throw new IllegalAccessError("Not allowed to instantiate QCoreApplication. Please use QCoreApplication.initialize() instead.");
}
initialize_native(this, argv);
}
private native static void initialize_native(QCoreApplication instance, java.lang.String[] argv);
/**
* See QCoreApplication:: checkPermission(QPermission)
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull PermissionStatus checkPermission(io.qt.core.@StrictNonNull QPermission permission){
java.util.Objects.requireNonNull(permission, "Argument 'permission': null not expected.");
return io.qt.core.Qt.PermissionStatus.resolve(checkPermission_native_cref_QPermission(QtJambi_LibraryUtilities.internal.nativeId(this), permission));
}
@QtUninvokable
private native int checkPermission_native_cref_QPermission(long __this__nativeId, io.qt.core.QPermission permission);
/**
* See QCoreApplication:: resolveInterface(const char*, int)const
*/
@QtUninvokable
private final QNativeInterface resolveInterface(java.lang.Class name){
return resolveInterface_native_const_char_ptr_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), name);
}
@QtUninvokable
private native QNativeInterface resolveInterface_native_const_char_ptr_int_constfct(long __this__nativeId, java.lang.Class name);
/**
* See QObject:: event(QEvent*)
*/
@QtUninvokable
@Override
public boolean event(io.qt.core.@Nullable QEvent arg__1){
return event_native_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1));
}
@QtUninvokable
private native boolean event_native_QEvent_ptr(long __this__nativeId, long arg__1);
/**
* See QCoreApplication:: notify(QObject*, QEvent*)
*/
@QtUninvokable
public boolean notify(io.qt.core.@Nullable QObject arg__1, io.qt.core.@Nullable QEvent arg__2){
return notify_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__1), QtJambi_LibraryUtilities.internal.checkedNativeId(arg__2));
}
@QtUninvokable
private native boolean notify_native_QObject_ptr_QEvent_ptr(long __this__nativeId, long arg__1, long arg__2);
/**
* See QCoreApplication:: addLibraryPath(QString)
*/
public native static void addLibraryPath(java.lang.@NonNull String arg__1);
/**
* See QCoreApplication:: applicationDirPath()
*/
public native static java.lang.@NonNull String applicationDirPath();
/**
* See QCoreApplication:: applicationFilePath()
*/
public native static java.lang.@NonNull String applicationFilePath();
/**
* See QCoreApplication:: applicationName()
*/
@QtPropertyReader(name="applicationName")
public native static java.lang.@NonNull String applicationName();
/**
* See QCoreApplication:: applicationPid()
*/
public native static long applicationPid();
/**
* See QCoreApplication:: applicationVersion()
*/
@QtPropertyReader(name="applicationVersion")
public native static java.lang.@NonNull String applicationVersion();
/**
* See QCoreApplication:: arguments()
*/
public native static io.qt.core.@NonNull QStringList arguments();
/**
* See QCoreApplication:: closingDown()
*/
public native static boolean closingDown();
/**
* See QCoreApplication:: eventDispatcher()
*/
public native static io.qt.core.@Nullable QAbstractEventDispatcher eventDispatcher();
/**
* See QCoreApplication:: exec()
*/
public native static int exec();
/**
* See QCoreApplication:: exit(int)
*/
public native static void exit(int retcode);
/**
* See QCoreApplication:: installTranslator(QTranslator*)
*/
public static boolean installTranslator(io.qt.core.@Nullable QTranslator messageFile){
boolean __qt_return_value = installTranslator_native_QTranslator_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(messageFile));
if (messageFile != null) {
if(__rcTranslators==null)
__rcTranslators = QtJambi_LibraryUtilities.internal.newRCList();
__rcTranslators.add(messageFile);
}
return __qt_return_value;
}
private native static boolean installTranslator_native_QTranslator_ptr(long messageFile);
/**
* See QCoreApplication:: instance()
*/
public native static io.qt.core.@Nullable QCoreApplication instance();
/**
* See QCoreApplication:: isQuitLockEnabled()
*/
@QtPropertyReader(name="quitLockEnabled")
public native static boolean isQuitLockEnabled();
/**
* See QCoreApplication:: isSetuidAllowed()
*/
public native static boolean isSetuidAllowed();
/**
* See QCoreApplication:: libraryPaths()
*/
public native static io.qt.core.@NonNull QStringList libraryPaths();
/**
* See QCoreApplication:: organizationDomain()
*/
@QtPropertyReader(name="organizationDomain")
public native static java.lang.@NonNull String organizationDomain();
/**
* See QCoreApplication:: organizationName()
*/
@QtPropertyReader(name="organizationName")
public native static java.lang.@NonNull String organizationName();
/**
* See QCoreApplication:: postEvent(QObject*, QEvent*, int)
*/
public static void postEvent(io.qt.core.@Nullable QObject receiver, io.qt.core.@Nullable QEvent event, int priority){
postEvent_native_QObject_ptr_QEvent_ptr_int(QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), QtJambi_LibraryUtilities.internal.checkedNativeId(event), priority);
}
private native static void postEvent_native_QObject_ptr_QEvent_ptr_int(long receiver, long event, int priority);
/**
* See QCoreApplication:: processEvents(QEventLoop::ProcessEventsFlags)
*/
public static void processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlags flags){
processEvents_native_QEventLoop_ProcessEventsFlags(flags.value());
}
private native static void processEvents_native_QEventLoop_ProcessEventsFlags(int flags);
/**
* See QCoreApplication:: processEvents(QEventLoop::ProcessEventsFlags, int)
*/
public static void processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlags flags, int maxtime){
processEvents_native_QEventLoop_ProcessEventsFlags_int(flags.value(), maxtime);
}
private native static void processEvents_native_QEventLoop_ProcessEventsFlags_int(int flags, int maxtime);
/**
* See QCoreApplication:: quit()
*/
public native static void quit();
/**
* See QCoreApplication:: removeLibraryPath(QString)
*/
public native static void removeLibraryPath(java.lang.@NonNull String arg__1);
/**
* See QCoreApplication:: removePostedEvents(QObject*, int)
*/
public static void removePostedEvents(io.qt.core.@Nullable QObject receiver, int eventType){
removePostedEvents_native_QObject_ptr_int(QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), eventType);
}
private native static void removePostedEvents_native_QObject_ptr_int(long receiver, int eventType);
/**
* See QCoreApplication:: removeTranslator(QTranslator*)
*/
public static boolean removeTranslator(io.qt.core.@Nullable QTranslator messageFile){
boolean __qt_return_value = removeTranslator_native_QTranslator_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(messageFile));
if (messageFile != null) {
while (__rcTranslators != null && __rcTranslators.remove(messageFile)) ;
}
return __qt_return_value;
}
private native static boolean removeTranslator_native_QTranslator_ptr(long messageFile);
/**
* See QCoreApplication:: sendEvent(QObject*, QEvent*)
*/
public static boolean sendEvent(io.qt.core.@Nullable QObject receiver, io.qt.core.@Nullable QEvent event){
return sendEvent_native_QObject_ptr_QEvent_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), QtJambi_LibraryUtilities.internal.checkedNativeId(event));
}
private native static boolean sendEvent_native_QObject_ptr_QEvent_ptr(long receiver, long event);
/**
* See QCoreApplication:: sendPostedEvents(QObject*, int)
*/
public static void sendPostedEvents(io.qt.core.@Nullable QObject receiver, int event_type){
sendPostedEvents_native_QObject_ptr_int(QtJambi_LibraryUtilities.internal.checkedNativeId(receiver), event_type);
}
private native static void sendPostedEvents_native_QObject_ptr_int(long receiver, int event_type);
/**
* See QCoreApplication:: setApplicationName(QString)
*/
@QtPropertyWriter(name="applicationName")
public native static void setApplicationName(java.lang.@NonNull String application);
/**
* See QCoreApplication:: setApplicationVersion(QString)
*/
@QtPropertyWriter(name="applicationVersion")
public native static void setApplicationVersion(java.lang.@NonNull String version);
/**
* See QCoreApplication:: setAttribute(Qt::ApplicationAttribute, bool)
*/
public static void setAttribute(io.qt.core.Qt.@NonNull ApplicationAttribute attribute, boolean on){
setAttribute_native_Qt_ApplicationAttribute_bool(attribute.value(), on);
}
private native static void setAttribute_native_Qt_ApplicationAttribute_bool(int attribute, boolean on);
/**
* See QCoreApplication:: setEventDispatcher(QAbstractEventDispatcher*)
*/
public static void setEventDispatcher(io.qt.core.@Nullable QAbstractEventDispatcher eventDispatcher){
setEventDispatcher_native_QAbstractEventDispatcher_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(eventDispatcher));
QtJambi_LibraryUtilities.internal.setReferenceCount(instance().thread(), QThread.class, "__rcEventDispatcher", false, false, eventDispatcher);
}
private native static void setEventDispatcher_native_QAbstractEventDispatcher_ptr(long eventDispatcher);
/**
* See QCoreApplication:: setLibraryPaths(QStringList)
*/
public native static void setLibraryPaths(java.util.@NonNull Collection arg__1);
/**
* See QCoreApplication:: setOrganizationDomain(QString)
*/
@QtPropertyWriter(name="organizationDomain")
public native static void setOrganizationDomain(java.lang.@NonNull String orgDomain);
/**
* See QCoreApplication:: setOrganizationName(QString)
*/
@QtPropertyWriter(name="organizationName")
public native static void setOrganizationName(java.lang.@NonNull String orgName);
/**
* See QCoreApplication:: setQuitLockEnabled(bool)
*/
@QtPropertyWriter(name="quitLockEnabled")
public native static void setQuitLockEnabled(boolean enabled);
/**
* See QCoreApplication:: setSetuidAllowed(bool)
*/
public native static void setSetuidAllowed(boolean allow);
/**
* See QCoreApplication:: startingUp()
*/
public native static boolean startingUp();
/**
* See QCoreApplication:: testAttribute(Qt::ApplicationAttribute)
*/
public static boolean testAttribute(io.qt.core.Qt.@NonNull ApplicationAttribute attribute){
return testAttribute_native_Qt_ApplicationAttribute(attribute.value());
}
private native static boolean testAttribute_native_Qt_ApplicationAttribute(int attribute);
/**
* See QCoreApplication:: translate(const char*, const char*, const char*, int)
*/
public native static java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String key, java.lang.@Nullable String disambiguation, int n);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QCoreApplication(QPrivateConstructor p) { super(p); }
private static boolean __qt_isInitializing = false;
@QtUninvokable
private static native void preinit();
/**
* Overloaded function for {@link #sendPostedEvents(io.qt.core.QObject, int)}
*/
public static void sendPostedEvents(io.qt.core.QObject receiver, QEvent.Type event_type){
sendPostedEvents(receiver, event_type.value());
}
/**
* Initializes the QCoreApplication with the given arguments.
* @param args
* @return QCoreApplication instance
*/
@QtUninvokable
public static @NonNull QCoreApplication initialize(String args @StrictNonNull[]) {
return initialize(null, args, QCoreApplication::new);
}
/**
* Initializes the QCoreApplication with the given arguments and applicationName.
* @param applicationName
* @param args
* @return QCoreApplication instance
*/
@QtUninvokable
public static @NonNull QCoreApplication initialize(String applicationName, String args @StrictNonNull[]) {
return initialize(applicationName, args, QCoreApplication::new);
}
/**
* Initializes a custom QCoreApplication subclass with the given arguments.
* @param QCoreApplication subclass
* @param args
* @param constructor
* @return T instance
*/
@QtUninvokable
public static T initialize(String args @StrictNonNull[], java.util.function.@NonNull Function constructor) {
return initialize(null, args, constructor);
}
/**
* Initializes a custom QCoreApplication subclass with the given arguments and applicationName.
* @param QCoreApplication subclass
* @param applicationName
* @param args
* @param constructor
* @return T instance
*/
@QtUninvokable
public static T initialize(String applicationName, String args @StrictNonNull[], java.util.function.@NonNull Function constructor) {
if (instance() != null)
throw new RuntimeException("QCoreApplication can only be initialized once");
preinit();
String[] _args = new String[args.length+1];
if(applicationName!=null && !applicationName.isEmpty()){
_args[0] = applicationName;
setApplicationName(applicationName);
}else{
_args[0] = applicationName();
}
System.arraycopy(args, 0, _args, 1, args.length);
args = _args;
__qt_isInitializing = true;
try {
T application = java.util.Objects.requireNonNull(constructor.apply(args), "Constructor function does not instantiate QCoreApplication.");
QtJambi_LibraryUtilities.internal.setCppOwnership(application);
String bootPath = System.getProperty("sun.boot.library.path", "");
if(!bootPath.isEmpty()) {
removeLibraryPath(QDir.fromNativeSeparators(bootPath));
}
return application;
} catch (Error e) {
throw e;
} catch (RuntimeException e) {
throw e;
} catch (Throwable e) {
throw new RuntimeException("Cannot initialize QCoreApplication", e);
}finally{
__qt_isInitializing = false;
}
}
/**
* Destroys the QCoreApplication instance and purges Qt.
* @see ~QCoreApplication()
*/
@QtUninvokable
public static void shutdown() {
QCoreApplication app = instance();
if(app != null) {
QThread currentThread = QThread.currentThread();
if(currentThread!=app.thread())
throw new QThreadAffinityException("Must not call QCoreApplication.shutdown() from outside main thread.", null, app.thread(), currentThread);
if(app.thread().loopLevel()>0)
throw new IllegalStateException("Must not call QCoreApplication.shutdown() in event loop.");
System.gc();
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
processEvents(); // process quit
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
if(app instanceof io.qt.gui.QGuiApplication) {
boolean deleted = false;
if(app instanceof io.qt.widgets.QApplication) {
for(io.qt.widgets.QWidget widget : new java.util.ArrayList<>(io.qt.widgets.QApplication.topLevelWidgets())) {
if(widget!=null && !widget.isDisposed() && QtJambi_LibraryUtilities.internal.isJavaOwnership(widget)) {
widget.dispose();
deleted = true;
}
}
// second chance
for(io.qt.widgets.QWidget widget : new java.util.ArrayList<>(io.qt.widgets.QApplication.topLevelWidgets())) {
if(widget!=null && !widget.isDisposed()) {
if(!QtJambi_LibraryUtilities.internal.isJavaOwnership(widget))
QLogging.qWarning("QCoreApplication.shutdown() called before closing all widgets. Deleting widget %1$s [\"%2$s\"] (%3$s).", widget.objectName(), widget.windowTitle(), widget.metaObject().className());
widget.dispose();
deleted = true;
}
}
}
for(io.qt.gui.QWindow window : new java.util.ArrayList<>(io.qt.gui.QGuiApplication.topLevelWindows())) {
if(window!=null && !window.isDisposed() && QtJambi_LibraryUtilities.internal.isJavaOwnership(window)) {
if(currentThread==window.thread())
window.dispose();
else
window.disposeLater();
deleted = true;
}
}
// second chance
for(io.qt.gui.QWindow window : new java.util.ArrayList<>(io.qt.gui.QGuiApplication.topLevelWindows())) {
if(window!=null && !window.isDisposed()) {
if(!QtJambi_LibraryUtilities.internal.isJavaOwnership(window))
QLogging.qWarning("QCoreApplication.shutdown() called before closing all windows. Deleting window %1$s [\"%2$s\"] (%3$s).", window.objectName(), window.title(), window.metaObject().className());
if(currentThread==window.thread())
window.dispose();
else
window.disposeLater();
deleted = true;
}
}
if(deleted){
System.gc();
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
processEvents(); // process quit
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
}
}
app.dispose();
app = null; // discard hard-reference
System.gc();
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
processEvents(); // process quit
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value()); // allow deleteLater() to work some magic
}
if (instance() != null)
QLogging.qWarning("Failed to delete QCoreApplication instance.");
System.gc();
QCoreApplication.sendPostedEvents(null, QEvent.Type.DeferredDispose.value());
}
/**
* Adds a pre-routine to be executed before initializing QCoreApplication.
* @see initialize(String[])
*/
@QtUninvokable
public static void addPreRoutine(@NonNull Runnable startUpFunction) {
preRoutines.add(startUpFunction);
}
/**
* Adds a post-routine to be executed when deleting QCoreApplication.
* @see qAddPostRoutine(QtCleanUpFunction)
* @see shutdown()
*/
@QtUninvokable
public static void addPostRoutine(@NonNull Runnable cleanUpFunction) {
postRoutines.add(cleanUpFunction);
}
/**
* Removes a previously added post-routine.
* @see qRemovePostRoutine(QtCleanUpFunction)
* @see addPostRoutine(Runnable)
* @see shutdown()
*/
@QtUninvokable
public static void removePostRoutine(@NonNull Runnable cleanUpFunction){
postRoutines.remove(cleanUpFunction);
}
private static final java.util.List preRoutines = java.util.Collections.synchronizedList(new java.util.ArrayList<>());
private static final java.util.List postRoutines = java.util.Collections.synchronizedList(new java.util.ArrayList<>());
@NativeAccess
@QtUninvokable
private static void execPreRoutines() {
for(Runnable preRoutine : new java.util.ArrayList<>(preRoutines)) {
try {
preRoutine.run();
}catch(Throwable t) {
java.util.logging.Logger.getLogger("io.qt.core").throwing("Runnable", "run", t);
}
}
preRoutines.clear();
}
@NativeAccess
@QtUninvokable
private static void execPostRoutines() {
for(Runnable postRoutine : new java.util.ArrayList<>(postRoutines)) {
try {
postRoutine.run();
}catch(Throwable t) {
java.util.logging.Logger.getLogger("io.qt.core").throwing("Runnable", "run", t);
}
}
postRoutines.clear();
}
@QtUninvokable
public final QNativeInterface nativeInterface(Class nativeInterfaceClass) {
return resolveInterface(nativeInterfaceClass);
}
private T createPermission(Class permissionType) {
try {
return permissionType.cast(QtJambi_LibraryUtilities.internal.invokeContructor(permissionType.getConstructor()));
} catch (Throwable e) {
return permissionType.cast(QMetaType.fromType(permissionType).create());
}
}
/**
* See QCoreApplication::checkPermission(QPermission)
*/
@QtUninvokable
public final io.qt.core.Qt.@NonNull PermissionStatus checkPermission(@StrictNonNull Class extends QPermission> permissionType){
return checkPermission(createPermission(permissionType));
}
/**
* See QCoreApplication::requestPermission<Functor>(const QPermission, Functor functor)
*/
@QtUninvokable
public final void requestPermission(@StrictNonNull Class permissionType, QMetaObject.@StrictNonNull Slot2<@NonNull T, Qt.@NonNull PermissionStatus> functor){
QPermission permission = createPermission(permissionType);
QObject context = QtJambi_LibraryUtilities.internal.lambdaContext(functor);
requestPermissionSlot2(
QtJambi_LibraryUtilities.internal.nativeId(this),
java.util.Objects.requireNonNull(permission),
context==null ? 0 : QtJambi_LibraryUtilities.internal.checkedNativeId(context),
functor);
}
/**
* See QCoreApplication::requestPermission<Functor>(const QPermission, Functor functor)
*/
@QtUninvokable
public final void requestPermission(@StrictNonNull Class extends QPermission> permissionType, QMetaObject.@StrictNonNull Slot1 functor){
QPermission permission = createPermission(permissionType);
QObject context = QtJambi_LibraryUtilities.internal.lambdaContext(functor);
requestPermissionSlot1(
QtJambi_LibraryUtilities.internal.nativeId(this),
java.util.Objects.requireNonNull(permission),
context==null ? 0 : QtJambi_LibraryUtilities.internal.checkedNativeId(context),
functor);
}
/**
* See QCoreApplication::requestPermission<Functor>(const QPermission, Functor functor)
*/
@QtUninvokable
public final void requestPermission(@StrictNonNull T permission, QMetaObject.@StrictNonNull Slot2<@NonNull T, Qt.@NonNull PermissionStatus> functor){
QObject context = QtJambi_LibraryUtilities.internal.lambdaContext(functor);
requestPermissionSlot2(
QtJambi_LibraryUtilities.internal.nativeId(this),
java.util.Objects.requireNonNull(permission),
context==null ? 0 : QtJambi_LibraryUtilities.internal.checkedNativeId(context),
functor);
}
/**
* See QCoreApplication::requestPermission<Functor>(const QPermission, Functor functor)
*/
@QtUninvokable
public final void requestPermission(@StrictNonNull QPermission permission, QMetaObject.@StrictNonNull Slot1 functor){
QObject context = QtJambi_LibraryUtilities.internal.lambdaContext(functor);
requestPermissionSlot1(
QtJambi_LibraryUtilities.internal.nativeId(this),
java.util.Objects.requireNonNull(permission),
context==null ? 0 : QtJambi_LibraryUtilities.internal.checkedNativeId(context),
functor);
}
private native final void requestPermissionSlot1(long __this__nativeId, QPermission permission, long context, QMetaObject.Slot1 functor);
private native final void requestPermissionSlot2(long __this__nativeId, QPermission permission, long context, QMetaObject.Slot2 extends QPermission, Qt.PermissionStatus> functor);
/**
* @hidden
* Kotlin property getter. In Java use {@link #applicationName()} instead.
*/
@QtPropertyReader(enabled=false)
public static java.lang.@NonNull String getApplicationName() {
return applicationName();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #applicationVersion()} instead.
*/
@QtPropertyReader(enabled=false)
public static java.lang.@NonNull String getApplicationVersion() {
return applicationVersion();
}
/**
* Overloaded function for {@link #exit(int)}
* with retcode = 0
.
*/
public static void exit() {
exit((int)0);
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #isQuitLockEnabled()} instead.
*/
@QtPropertyReader(enabled=false)
public static boolean getQuitLockEnabled() {
return isQuitLockEnabled();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #organizationDomain()} instead.
*/
@QtPropertyReader(enabled=false)
public static java.lang.@NonNull String getOrganizationDomain() {
return organizationDomain();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #organizationName()} instead.
*/
@QtPropertyReader(enabled=false)
public static java.lang.@NonNull String getOrganizationName() {
return organizationName();
}
/**
* Overloaded function for {@link #postEvent(io.qt.core.QObject, io.qt.core.QEvent, int)}
* with priority = 0
.
*/
public static void postEvent(io.qt.core.@Nullable QObject receiver, io.qt.core.@Nullable QEvent event) {
postEvent(receiver, event, (int)0);
}
/**
* Overloaded function for {@link #processEvents(io.qt.core.QEventLoop.ProcessEventsFlags)}
* with flags = new io.qt.core.QEventLoop.ProcessEventsFlags(0)
.
*/
public static void processEvents() {
processEvents(new io.qt.core.QEventLoop.ProcessEventsFlags(0));
}
/**
* Overloaded function for {@link #processEvents(io.qt.core.QEventLoop.ProcessEventsFlags)}.
*/
public static void processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlag @NonNull... flags) {
processEvents(new io.qt.core.QEventLoop.ProcessEventsFlags(flags));
}
/**
* Overloaded function for {@link #removePostedEvents(io.qt.core.QObject, int)}
* with eventType = 0
.
*/
public static void removePostedEvents(io.qt.core.@Nullable QObject receiver) {
removePostedEvents(receiver, (int)0);
}
/**
* Overloaded function for {@link #sendPostedEvents(io.qt.core.QObject, int)}
* with event_type = 0
.
*/
public static void sendPostedEvents(io.qt.core.@Nullable QObject receiver) {
sendPostedEvents(receiver, (int)0);
}
/**
* Overloaded function for {@link #sendPostedEvents(io.qt.core.QObject, int)}
* with:
* receiver = null
* event_type = 0
*
*/
public static void sendPostedEvents() {
sendPostedEvents((io.qt.core.QObject)null, (int)0);
}
/**
* Overloaded function for {@link #setAttribute(io.qt.core.Qt.ApplicationAttribute, boolean)}
* with on = true
.
*/
public static void setAttribute(io.qt.core.Qt.@NonNull ApplicationAttribute attribute) {
setAttribute(attribute, (boolean)true);
}
/**
* Overloaded function for {@link #translate(java.lang.String, java.lang.String, java.lang.String, int)}
* with n = -1
.
*/
public static java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String key, java.lang.@Nullable String disambiguation) {
return translate(context, key, disambiguation, (int)-1);
}
/**
* Overloaded function for {@link #translate(java.lang.String, java.lang.String, java.lang.String, int)}
* with:
* disambiguation = null
* n = -1
*
*/
public static java.lang.@NonNull String translate(java.lang.@Nullable String context, java.lang.@Nullable String key) {
return translate(context, key, (java.lang.String)null, (int)-1);
}
}