io.qt.core.QFutureInterfaceBase Maven / Gradle / Ivy
Show all versions of qtjambi Show documentation
package io.qt.core;
import io.qt.*;
/**
* Java wrapper for Qt class QFutureInterfaceBase
*/
public class QFutureInterfaceBase extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcThreadPool = null;
/**
* Java wrapper for Qt enum QFutureInterfaceBase::CancelMode
*/
protected enum CancelMode implements QtEnumerator {
/**
* Representing QFutureInterfaceBase:: CancelMode:: CancelOnly
*/
CancelOnly(0),
/**
* Representing QFutureInterfaceBase:: CancelMode:: CancelAndFinish
*/
CancelAndFinish(1);
static {
QtJambi_LibraryUtilities.initialize();
}
private CancelMode(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
*/
public static @NonNull CancelMode resolve(int value) {
switch (value) {
case 0: return CancelOnly;
case 1: return CancelAndFinish;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QFutureInterfaceBase::State
*/
@QtExtensibleEnum
public enum State implements QtEnumerator {
/**
* Representing QFutureInterfaceBase:: NoState
*/
NoState(0),
/**
* Representing QFutureInterfaceBase:: Running
*/
Running(1),
/**
* Representing QFutureInterfaceBase:: Started
*/
Started(2),
/**
* Representing QFutureInterfaceBase:: Finished
*/
Finished(4),
/**
* Representing QFutureInterfaceBase:: Canceled
*/
Canceled(8),
/**
* Representing QFutureInterfaceBase:: Suspending
*/
Suspending(16),
/**
* Representing QFutureInterfaceBase:: Suspended
*/
Suspended(32),
/**
* Representing QFutureInterfaceBase:: Throttled
*/
Throttled(64),
/**
* Representing QFutureInterfaceBase:: Pending
*/
Pending(128);
static {
QtJambi_LibraryUtilities.initialize();
}
private State(int value) {
this.value = value;
}
/**
* {@inheritDoc}
*/
@Override
public int value() {
return value;
}
/**
* Returns the corresponding enum entry for the given value.
* @param value
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum
*/
public static @NonNull State resolve(int value) {
switch (value) {
case 0: return NoState;
case 1: return Running;
case 2: return Started;
case 4: return Finished;
case 8: return Canceled;
case 16: return Suspending;
case 32: return Suspended;
case 64: return Throttled;
case 128: return Pending;
default: return QtJambi_LibraryUtilities.internal.resolveEnum(State.class, value, null);
}
}
/**
* Returns the corresponding enum entry for the given value and name.
* @param value
* @param name
* @return enum entry
* @throws QNoSuchEnumValueException if value not existent in the enum or name does not match.
*/
public static @NonNull State resolve(int value, @Nullable String name) {
if(name==null || name.isEmpty())
return resolve(value);
else
return QtJambi_LibraryUtilities.internal.resolveEnum(State.class, value, name);
}
private final int value;
}
/**
* See QFutureInterfaceBase:: QFutureInterfaceBase(QFutureInterfaceBase)
*/
public QFutureInterfaceBase(io.qt.core.@NonNull QFutureInterfaceBase other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QFutureInterfaceBase instance, io.qt.core.QFutureInterfaceBase other);
/**
* See QFutureInterfaceBase:: QFutureInterfaceBase(QFutureInterfaceBase::State)
*/
public QFutureInterfaceBase(io.qt.core.QFutureInterfaceBase.@NonNull State initialState){
super((QPrivateConstructor)null);
initialize_native(this, initialState);
}
private native static void initialize_native(QFutureInterfaceBase instance, io.qt.core.QFutureInterfaceBase.State initialState);
/**
* See QFutureInterfaceBase:: cancel()
*/
@QtUninvokable
public final void cancel(){
cancel_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void cancel_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: cancel(QFutureInterfaceBase::CancelMode)
*/
@QtUninvokable
protected final void cancel(io.qt.core.QFutureInterfaceBase.@NonNull CancelMode mode){
cancel_native_QFutureInterfaceBase_CancelMode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void cancel_native_QFutureInterfaceBase_CancelMode(long __this__nativeId, int mode);
/**
* See QFutureInterfaceBase:: cancelAndFinish()
*/
@QtUninvokable
public final void cancelAndFinish(){
cancelAndFinish_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void cancelAndFinish_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: cleanContinuation()
*/
@QtUninvokable
protected final void cleanContinuation(){
cleanContinuation_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void cleanContinuation_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: derefT()const
*/
@QtUninvokable
protected final boolean derefT(){
return derefT_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean derefT_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: expectedResultCount()
*/
@QtUninvokable
public final int expectedResultCount(){
return expectedResultCount_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int expectedResultCount_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: hasException()const
*/
@QtUninvokable
public final boolean hasException(){
return hasException_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean hasException_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isCanceled()const
*/
@QtUninvokable
public final boolean isCanceled(){
return isCanceled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isCanceled_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isChainCanceled()const
*/
@QtUninvokable
public final boolean isChainCanceled(){
return isChainCanceled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isChainCanceled_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isFinished()const
*/
@QtUninvokable
public final boolean isFinished(){
return isFinished_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFinished_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isPaused()const
*/
@Deprecated
@QtUninvokable
public final boolean isPaused(){
return isPaused_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native boolean isPaused_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isProgressUpdateNeeded()const
*/
@QtUninvokable
public final boolean isProgressUpdateNeeded(){
return isProgressUpdateNeeded_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isProgressUpdateNeeded_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isResultReadyAt(int)const
*/
@QtUninvokable
public final boolean isResultReadyAt(int index){
return isResultReadyAt_native_int_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), index);
}
@QtUninvokable
private native boolean isResultReadyAt_native_int_constfct(long __this__nativeId, int index);
/**
* See QFutureInterfaceBase:: isRunning()const
*/
@QtUninvokable
public final boolean isRunning(){
return isRunning_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRunning_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isRunningOrPending()const
*/
@QtUninvokable
protected final boolean isRunningOrPending(){
return isRunningOrPending_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRunningOrPending_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isStarted()const
*/
@QtUninvokable
public final boolean isStarted(){
return isStarted_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isStarted_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isSuspended()const
*/
@QtUninvokable
public final boolean isSuspended(){
return isSuspended_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSuspended_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isSuspending()const
*/
@QtUninvokable
public final boolean isSuspending(){
return isSuspending_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isSuspending_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isThrottled()const
*/
@QtUninvokable
public final boolean isThrottled(){
return isThrottled_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isThrottled_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: isValid()const
*/
@QtUninvokable
public final boolean isValid(){
return isValid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isValid_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: launchAsync()const
*/
@QtUninvokable
protected final boolean launchAsync(){
return launchAsync_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean launchAsync_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: loadState()const
*/
@QtUninvokable
public final int loadState(){
return loadState_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int loadState_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: mutex()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QMutex mutex(){
return mutex_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QMutex mutex_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: operator=(QFutureInterfaceBase)
*/
@QtUninvokable
public final void assign(io.qt.core.@NonNull QFutureInterfaceBase other){
assign_native_cref_QFutureInterfaceBase(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QFutureInterfaceBase(long __this__nativeId, long other);
/**
* See QFutureInterfaceBase:: operator==(QFutureInterfaceBase)const
*/
@QtUninvokable
public final boolean equals(io.qt.core.@NonNull QFutureInterfaceBase other){
return equals_native_cref_QFutureInterfaceBase_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QFutureInterfaceBase_constfct(long __this__nativeId, long other);
/**
* See QFutureInterfaceBase:: progressMaximum()const
*/
@QtUninvokable
public final int progressMaximum(){
return progressMaximum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int progressMaximum_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: progressMinimum()const
*/
@QtUninvokable
public final int progressMinimum(){
return progressMinimum_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int progressMinimum_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: progressText()const
*/
@QtUninvokable
public final java.lang.@NonNull String progressText(){
return progressText_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String progressText_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: progressValue()const
*/
@QtUninvokable
public final int progressValue(){
return progressValue_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int progressValue_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: queryState(QFutureInterfaceBase::State)const
*/
@QtUninvokable
public final boolean queryState(io.qt.core.QFutureInterfaceBase.@NonNull State state){
return queryState_native_QFutureInterfaceBase_State_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), state.value());
}
@QtUninvokable
private native boolean queryState_native_QFutureInterfaceBase_State_constfct(long __this__nativeId, int state);
/**
* See QFutureInterfaceBase:: refT()const
*/
@QtUninvokable
protected final boolean refT(){
return refT_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean refT_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: reportCanceled()
*/
@QtUninvokable
public final void reportCanceled(){
reportCanceled_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reportCanceled_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: reportFinished()
*/
@QtDeclaredFinal
@QtUninvokable
public void reportFinished(){
reportFinished_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reportFinished_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: reportResultsReady(int, int)
*/
@QtUninvokable
public final void reportResultsReady(int beginIndex, int endIndex){
reportResultsReady_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), beginIndex, endIndex);
}
@QtUninvokable
private native void reportResultsReady_native_int_int(long __this__nativeId, int beginIndex, int endIndex);
/**
* See QFutureInterfaceBase:: reportStarted()
*/
@QtUninvokable
public final void reportStarted(){
reportStarted_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reportStarted_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: reportSuspended()const
*/
@QtUninvokable
public final void reportSuspended(){
reportSuspended_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reportSuspended_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: reset()
*/
@QtUninvokable
protected final void reset(){
reset_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void reset_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: resultCount()const
*/
@QtUninvokable
public final int resultCount(){
return resultCount_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int resultCount_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: rethrowPossibleException()
*/
@QtUninvokable
protected final void rethrowPossibleException(){
rethrowPossibleException_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void rethrowPossibleException_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: runContinuation()const
*/
@QtUninvokable
protected final void runContinuation(){
runContinuation_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void runContinuation_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: setContinuation(std::function<void(const QFutureInterfaceBase&)>)
*/
@QtUninvokable
protected final void setContinuation(java.util.function.Consumer func){
setContinuation_native_QFutureInterfaceBase_Continuation(QtJambi_LibraryUtilities.internal.nativeId(this), func);
}
@QtUninvokable
private native void setContinuation_native_QFutureInterfaceBase_Continuation(long __this__nativeId, java.util.function.Consumer func);
/**
* See QFutureInterfaceBase:: setExpectedResultCount(int)
*/
@QtUninvokable
public final void setExpectedResultCount(int resultCount){
setExpectedResultCount_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), resultCount);
}
@QtUninvokable
private native void setExpectedResultCount_native_int(long __this__nativeId, int resultCount);
/**
* See QFutureInterfaceBase:: setFilterMode(bool)
*/
@QtUninvokable
public final void setFilterMode(boolean enable){
setFilterMode_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setFilterMode_native_bool(long __this__nativeId, boolean enable);
/**
* See QFutureInterfaceBase:: setLaunchAsync(bool)
*/
@QtUninvokable
protected final void setLaunchAsync(boolean value){
setLaunchAsync_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), value);
}
@QtUninvokable
private native void setLaunchAsync_native_bool(long __this__nativeId, boolean value);
/**
* See QFutureInterfaceBase:: setPaused(bool)
*
* @deprecated Use setSuspended() instead.
*/
@Deprecated
@QtUninvokable
public final void setPaused(boolean paused){
setPaused_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), paused);
}
@Deprecated
@QtUninvokable
private native void setPaused_native_bool(long __this__nativeId, boolean paused);
/**
* See QFutureInterfaceBase:: setProgressRange(int, int)
*/
@QtUninvokable
public final void setProgressRange(int minimum, int maximum){
setProgressRange_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), minimum, maximum);
}
@QtUninvokable
private native void setProgressRange_native_int_int(long __this__nativeId, int minimum, int maximum);
/**
* See QFutureInterfaceBase:: setProgressValue(int)
*/
@QtUninvokable
public final void setProgressValue(int progressValue){
setProgressValue_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), progressValue);
}
@QtUninvokable
private native void setProgressValue_native_int(long __this__nativeId, int progressValue);
/**
* See QFutureInterfaceBase:: setProgressValueAndText(int, QString)
*/
@QtUninvokable
public final void setProgressValueAndText(int progressValue, java.lang.@NonNull String progressText){
setProgressValueAndText_native_int_cref_QString(QtJambi_LibraryUtilities.internal.nativeId(this), progressValue, progressText);
}
@QtUninvokable
private native void setProgressValueAndText_native_int_cref_QString(long __this__nativeId, int progressValue, java.lang.String progressText);
/**
* See QFutureInterfaceBase:: setRunnable(QRunnable*)
*/
@QtUninvokable
public final void setRunnable(io.qt.core.@Nullable QRunnable runnable){
setRunnable_native_QRunnable_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(runnable));
if(runnable!=null){
if(runnable.autoDelete()){
QtJambi_LibraryUtilities.internal.setCppOwnership(runnable);
}else{
__rcRunnable = runnable;
}
}
}
@QtUninvokable
private native void setRunnable_native_QRunnable_ptr(long __this__nativeId, long runnable);
/**
* See QFutureInterfaceBase:: setSuspended(bool)
*/
@QtUninvokable
public final void setSuspended(boolean suspend){
setSuspended_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), suspend);
}
@QtUninvokable
private native void setSuspended_native_bool(long __this__nativeId, boolean suspend);
/**
* See QFutureInterfaceBase:: setThreadPool(QThreadPool*)
*/
@QtUninvokable
public final void setThreadPool(io.qt.core.@Nullable QThreadPool pool){
setThreadPool_native_QThreadPool_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(pool));
__rcThreadPool = pool;
}
@QtUninvokable
private native void setThreadPool_native_QThreadPool_ptr(long __this__nativeId, long pool);
/**
* See QFutureInterfaceBase:: setThrottled(bool)
*/
@QtUninvokable
public final void setThrottled(boolean enable){
setThrottled_native_bool(QtJambi_LibraryUtilities.internal.nativeId(this), enable);
}
@QtUninvokable
private native void setThrottled_native_bool(long __this__nativeId, boolean enable);
/**
* See QFutureInterfaceBase:: suspendIfRequested()
*/
@QtUninvokable
public final void suspendIfRequested(){
suspendIfRequested_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void suspendIfRequested_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: swap(QFutureInterfaceBase&)
*/
@QtUninvokable
public final void swap(io.qt.core.@StrictNonNull QFutureInterfaceBase other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QFutureInterfaceBase(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QFutureInterfaceBase(long __this__nativeId, long other);
/**
* See QFutureInterfaceBase:: threadPool()const
*/
@QtUninvokable
public final io.qt.core.@Nullable QThreadPool threadPool(){
return threadPool_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QThreadPool threadPool_native_constfct(long __this__nativeId);
/**
* See QFutureInterfaceBase:: togglePaused()
*
* @deprecated Use toggleSuspended() instead.
*/
@Deprecated
@QtUninvokable
public final void togglePaused(){
togglePaused_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@Deprecated
@QtUninvokable
private native void togglePaused_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: toggleSuspended()
*/
@QtUninvokable
public final void toggleSuspended(){
toggleSuspended_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void toggleSuspended_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: waitForFinished()
*/
@QtUninvokable
public final void waitForFinished(){
waitForFinished_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void waitForFinished_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: waitForNextResult()
*/
@QtUninvokable
public final boolean waitForNextResult(){
return waitForNextResult_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean waitForNextResult_native(long __this__nativeId);
/**
* See QFutureInterfaceBase:: waitForResult(int)
*/
@QtUninvokable
public final void waitForResult(int resultIndex){
waitForResult_native_int(QtJambi_LibraryUtilities.internal.nativeId(this), resultIndex);
}
@QtUninvokable
private native void waitForResult_native_int(long __this__nativeId, int resultIndex);
/**
* See QFutureInterfaceBase:: waitForResume()
*/
@QtUninvokable
public final void waitForResume(){
waitForResume_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native void waitForResume_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QFutureInterfaceBase(QPrivateConstructor p) { super(p); }
/**
* See QFutureInterfaceBase:: operator==(QFutureInterfaceBase)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other==null || other instanceof io.qt.core.QFutureInterfaceBase) {
return equals((io.qt.core.QFutureInterfaceBase) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QFutureInterfaceBase)
.
*/
@QtUninvokable
@Override
public int hashCode() {
return hashCode_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native static int hashCode_native(long __this_nativeId);
@QtUninvokable
public native final void reportException(Throwable e);
private Object __rcRunnable;
/**
* Creates and returns a copy of this object.
See QFutureInterfaceBase:: QFutureInterfaceBase(QFutureInterfaceBase)
*/
@QtUninvokable
@Override
public QFutureInterfaceBase clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QFutureInterfaceBase clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QFutureInterfaceBase(io.qt.core.QFutureInterfaceBase.State)}
* with initialState = io.qt.core.QFutureInterfaceBase.State.NoState
.
*/
public QFutureInterfaceBase() {
this(io.qt.core.QFutureInterfaceBase.State.NoState);
}
/**
* Overloaded function for {@link #setRunnable(io.qt.core.QRunnable)}.
*/
@QtUninvokable
public final void setRunnable(java.lang.@NonNull Runnable runnable) {
setRunnable(io.qt.core.QRunnable.of(runnable));
}
}