io.qt.bluetooth.QBluetoothTransferRequest Maven / Gradle / Ivy
package io.qt.bluetooth;
import io.qt.*;
/**
* Stores information about a data transfer request
* Java wrapper for Qt class QBluetoothTransferRequest
*/
public class QBluetoothTransferRequest extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QBluetoothTransferRequest::Attribute
*/
public enum Attribute implements QtEnumerator {
/**
* Representing QBluetoothTransferRequest:: DescriptionAttribute
*/
DescriptionAttribute(0),
/**
* Representing QBluetoothTransferRequest:: TimeAttribute
*/
TimeAttribute(1),
/**
* Representing QBluetoothTransferRequest:: TypeAttribute
*/
TypeAttribute(2),
/**
* Representing QBluetoothTransferRequest:: LengthAttribute
*/
LengthAttribute(3),
/**
* Representing QBluetoothTransferRequest:: NameAttribute
*/
NameAttribute(4);
static {
QtJambi_LibraryUtilities.initialize();
}
private Attribute(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 Attribute resolve(int value) {
switch (value) {
case 0: return DescriptionAttribute;
case 1: return TimeAttribute;
case 2: return TypeAttribute;
case 3: return LengthAttribute;
case 4: return NameAttribute;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* See QBluetoothTransferRequest:: QBluetoothTransferRequest(QBluetoothAddress)
*/
public QBluetoothTransferRequest(io.qt.bluetooth.@NonNull QBluetoothAddress address){
super((QPrivateConstructor)null);
initialize_native(this, address);
}
private native static void initialize_native(QBluetoothTransferRequest instance, io.qt.bluetooth.QBluetoothAddress address);
/**
* See QBluetoothTransferRequest:: QBluetoothTransferRequest(QBluetoothTransferRequest)
*/
public QBluetoothTransferRequest(io.qt.bluetooth.@NonNull QBluetoothTransferRequest other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QBluetoothTransferRequest instance, io.qt.bluetooth.QBluetoothTransferRequest other);
/**
* See QBluetoothTransferRequest:: address()const
*/
@QtUninvokable
public final io.qt.bluetooth.@NonNull QBluetoothAddress address(){
return address_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.bluetooth.QBluetoothAddress address_native_constfct(long __this__nativeId);
/**
* See QBluetoothTransferRequest:: attribute(QBluetoothTransferRequest::Attribute, QVariant)const
*/
@QtUninvokable
public final java.lang.Object attribute(io.qt.bluetooth.QBluetoothTransferRequest.@NonNull Attribute code, java.lang.Object defaultValue){
return attribute_native_QBluetoothTransferRequest_Attribute_cref_QVariant_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), code.value(), defaultValue);
}
@QtUninvokable
private native java.lang.Object attribute_native_QBluetoothTransferRequest_Attribute_cref_QVariant_constfct(long __this__nativeId, int code, java.lang.Object defaultValue);
/**
* See QBluetoothTransferRequest:: operator=(QBluetoothTransferRequest)
*/
@QtUninvokable
public final void assign(io.qt.bluetooth.@NonNull QBluetoothTransferRequest other){
assign_native_cref_QBluetoothTransferRequest(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QBluetoothTransferRequest(long __this__nativeId, long other);
/**
* See QBluetoothTransferRequest:: operator==(QBluetoothTransferRequest)const
*/
@QtUninvokable
public final boolean equals(io.qt.bluetooth.@NonNull QBluetoothTransferRequest other){
return equals_native_cref_QBluetoothTransferRequest_constfct(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native boolean equals_native_cref_QBluetoothTransferRequest_constfct(long __this__nativeId, long other);
/**
* See QBluetoothTransferRequest:: setAttribute(QBluetoothTransferRequest::Attribute, QVariant)
*/
@QtUninvokable
public final void setAttribute(io.qt.bluetooth.QBluetoothTransferRequest.@NonNull Attribute code, java.lang.Object value){
setAttribute_native_QBluetoothTransferRequest_Attribute_cref_QVariant(QtJambi_LibraryUtilities.internal.nativeId(this), code.value(), value);
}
@QtUninvokable
private native void setAttribute_native_QBluetoothTransferRequest_Attribute_cref_QVariant(long __this__nativeId, int code, java.lang.Object value);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QBluetoothTransferRequest(QPrivateConstructor p) { super(p); }
/**
* See QBluetoothTransferRequest:: operator==(QBluetoothTransferRequest)const
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.bluetooth.QBluetoothTransferRequest) {
return equals((io.qt.bluetooth.QBluetoothTransferRequest) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QBluetoothTransferRequest)
.
*/
@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.
*/
@QtUninvokable
@Override
public QBluetoothTransferRequest clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QBluetoothTransferRequest clone_native(long __this_nativeId);
/**
* Overloaded constructor for {@link #QBluetoothTransferRequest(io.qt.bluetooth.QBluetoothAddress)}
* with address = new io.qt.bluetooth.QBluetoothAddress()
.
*/
public QBluetoothTransferRequest() {
this(new io.qt.bluetooth.QBluetoothAddress());
}
/**
* Overloaded function for {@link #attribute(io.qt.bluetooth.QBluetoothTransferRequest.Attribute, java.lang.Object)}
* with defaultValue = null
.
*/
@QtUninvokable
public final java.lang.Object attribute(io.qt.bluetooth.QBluetoothTransferRequest.@NonNull Attribute code) {
return attribute(code, (java.lang.Object)null);
}
}