io.qt.bluetooth.QBluetoothTransferReply Maven / Gradle / Ivy
package io.qt.bluetooth;
import io.qt.*;
/**
* Stores the response for a data transfer request
* Java wrapper for Qt class QBluetoothTransferReply
*/
public abstract class QBluetoothTransferReply extends io.qt.core.QObject
{
static {
QtJambi_LibraryUtilities.initialize();
}
@QtPropertyMember(enabled=false)
private Object __rcManager = null;
/**
* This variable stores the meta-object for the class.
*/
public static final io.qt.core.@NonNull QMetaObject staticMetaObject = io.qt.core.QMetaObject.forType(QBluetoothTransferReply.class);
@NativeAccess
private static final class ConcreteWrapper extends QBluetoothTransferReply {
@NativeAccess
private ConcreteWrapper(QPrivateConstructor p) { super(p); }
@Override
@QtUninvokable
public io.qt.bluetooth.QBluetoothTransferReply.@NonNull TransferError error(){
return io.qt.bluetooth.QBluetoothTransferReply.TransferError.resolve(error_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int error_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public java.lang.@NonNull String errorString(){
return errorString_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public boolean isFinished(){
return isFinished_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isFinished_native_constfct(long __this__nativeId);
@Override
@QtUninvokable
public boolean isRunning(){
return isRunning_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native boolean isRunning_native_constfct(long __this__nativeId);
}
/**
* Java wrapper for Qt enum QBluetoothTransferReply::TransferError
*/
public enum TransferError implements QtEnumerator {
/**
* Representing QBluetoothTransferReply:: NoError
*/
NoError(0),
/**
* Representing QBluetoothTransferReply:: UnknownError
*/
UnknownError(1),
/**
* Representing QBluetoothTransferReply:: FileNotFoundError
*/
FileNotFoundError(2),
/**
* Representing QBluetoothTransferReply:: HostNotFoundError
*/
HostNotFoundError(3),
/**
* Representing QBluetoothTransferReply:: UserCanceledTransferError
*/
UserCanceledTransferError(4),
/**
* Representing QBluetoothTransferReply:: IODeviceNotReadableError
*/
IODeviceNotReadableError(5),
/**
* Representing QBluetoothTransferReply:: ResourceBusyError
*/
ResourceBusyError(6),
/**
* Representing QBluetoothTransferReply:: SessionError
*/
SessionError(7);
static {
QtJambi_LibraryUtilities.initialize();
}
private TransferError(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 @NonNull TransferError resolve(int value) {
switch (value) {
case 0: return NoError;
case 1: return UnknownError;
case 2: return FileNotFoundError;
case 3: return HostNotFoundError;
case 4: return UserCanceledTransferError;
case 5: return IODeviceNotReadableError;
case 6: return ResourceBusyError;
case 7: return SessionError;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QBluetoothTransferReply:: error(QBluetoothTransferReply::TransferError)
*/
public final @NonNull Signal1 error = new Signal1<>();
/**
* See QBluetoothTransferReply:: finished(QBluetoothTransferReply*)
*/
public final @NonNull Signal1 finished = new Signal1<>();
/**
* See QBluetoothTransferReply:: transferProgress(qint64, qint64)
*/
public final @NonNull Signal2 transferProgress = new Signal2<>();
/**
* See QBluetoothTransferReply:: QBluetoothTransferReply(QObject*)
*/
protected QBluetoothTransferReply(io.qt.core.@Nullable QObject parent){
super((QPrivateConstructor)null);
initialize_native(this, parent);
}
private native static void initialize_native(QBluetoothTransferReply instance, io.qt.core.QObject parent);
/**
* See QBluetoothTransferReply:: abort()
*/
public final void abort(){
abort_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private native void abort_native(long __this__nativeId);
/**
* See QBluetoothTransferReply:: manager()const
*/
@QtUninvokable
public final io.qt.bluetooth.@Nullable QBluetoothTransferManager manager(){
return manager_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.bluetooth.QBluetoothTransferManager manager_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferReply:: request()const
*/
@QtUninvokable
public final io.qt.bluetooth.@NonNull QBluetoothTransferRequest request(){
return request_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.bluetooth.QBluetoothTransferRequest request_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferReply:: setManager(QBluetoothTransferManager*)
*/
@QtUninvokable
protected final void setManager(io.qt.bluetooth.@Nullable QBluetoothTransferManager manager){
setManager_native_QBluetoothTransferManager_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(manager));
__rcManager = manager;
}
@QtUninvokable
private native void setManager_native_QBluetoothTransferManager_ptr(long __this__nativeId, long manager);
/**
* See QBluetoothTransferReply:: setRequest(QBluetoothTransferRequest)
*/
@QtUninvokable
protected final void setRequest(io.qt.bluetooth.@NonNull QBluetoothTransferRequest request){
setRequest_native_cref_QBluetoothTransferRequest(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(request));
}
@QtUninvokable
private native void setRequest_native_cref_QBluetoothTransferRequest(long __this__nativeId, long request);
/**
* See QBluetoothTransferReply:: error()const
*/
@QtUninvokable
public abstract io.qt.bluetooth.QBluetoothTransferReply.@NonNull TransferError error();
@QtUninvokable
private native int error_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferReply:: errorString()const
*/
@QtUninvokable
public abstract java.lang.@NonNull String errorString();
@QtUninvokable
private native java.lang.String errorString_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferReply:: isFinished()const
*/
@QtUninvokable
public abstract boolean isFinished();
@QtUninvokable
private native boolean isFinished_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferReply:: isRunning()const
*/
@QtUninvokable
public abstract boolean isRunning();
@QtUninvokable
private native boolean isRunning_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QBluetoothTransferReply(QPrivateConstructor p) { super(p); }
/**
* Constructor for internal use only.
* It is not allowed to call the declarative constructor from inside Java.
* @hidden
*/
@NativeAccess
protected QBluetoothTransferReply(QDeclarativeConstructor constructor) {
super((QPrivateConstructor)null);
initialize_native(this, constructor);
}
@QtUninvokable
private static native void initialize_native(QBluetoothTransferReply instance, QDeclarativeConstructor constructor);
/**
* Overloaded constructor for {@link #QBluetoothTransferReply(io.qt.core.QObject)}
* with parent = null
.
*/
protected QBluetoothTransferReply() {
this((io.qt.core.QObject)null);
}
}