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

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

The newest version!
package io.qt.core;


/**
 * 

Marks a deadline in the future

*

Java wrapper for Qt class QDeadlineTimer

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

Java wrapper for Qt enum QDeadlineTimer::ForeverConstant

*/ public enum ForeverConstant implements io.qt.QtEnumerator { Forever(0); private ForeverConstant(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 ForeverConstant resolve(int value) { switch (value) { case 0: return Forever; default: throw new io.qt.QNoSuchEnumValueException(value); } } private final int value; } /** *

Overloaded constructor for {@link #QDeadlineTimer(io.qt.core.QDeadlineTimer.ForeverConstant, io.qt.core.Qt.TimerType)} * with type_ = io.qt.core.Qt.TimerType.CoarseTimer.

*/ public QDeadlineTimer(io.qt.core.QDeadlineTimer.ForeverConstant arg__1) { this(arg__1, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::QDeadlineTimer(QDeadlineTimer::ForeverConstant,Qt::TimerType)

*/ public QDeadlineTimer(io.qt.core.QDeadlineTimer.ForeverConstant arg__1, io.qt.core.Qt.TimerType type_){ super((QPrivateConstructor)null); initialize_native(this, arg__1, type_); } private native static void initialize_native(QDeadlineTimer instance, io.qt.core.QDeadlineTimer.ForeverConstant arg__1, io.qt.core.Qt.TimerType type_); /** *

Overloaded constructor for {@link #QDeadlineTimer(io.qt.core.Qt.TimerType)} * with type_ = io.qt.core.Qt.TimerType.CoarseTimer.

*/ public QDeadlineTimer() { this(io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::QDeadlineTimer(Qt::TimerType)

*/ public QDeadlineTimer(io.qt.core.Qt.TimerType type_){ super((QPrivateConstructor)null); initialize_native(this, type_); } private native static void initialize_native(QDeadlineTimer instance, io.qt.core.Qt.TimerType type_); /** *

Overloaded constructor for {@link #QDeadlineTimer(long, io.qt.core.Qt.TimerType)} * with type = io.qt.core.Qt.TimerType.CoarseTimer.

*/ public QDeadlineTimer(long msecs) { this(msecs, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::QDeadlineTimer(qint64,Qt::TimerType)

*/ public QDeadlineTimer(long msecs, io.qt.core.Qt.TimerType type){ super((QPrivateConstructor)null); initialize_native(this, msecs, type); } private native static void initialize_native(QDeadlineTimer instance, long msecs, io.qt.core.Qt.TimerType type); /** *

See QDeadlineTimer::deadline()const

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

See QDeadlineTimer::deadlineNSecs()const

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

See QDeadlineTimer::hasExpired()const

*/ @io.qt.QtUninvokable public final boolean hasExpired(){ return hasExpired_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean hasExpired_native_constfct(long __this__nativeId); /** *

See QDeadlineTimer::isForever()const

*/ @io.qt.QtUninvokable public final boolean isForever(){ return isForever_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @io.qt.QtUninvokable private native boolean isForever_native_constfct(long __this__nativeId); /** *

See QDeadlineTimer::operator+=(qint64)

*/ @io.qt.QtUninvokable public final io.qt.core.QDeadlineTimer addMSecs(long msecs){ addMSecs_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); return this; } @io.qt.QtUninvokable private native io.qt.core.QDeadlineTimer addMSecs_native_long_long(long __this__nativeId, long msecs); /** *

See QDeadlineTimer::operator-=(qint64)

*/ @io.qt.QtUninvokable public final io.qt.core.QDeadlineTimer subtractMSecs(long msecs){ subtractMSecs_native_long_long(QtJambi_LibraryUtilities.internal.nativeId(this), msecs); return this; } @io.qt.QtUninvokable private native io.qt.core.QDeadlineTimer subtractMSecs_native_long_long(long __this__nativeId, long msecs); @io.qt.QtUninvokable private final boolean operator_less(io.qt.core.QDeadlineTimer d2){ return operator_less_native_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(d2)); } @io.qt.QtUninvokable private native boolean operator_less_native_QDeadlineTimer(long __this__nativeId, long d2); @io.qt.QtUninvokable private final boolean operator_equal(io.qt.core.QDeadlineTimer d2){ return operator_equal_native_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(d2)); } @io.qt.QtUninvokable private native boolean operator_equal_native_QDeadlineTimer(long __this__nativeId, long d2); /** *

See QDeadlineTimer::remainingTime()const

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

See QDeadlineTimer::remainingTimeNSecs()const

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

Overloaded function for {@link #setDeadline(long, io.qt.core.Qt.TimerType)} * with timerType = io.qt.core.Qt.TimerType.CoarseTimer.

*/ @io.qt.QtUninvokable public final void setDeadline(long msecs) { setDeadline(msecs, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::setDeadline(qint64,Qt::TimerType)

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

Overloaded function for {@link #setPreciseDeadline(long, long, io.qt.core.Qt.TimerType)} * with type = io.qt.core.Qt.TimerType.CoarseTimer.

*/ @io.qt.QtUninvokable public final void setPreciseDeadline(long secs, long nsecs) { setPreciseDeadline(secs, nsecs, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

Overloaded function for {@link #setPreciseDeadline(long, long, io.qt.core.Qt.TimerType)}

*

with:

    *
  • nsecs = 0
  • *
  • type = io.qt.core.Qt.TimerType.CoarseTimer
  • *
*/ @io.qt.QtUninvokable public final void setPreciseDeadline(long secs) { setPreciseDeadline(secs, (long)0, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::setPreciseDeadline(qint64,qint64,Qt::TimerType)

*/ @io.qt.QtUninvokable public final void setPreciseDeadline(long secs, long nsecs, io.qt.core.Qt.TimerType type){ setPreciseDeadline_native_long_long_long_long_Qt_TimerType(QtJambi_LibraryUtilities.internal.nativeId(this), secs, nsecs, type.value()); } @io.qt.QtUninvokable private native void setPreciseDeadline_native_long_long_long_long_Qt_TimerType(long __this__nativeId, long secs, long nsecs, int type); /** *

Overloaded function for {@link #setPreciseRemainingTime(long, long, io.qt.core.Qt.TimerType)} * with type = io.qt.core.Qt.TimerType.CoarseTimer.

*/ @io.qt.QtUninvokable public final void setPreciseRemainingTime(long secs, long nsecs) { setPreciseRemainingTime(secs, nsecs, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

Overloaded function for {@link #setPreciseRemainingTime(long, long, io.qt.core.Qt.TimerType)}

*

with:

    *
  • nsecs = 0
  • *
  • type = io.qt.core.Qt.TimerType.CoarseTimer
  • *
*/ @io.qt.QtUninvokable public final void setPreciseRemainingTime(long secs) { setPreciseRemainingTime(secs, (long)0, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::setPreciseRemainingTime(qint64,qint64,Qt::TimerType)

*/ @io.qt.QtUninvokable public final void setPreciseRemainingTime(long secs, long nsecs, io.qt.core.Qt.TimerType type){ setPreciseRemainingTime_native_long_long_long_long_Qt_TimerType(QtJambi_LibraryUtilities.internal.nativeId(this), secs, nsecs, type.value()); } @io.qt.QtUninvokable private native void setPreciseRemainingTime_native_long_long_long_long_Qt_TimerType(long __this__nativeId, long secs, long nsecs, int type); /** *

Overloaded function for {@link #setRemainingTime(long, io.qt.core.Qt.TimerType)} * with type = io.qt.core.Qt.TimerType.CoarseTimer.

*/ @io.qt.QtUninvokable public final void setRemainingTime(long msecs) { setRemainingTime(msecs, io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::setRemainingTime(qint64,Qt::TimerType)

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

See QDeadlineTimer::setTimerType(Qt::TimerType)

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

See QDeadlineTimer::swap(QDeadlineTimer&)

*/ @io.qt.QtUninvokable public final void swap(io.qt.core.QDeadlineTimer other){ java.util.Objects.requireNonNull(other, "Argument 'other': null not expected."); swap_native_ref_QDeadlineTimer(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @io.qt.QtUninvokable private native void swap_native_ref_QDeadlineTimer(long __this__nativeId, long other); /** *

See QDeadlineTimer::timerType()const

*/ @io.qt.QtUninvokable public final io.qt.core.Qt.TimerType timerType(){ return io.qt.core.Qt.TimerType.resolve(timerType_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @io.qt.QtUninvokable private native int timerType_native_constfct(long __this__nativeId); /** *

See QDeadlineTimer::addNSecs(QDeadlineTimer,qint64)

*/ public static io.qt.core.QDeadlineTimer addNSecs(io.qt.core.QDeadlineTimer dt, long nsecs){ return addNSecs_native_QDeadlineTimer_long_long(QtJambi_LibraryUtilities.internal.checkedNativeId(dt), nsecs); } private native static io.qt.core.QDeadlineTimer addNSecs_native_QDeadlineTimer_long_long(long dt, long nsecs); /** *

Overloaded function for {@link #current(io.qt.core.Qt.TimerType)} * with timerType = io.qt.core.Qt.TimerType.CoarseTimer.

*/ public static io.qt.core.QDeadlineTimer current() { return current(io.qt.core.Qt.TimerType.CoarseTimer); } /** *

See QDeadlineTimer::current(Qt::TimerType)

*/ public static io.qt.core.QDeadlineTimer current(io.qt.core.Qt.TimerType timerType){ return current_native_Qt_TimerType(timerType.value()); } private native static io.qt.core.QDeadlineTimer current_native_Qt_TimerType(int timerType); /** * Constructor for internal use only. * @param p expected to be null. */ @io.qt.NativeAccess protected QDeadlineTimer(QPrivateConstructor p) { super(p); } @Override @io.qt.QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.core.QDeadlineTimer) { return operator_equal((io.qt.core.QDeadlineTimer) other); } return false; } @io.qt.QtUninvokable public int compareTo(io.qt.core.QDeadlineTimer other) { if (equals(other)) return 0; else if (operator_less(other)) return -1; else return 1; } @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 QDeadlineTimer clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private native QDeadlineTimer clone_native(long __this_nativeId); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy