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

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

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

import io.qt.*;


/**
 * 

Interface to manage Qt's event queue

*

Java wrapper for Qt class QAbstractEventDispatcher

*/ public abstract class QAbstractEventDispatcher extends io.qt.core.QObject { @QtPropertyMember(enabled=false) private java.util.Collection __rcSocketNotifier; /** * This variable stores the meta-object for the class. */ public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QAbstractEventDispatcher.class); @NativeAccess private static final class ConcreteWrapper extends QAbstractEventDispatcher { @NativeAccess private ConcreteWrapper(QPrivateConstructor p) { super(p); } @Override @QtUninvokable public void interrupt(){ interrupt_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void interrupt_native(long __this__nativeId); @Override @QtUninvokable public boolean processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlags flags){ return processEvents_native_QEventLoop_ProcessEventsFlags(QtJambi_LibraryUtilities.internal.nativeId(this), flags.value()); } @QtUninvokable private native boolean processEvents_native_QEventLoop_ProcessEventsFlags(long __this__nativeId, int flags); @Override @QtUninvokable public void registerSocketNotifier(io.qt.core.@StrictNonNull QSocketNotifier notifier){ java.util.Objects.requireNonNull(notifier, "Argument 'notifier': null not expected."); registerSocketNotifier_native_QSocketNotifier_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(notifier)); QtJambi_LibraryUtilities.internal.addReferenceCount(this, io.qt.core.QAbstractEventDispatcher.class, "__rcSocketNotifier", false, false, notifier); } @QtUninvokable private native void registerSocketNotifier_native_QSocketNotifier_ptr(long __this__nativeId, long notifier); @Override @QtUninvokable public void registerTimer(int timerId, long interval, io.qt.core.Qt.@NonNull TimerType timerType, io.qt.core.@Nullable QObject object){ if(interval < 0){ throw new IllegalArgumentException("Timers cannot have negative intervals."); } registerTimer_native_int_qint64_Qt_TimerType_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), timerId, interval, timerType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native void registerTimer_native_int_qint64_Qt_TimerType_QObject_ptr(long __this__nativeId, int timerId, long interval, int timerType, long object); @Override @QtUninvokable public java.util.@NonNull List registeredTimers(io.qt.core.@Nullable QObject object){ return registeredTimers_native_QObject_ptr_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native java.util.List registeredTimers_native_QObject_ptr_constfct(long __this__nativeId, long object); @Override @QtUninvokable public int remainingTime(int timerId){ return remainingTime_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timerId); } @QtUninvokable private native int remainingTime_native_int(long __this__nativeId, int timerId); @Override @QtUninvokable public void unregisterSocketNotifier(io.qt.core.@StrictNonNull QSocketNotifier notifier){ java.util.Objects.requireNonNull(notifier, "Argument 'notifier': null not expected."); unregisterSocketNotifier_native_QSocketNotifier_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(notifier)); QtJambi_LibraryUtilities.internal.removeFromCollectionReferenceCount(this, io.qt.core.QAbstractEventDispatcher.class, "__rcSocketNotifier", false, notifier); } @QtUninvokable private native void unregisterSocketNotifier_native_QSocketNotifier_ptr(long __this__nativeId, long notifier); @Override @QtUninvokable public boolean unregisterTimer(int timerId){ return unregisterTimer_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timerId); } @QtUninvokable private native boolean unregisterTimer_native_int(long __this__nativeId, int timerId); @Override @QtUninvokable public boolean unregisterTimers(io.qt.core.@Nullable QObject object){ return unregisterTimers_native_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native boolean unregisterTimers_native_QObject_ptr(long __this__nativeId, long object); @Override @QtUninvokable public void wakeUp(){ wakeUp_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void wakeUp_native(long __this__nativeId); } /** *

Java wrapper for Qt class QAbstractEventDispatcher::TimerInfo

*/ public static class TimerInfo extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } /** *

See QAbstractEventDispatcher::TimerInfo::TimerInfo(QAbstractEventDispatcher::TimerInfo)

*/ public TimerInfo(io.qt.core.QAbstractEventDispatcher.@NonNull TimerInfo other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(TimerInfo instance, io.qt.core.QAbstractEventDispatcher.TimerInfo other); /** *

See QAbstractEventDispatcher::TimerInfo::TimerInfo(int,int,Qt::TimerType)

*/ public TimerInfo(int id, int i, io.qt.core.Qt.@NonNull TimerType t){ super((QPrivateConstructor)null); initialize_native(this, id, i, t); } private native static void initialize_native(TimerInfo instance, int id, int i, io.qt.core.Qt.TimerType t); /** *

See operator==(QAbstractEventDispatcher::TimerInfo,QAbstractEventDispatcher::TimerInfo)

*/ @QtUninvokable public final boolean equals(io.qt.core.QAbstractEventDispatcher.@NonNull TimerInfo v2){ return equals_native_cref_QAbstractEventDispatcher_TimerInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @QtUninvokable private native boolean equals_native_cref_QAbstractEventDispatcher_TimerInfo(long __this__nativeId, long v2); /** *

See QAbstractEventDispatcher::TimerInfo::interval

*/ @QtUninvokable public final void setInterval(int interval){ setInterval_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), interval); } @QtUninvokable private native void setInterval_native_int(long __this__nativeId, int interval); /** *

See QAbstractEventDispatcher::TimerInfo::interval

*/ @QtUninvokable public final int interval(){ return interval_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int interval_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::TimerInfo::timerId

*/ @QtUninvokable public final void setTimerId(int timerId){ setTimerId_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), timerId); } @QtUninvokable private native void setTimerId_native_int(long __this__nativeId, int timerId); /** *

See QAbstractEventDispatcher::TimerInfo::timerId

*/ @QtUninvokable public final int timerId(){ return timerId_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native int timerId_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::TimerInfo::timerType

*/ @QtUninvokable public final void setTimerType(io.qt.core.Qt.@NonNull TimerType timerType){ setTimerType_native_cref_Qt_TimerType(QtJambi_LibraryUtilities.internal.nativeId(this), timerType.value()); } @QtUninvokable private native void setTimerType_native_cref_Qt_TimerType(long __this__nativeId, int timerType); /** *

See QAbstractEventDispatcher::TimerInfo::timerType

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull TimerType timerType(){ return io.qt.core.Qt.TimerType.resolve(timerType_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int timerType_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected TimerInfo(QPrivateConstructor p) { super(p); } /** *

See operator==(QAbstractEventDispatcher::TimerInfo,QAbstractEventDispatcher::TimerInfo)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other==null || other instanceof io.qt.core.QAbstractEventDispatcher.TimerInfo) { return equals((io.qt.core.QAbstractEventDispatcher.TimerInfo) other); } return false; } /** * Returns the objects's hash code computed by qHash(QAbstractEventDispatcher::TimerInfo). */ @QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native static int hashCode_native(long __this_nativeId); /** *

Creates and returns a copy of this object.

See QAbstractEventDispatcher::TimerInfo::TimerInfo(QAbstractEventDispatcher::TimerInfo)

*/ @QtUninvokable @Override public TimerInfo clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native TimerInfo clone_native(long __this_nativeId); /** * @hidden *

Kotlin property getter. In Java use {@link #interval()} instead.

*/ @QtUninvokable public final int getInterval() { return interval(); } /** * @hidden *

Kotlin property getter. In Java use {@link #timerId()} instead.

*/ @QtUninvokable public final int getTimerId() { return timerId(); } /** * @hidden *

Kotlin property getter. In Java use {@link #timerType()} instead.

*/ @QtUninvokable public final io.qt.core.Qt.@NonNull TimerType getTimerType() { return timerType(); } } /** *

See QAbstractEventDispatcher::aboutToBlock()

*/ public final @NonNull Signal0 aboutToBlock = new Signal0(); /** *

See QAbstractEventDispatcher::awake()

*/ public final @NonNull Signal0 awake = new Signal0(); /** *

See QAbstractEventDispatcher::QAbstractEventDispatcher(QObject*)

*/ public QAbstractEventDispatcher(io.qt.core.@Nullable QObject parent){ super((QPrivateConstructor)null); initialize_native(this, parent); } private native static void initialize_native(QAbstractEventDispatcher instance, io.qt.core.QObject parent); /** *

See QAbstractEventDispatcher::registerTimer(qint64,Qt::TimerType,QObject*)

*/ @QtUninvokable public final int registerTimer(long interval, io.qt.core.Qt.@NonNull TimerType timerType, io.qt.core.@Nullable QObject object){ if(interval < 0){ throw new IllegalArgumentException("Timers cannot have negative intervals."); } return registerTimer_native_qint64_Qt_TimerType_QObject_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), interval, timerType.value(), QtJambi_LibraryUtilities.internal.checkedNativeId(object)); } @QtUninvokable private native int registerTimer_native_qint64_Qt_TimerType_QObject_ptr(long __this__nativeId, long interval, int timerType, long object); /** *

See QAbstractEventDispatcher::closingDown()

*/ @QtUninvokable public void closingDown(){ closingDown_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void closingDown_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::interrupt()

*/ @QtUninvokable public abstract void interrupt(); @QtUninvokable private native void interrupt_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::processEvents(QEventLoop::ProcessEventsFlags)

*/ @QtUninvokable public abstract boolean processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlags flags); @QtUninvokable private native boolean processEvents_native_QEventLoop_ProcessEventsFlags(long __this__nativeId, int flags); /** *

See QAbstractEventDispatcher::registerSocketNotifier(QSocketNotifier*)

*/ @QtUninvokable public abstract void registerSocketNotifier(io.qt.core.@StrictNonNull QSocketNotifier notifier); @QtUninvokable private native void registerSocketNotifier_native_QSocketNotifier_ptr(long __this__nativeId, long notifier); /** *

See QAbstractEventDispatcher::registerTimer(int,qint64,Qt::TimerType,QObject*)

*/ @QtUninvokable public abstract void registerTimer(int timerId, long interval, io.qt.core.Qt.@NonNull TimerType timerType, io.qt.core.@Nullable QObject object); @QtUninvokable private native void registerTimer_native_int_qint64_Qt_TimerType_QObject_ptr(long __this__nativeId, int timerId, long interval, int timerType, long object); /** *

See QAbstractEventDispatcher::registeredTimers(QObject*)const

*/ @QtUninvokable public abstract java.util.@NonNull List registeredTimers(io.qt.core.@Nullable QObject object); @QtUninvokable private native java.util.List registeredTimers_native_QObject_ptr_constfct(long __this__nativeId, long object); /** *

See QAbstractEventDispatcher::remainingTime(int)

*/ @QtUninvokable public abstract int remainingTime(int timerId); @QtUninvokable private native int remainingTime_native_int(long __this__nativeId, int timerId); /** *

See QAbstractEventDispatcher::startingUp()

*/ @QtUninvokable public void startingUp(){ startingUp_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native void startingUp_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::unregisterSocketNotifier(QSocketNotifier*)

*/ @QtUninvokable public abstract void unregisterSocketNotifier(io.qt.core.@StrictNonNull QSocketNotifier notifier); @QtUninvokable private native void unregisterSocketNotifier_native_QSocketNotifier_ptr(long __this__nativeId, long notifier); /** *

See QAbstractEventDispatcher::unregisterTimer(int)

*/ @QtUninvokable public abstract boolean unregisterTimer(int timerId); @QtUninvokable private native boolean unregisterTimer_native_int(long __this__nativeId, int timerId); /** *

See QAbstractEventDispatcher::unregisterTimers(QObject*)

*/ @QtUninvokable public abstract boolean unregisterTimers(io.qt.core.@Nullable QObject object); @QtUninvokable private native boolean unregisterTimers_native_QObject_ptr(long __this__nativeId, long object); /** *

See QAbstractEventDispatcher::wakeUp()

*/ @QtUninvokable public abstract void wakeUp(); @QtUninvokable private native void wakeUp_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::instance(QThread*)

*/ public static io.qt.core.@Nullable QAbstractEventDispatcher instance(io.qt.core.@Nullable QThread thread){ return instance_native_QThread_ptr(QtJambi_LibraryUtilities.internal.checkedNativeId(thread)); } private native static io.qt.core.QAbstractEventDispatcher instance_native_QThread_ptr(long thread); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QAbstractEventDispatcher(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. * @hidden */ @NativeAccess protected QAbstractEventDispatcher(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @QtUninvokable private static native void initialize_native(QAbstractEventDispatcher instance, QDeclarativeConstructor constructor); /** *

Overloaded constructor for {@link #QAbstractEventDispatcher(io.qt.core.QObject)} * with parent = null.

*/ public QAbstractEventDispatcher() { this((io.qt.core.QObject)null); } /** *

Overloaded function for {@link #processEvents(io.qt.core.QEventLoop.ProcessEventsFlags)}.

*/ @QtUninvokable public final boolean processEvents(io.qt.core.QEventLoop.@NonNull ProcessEventsFlag @NonNull... flags) { return processEvents(new io.qt.core.QEventLoop.ProcessEventsFlags(flags)); } /** *

Overloaded function for {@link #instance(io.qt.core.QThread)} * with thread = null.

*/ public static io.qt.core.@Nullable QAbstractEventDispatcher instance() { return instance((io.qt.core.QThread)null); } }