io.qt.bluetooth.QLowEnergyCharacteristicData Maven / Gradle / Ivy
package io.qt.bluetooth;
import io.qt.*;
/**
* Used to set up GATT service data
* Java wrapper for Qt class QLowEnergyCharacteristicData
*/
public class QLowEnergyCharacteristicData extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QLowEnergyCharacteristicData:: QLowEnergyCharacteristicData()
*/
public QLowEnergyCharacteristicData(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QLowEnergyCharacteristicData instance);
/**
* See QLowEnergyCharacteristicData:: QLowEnergyCharacteristicData(QLowEnergyCharacteristicData)
*/
public QLowEnergyCharacteristicData(io.qt.bluetooth.@NonNull QLowEnergyCharacteristicData other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QLowEnergyCharacteristicData instance, io.qt.bluetooth.QLowEnergyCharacteristicData other);
/**
* See QLowEnergyCharacteristicData:: addDescriptor(QLowEnergyDescriptorData)
*/
@QtUninvokable
public final void addDescriptor(io.qt.bluetooth.@NonNull QLowEnergyDescriptorData descriptor){
addDescriptor_native_cref_QLowEnergyDescriptorData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(descriptor));
}
@QtUninvokable
private native void addDescriptor_native_cref_QLowEnergyDescriptorData(long __this__nativeId, long descriptor);
/**
* See QLowEnergyCharacteristicData:: descriptors()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList descriptors(){
return descriptors_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList descriptors_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: 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 QLowEnergyCharacteristicData:: maximumValueLength()const
*/
@QtUninvokable
public final int maximumValueLength(){
return maximumValueLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int maximumValueLength_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: minimumValueLength()const
*/
@QtUninvokable
public final int minimumValueLength(){
return minimumValueLength_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int minimumValueLength_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: operator=(QLowEnergyCharacteristicData)
*/
@QtUninvokable
public final void assign(io.qt.bluetooth.@NonNull QLowEnergyCharacteristicData other){
assign_native_cref_QLowEnergyCharacteristicData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QLowEnergyCharacteristicData(long __this__nativeId, long other);
/**
* Returns true if a and b are equal with respect to their public state, otherwise returns false
* See operator==(QLowEnergyCharacteristicData, QLowEnergyCharacteristicData)
*/
@QtUninvokable
public final boolean equals(io.qt.bluetooth.@NonNull QLowEnergyCharacteristicData b){
return equals_native_cref_QLowEnergyCharacteristicData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b));
}
@QtUninvokable
private native boolean equals_native_cref_QLowEnergyCharacteristicData(long __this__nativeId, long b);
/**
* See QLowEnergyCharacteristicData:: properties()const
*/
@QtUninvokable
public final io.qt.bluetooth.QLowEnergyCharacteristic.@NonNull PropertyTypes properties(){
return new io.qt.bluetooth.QLowEnergyCharacteristic.PropertyTypes(properties_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int properties_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: readConstraints()const
*/
@QtUninvokable
public final io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraints readConstraints(){
return new io.qt.bluetooth.QBluetooth.AttAccessConstraints(readConstraints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int readConstraints_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: setDescriptors(QList<QLowEnergyDescriptorData>)
*/
@QtUninvokable
public final void setDescriptors(java.util.@NonNull Collection extends io.qt.bluetooth.@NonNull QLowEnergyDescriptorData> descriptors){
setDescriptors_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), descriptors);
}
@QtUninvokable
private native void setDescriptors_native_cref_QList(long __this__nativeId, java.util.Collection extends io.qt.bluetooth.QLowEnergyDescriptorData> descriptors);
/**
* See QLowEnergyCharacteristicData:: setProperties(QLowEnergyCharacteristic::PropertyTypes)
*/
@QtUninvokable
public final void setProperties(io.qt.bluetooth.QLowEnergyCharacteristic.@NonNull PropertyTypes properties){
setProperties_native_QLowEnergyCharacteristic_PropertyTypes(QtJambi_LibraryUtilities.internal.nativeId(this), properties.value());
}
@QtUninvokable
private native void setProperties_native_QLowEnergyCharacteristic_PropertyTypes(long __this__nativeId, int properties);
/**
* See QLowEnergyCharacteristicData:: setReadConstraints(QBluetooth::AttAccessConstraints)
*/
@QtUninvokable
public final void setReadConstraints(io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraints constraints){
setReadConstraints_native_QBluetooth_AttAccessConstraints(QtJambi_LibraryUtilities.internal.nativeId(this), constraints.value());
}
@QtUninvokable
private native void setReadConstraints_native_QBluetooth_AttAccessConstraints(long __this__nativeId, int constraints);
/**
* See QLowEnergyCharacteristicData:: setUuid(QBluetoothUuid)
*/
@QtUninvokable
public final void setUuid(io.qt.bluetooth.@NonNull QBluetoothUuid uuid){
setUuid_native_cref_QBluetoothUuid(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(uuid));
}
@QtUninvokable
private native void setUuid_native_cref_QBluetoothUuid(long __this__nativeId, long uuid);
/**
* See QLowEnergyCharacteristicData:: setValue(QByteArray)
*/
@QtUninvokable
public final void setValue(io.qt.core.@NonNull QByteArray value){
setValue_native_cref_QByteArray(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(value));
}
@QtUninvokable
private native void setValue_native_cref_QByteArray(long __this__nativeId, long value);
/**
* See QLowEnergyCharacteristicData:: setValueLength(int, int)
*/
@QtUninvokable
public final void setValueLength(int minimum, int maximum){
setValueLength_native_int_int(QtJambi_LibraryUtilities.internal.nativeId(this), minimum, maximum);
}
@QtUninvokable
private native void setValueLength_native_int_int(long __this__nativeId, int minimum, int maximum);
/**
* See QLowEnergyCharacteristicData:: setWriteConstraints(QBluetooth::AttAccessConstraints)
*/
@QtUninvokable
public final void setWriteConstraints(io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraints constraints){
setWriteConstraints_native_QBluetooth_AttAccessConstraints(QtJambi_LibraryUtilities.internal.nativeId(this), constraints.value());
}
@QtUninvokable
private native void setWriteConstraints_native_QBluetooth_AttAccessConstraints(long __this__nativeId, int constraints);
/**
* See QLowEnergyCharacteristicData:: swap(QLowEnergyCharacteristicData&)
*/
@QtUninvokable
public final void swap(io.qt.bluetooth.@StrictNonNull QLowEnergyCharacteristicData other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QLowEnergyCharacteristicData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QLowEnergyCharacteristicData(long __this__nativeId, long other);
/**
* See QLowEnergyCharacteristicData:: uuid()const
*/
@QtUninvokable
public final io.qt.bluetooth.@NonNull QBluetoothUuid uuid(){
return uuid_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.bluetooth.QBluetoothUuid uuid_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: value()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QByteArray value(){
return value_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QByteArray value_native_constfct(long __this__nativeId);
/**
* See QLowEnergyCharacteristicData:: writeConstraints()const
*/
@QtUninvokable
public final io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraints writeConstraints(){
return new io.qt.bluetooth.QBluetooth.AttAccessConstraints(writeConstraints_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int writeConstraints_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLowEnergyCharacteristicData(QPrivateConstructor p) { super(p); }
/**
* See operator==(QLowEnergyCharacteristicData, QLowEnergyCharacteristicData)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.bluetooth.QLowEnergyCharacteristicData) {
return equals((io.qt.bluetooth.QLowEnergyCharacteristicData) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QLowEnergyCharacteristicData)
.
*/
@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.
See QLowEnergyCharacteristicData:: QLowEnergyCharacteristicData(QLowEnergyCharacteristicData)
*/
@QtUninvokable
@Override
public QLowEnergyCharacteristicData clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QLowEnergyCharacteristicData clone_native(long __this_nativeId);
/**
* Overloaded function for {@link #setProperties(io.qt.bluetooth.QLowEnergyCharacteristic.PropertyTypes)}.
*/
@QtUninvokable
public final void setProperties(io.qt.bluetooth.QLowEnergyCharacteristic.@NonNull PropertyType @NonNull... properties) {
setProperties(new io.qt.bluetooth.QLowEnergyCharacteristic.PropertyTypes(properties));
}
/**
* Overloaded function for {@link #setReadConstraints(io.qt.bluetooth.QBluetooth.AttAccessConstraints)}.
*/
@QtUninvokable
public final void setReadConstraints(io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraint @NonNull... constraints) {
setReadConstraints(new io.qt.bluetooth.QBluetooth.AttAccessConstraints(constraints));
}
/**
* Overloaded function for {@link #setUuid(io.qt.bluetooth.QBluetoothUuid)}.
*/
@QtUninvokable
public final void setUuid(io.qt.bluetooth.QBluetoothUuid.@NonNull ProtocolUuid uuid) {
setUuid(new io.qt.bluetooth.QBluetoothUuid(uuid));
}
/**
* Overloaded function for {@link #setUuid(io.qt.bluetooth.QBluetoothUuid)}.
*/
@QtUninvokable
public final void setUuid(io.qt.bluetooth.QBluetoothUuid.@NonNull ServiceClassUuid uuid) {
setUuid(new io.qt.bluetooth.QBluetoothUuid(uuid));
}
/**
* Overloaded function for {@link #setUuid(io.qt.bluetooth.QBluetoothUuid)}.
*/
@QtUninvokable
public final void setUuid(io.qt.bluetooth.QBluetoothUuid.@NonNull CharacteristicType uuid) {
setUuid(new io.qt.bluetooth.QBluetoothUuid(uuid));
}
/**
* Overloaded function for {@link #setUuid(io.qt.bluetooth.QBluetoothUuid)}.
*/
@QtUninvokable
public final void setUuid(io.qt.bluetooth.QBluetoothUuid.@NonNull DescriptorType uuid) {
setUuid(new io.qt.bluetooth.QBluetoothUuid(uuid));
}
/**
* Overloaded function for {@link #setUuid(io.qt.bluetooth.QBluetoothUuid)}.
*/
@QtUninvokable
public final void setUuid(io.qt.core.@NonNull QUuid uuid) {
setUuid(new io.qt.bluetooth.QBluetoothUuid(uuid));
}
/**
* Overloaded function for {@link #setValue(io.qt.core.QByteArray)}.
*/
@QtUninvokable
public final void setValue(byte @NonNull[] value) {
setValue(new io.qt.core.QByteArray(value));
}
/**
* Overloaded function for {@link #setWriteConstraints(io.qt.bluetooth.QBluetooth.AttAccessConstraints)}.
*/
@QtUninvokable
public final void setWriteConstraints(io.qt.bluetooth.QBluetooth.@NonNull AttAccessConstraint @NonNull... constraints) {
setWriteConstraints(new io.qt.bluetooth.QBluetooth.AttAccessConstraints(constraints));
}
}