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

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

The newest version!
package io.qt.core;


/**
 * 

Interface to manage Qt's event queue

*

Java wrapper for Qt class QAbstractEventDispatcher

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

Java wrapper for Qt class QAbstractEventDispatcher::TimerInfo

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

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

*/ public TimerInfo(int id, int i, io.qt.core.Qt.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); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QAbstractEventDispatcher.TimerInfo v2){ return operator_equal_native_cref_QAbstractEventDispatcher_TimerInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(v2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_cref_QAbstractEventDispatcher_TimerInfo(long __this__nativeId, long v2); /** *

See QAbstractEventDispatcher::TimerInfo::interval

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

See QAbstractEventDispatcher::TimerInfo::interval

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

See QAbstractEventDispatcher::TimerInfo::timerId

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

See QAbstractEventDispatcher::TimerInfo::timerId

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

See QAbstractEventDispatcher::TimerInfo::timerType

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

See QAbstractEventDispatcher::TimerInfo::timerType

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.TimerType timerType(){ return io.qt.core.Qt.TimerType.resolve(timerType_native(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int timerType_native(long __this__nativeId); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected TimerInfo(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QAbstractEventDispatcher.TimerInfo) { return operator_equal((io.qt.core.QAbstractEventDispatcher.TimerInfo) other); } return false; } @io.qt.QtUninvokable @Override public int hashCode() { return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native static int hashCode_native(long __this_nativeId); @Override public TimerInfo clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native TimerInfo clone_native(long __this_nativeId); } /** *

See QAbstractEventDispatcher::aboutToBlock()

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

See QAbstractEventDispatcher::awake()

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

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

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

See QAbstractEventDispatcher::QAbstractEventDispatcher(QObject*)

*/ public QAbstractEventDispatcher(io.qt.core.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*)

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

See QAbstractEventDispatcher::interrupt()

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

See QAbstractEventDispatcher::processEvents(QEventLoop::ProcessEventsFlags)

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

See QAbstractEventDispatcher::registerSocketNotifier(QSocketNotifier*)

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

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

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

See QAbstractEventDispatcher::registeredTimers(QObject*)const

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

See QAbstractEventDispatcher::remainingTime(int)

*/ @io.qt.QtUninvokable public abstract int remainingTime(int timerId); @io.qt.QtUninvokable private native int remainingTime_native_int(long __this__nativeId, int timerId); @io.qt.QtUninvokable public void startingUp(){ startingUp_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native void startingUp_native(long __this__nativeId); /** *

See QAbstractEventDispatcher::unregisterSocketNotifier(QSocketNotifier*)

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

See QAbstractEventDispatcher::unregisterTimer(int)

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

See QAbstractEventDispatcher::unregisterTimers(QObject*)

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

See QAbstractEventDispatcher::wakeUp()

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

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

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

See QAbstractEventDispatcher::instance(QThread*)

*/ public static io.qt.core.QAbstractEventDispatcher instance(io.qt.core.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. */ @io.qt.NativeAccess protected QAbstractEventDispatcher(QPrivateConstructor p) { super(p); } /** * Constructor for internal use only. * It is not allowed to call the declarative constructor from inside Java. */ @io.qt.NativeAccess protected QAbstractEventDispatcher(QDeclarativeConstructor constructor) { super((QPrivateConstructor)null); initialize_native(this, constructor); } @io.qt.QtUninvokable private static native void initialize_native(QAbstractEventDispatcher instance, QDeclarativeConstructor constructor); }