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

io.qt.bluetooth.QLowEnergyServiceData Maven / Gradle / Ivy

package io.qt.bluetooth;

import io.qt.*;


/**
 * 

Used to set up GATT service data

*

Java wrapper for Qt class QLowEnergyServiceData

*/ public class QLowEnergyServiceData extends QtObject implements java.lang.Cloneable { static { QtJambi_LibraryUtilities.initialize(); } @QtPropertyMember(enabled=false) private java.util.Collection __rcIncludedService; /** *

Java wrapper for Qt enum QLowEnergyServiceData::ServiceType

*/ public enum ServiceType implements QtEnumerator { /** *

Representing QLowEnergyServiceData::ServiceTypePrimary

*/ ServiceTypePrimary(10240), /** *

Representing QLowEnergyServiceData::ServiceTypeSecondary

*/ ServiceTypeSecondary(10241); static { QtJambi_LibraryUtilities.initialize(); } private ServiceType(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 ServiceType resolve(int value) { switch (value) { case 10240: return ServiceTypePrimary; case 10241: return ServiceTypeSecondary; default: throw new QNoSuchEnumValueException(value); } } private final int value; } /** *

See QLowEnergyServiceData::QLowEnergyServiceData()

*/ public QLowEnergyServiceData(){ super((QPrivateConstructor)null); initialize_native(this); } private native static void initialize_native(QLowEnergyServiceData instance); /** *

See QLowEnergyServiceData::QLowEnergyServiceData(QLowEnergyServiceData)

*/ public QLowEnergyServiceData(io.qt.bluetooth.@NonNull QLowEnergyServiceData other){ super((QPrivateConstructor)null); initialize_native(this, other); } private native static void initialize_native(QLowEnergyServiceData instance, io.qt.bluetooth.QLowEnergyServiceData other); /** *

See QLowEnergyServiceData::addCharacteristic(QLowEnergyCharacteristicData)

*/ @QtUninvokable public final void addCharacteristic(io.qt.bluetooth.@NonNull QLowEnergyCharacteristicData characteristic){ addCharacteristic_native_cref_QLowEnergyCharacteristicData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(characteristic)); } @QtUninvokable private native void addCharacteristic_native_cref_QLowEnergyCharacteristicData(long __this__nativeId, long characteristic); /** *

See QLowEnergyServiceData::addIncludedService(QLowEnergyService*)

*/ @QtUninvokable public final void addIncludedService(io.qt.bluetooth.@Nullable QLowEnergyService service){ addIncludedService_native_QLowEnergyService_ptr(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(service)); if (service != null) { if(__rcIncludedService==null) __rcIncludedService = QtJambi_LibraryUtilities.internal.newRCList(); __rcIncludedService.add(service); } } @QtUninvokable private native void addIncludedService_native_QLowEnergyService_ptr(long __this__nativeId, long service); /** *

See QLowEnergyServiceData::characteristics()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList characteristics(){ return characteristics_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList characteristics_native_constfct(long __this__nativeId); /** *

See QLowEnergyServiceData::includedServices()const

*/ @QtUninvokable public final io.qt.core.@NonNull QList includedServices(){ return includedServices_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)); } @QtUninvokable private native io.qt.core.QList includedServices_native_constfct(long __this__nativeId); /** *

See QLowEnergyServiceData::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 QLowEnergyServiceData::operator=(QLowEnergyServiceData)

*/ @QtUninvokable public final void assign(io.qt.bluetooth.@NonNull QLowEnergyServiceData other){ assign_native_cref_QLowEnergyServiceData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other)); } @QtUninvokable private native void assign_native_cref_QLowEnergyServiceData(long __this__nativeId, long other); /** *

Returns true if a and b are equal with respect to their public state, otherwise returns false

*

See operator==(QLowEnergyServiceData,QLowEnergyServiceData)

*/ @QtUninvokable public final boolean equals(io.qt.bluetooth.@NonNull QLowEnergyServiceData b){ return equals_native_cref_QLowEnergyServiceData(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(b)); } @QtUninvokable private native boolean equals_native_cref_QLowEnergyServiceData(long __this__nativeId, long b); /** *

See QLowEnergyServiceData::setCharacteristics(QList<QLowEnergyCharacteristicData>)

*/ @QtUninvokable public final void setCharacteristics(java.util.@NonNull Collection characteristics){ setCharacteristics_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), characteristics); } @QtUninvokable private native void setCharacteristics_native_cref_QList(long __this__nativeId, java.util.Collection characteristics); /** *

See QLowEnergyServiceData::setIncludedServices(QList<QLowEnergyService*>)

*/ @QtUninvokable public final void setIncludedServices(java.util.@NonNull Collection services){ setIncludedServices_native_cref_QList(QtJambi_LibraryUtilities.internal.nativeId(this), services); if(__rcIncludedService!=null){ __rcIncludedService.clear(); }else{ __rcIncludedService = new java.util.ArrayList<>(); } __rcIncludedService.addAll(services); } @QtUninvokable private native void setIncludedServices_native_cref_QList(long __this__nativeId, java.util.Collection services); /** *

See QLowEnergyServiceData::setType(QLowEnergyServiceData::ServiceType)

*/ @QtUninvokable public final void setType(io.qt.bluetooth.QLowEnergyServiceData.@NonNull ServiceType type){ setType_native_QLowEnergyServiceData_ServiceType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value()); } @QtUninvokable private native void setType_native_QLowEnergyServiceData_ServiceType(long __this__nativeId, int type); /** *

See QLowEnergyServiceData::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 QLowEnergyServiceData::swap(QLowEnergyServiceData&)

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

See QLowEnergyServiceData::type()const

*/ @QtUninvokable public final io.qt.bluetooth.QLowEnergyServiceData.@NonNull ServiceType type(){ return io.qt.bluetooth.QLowEnergyServiceData.ServiceType.resolve(type_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this))); } @QtUninvokable private native int type_native_constfct(long __this__nativeId); /** *

See QLowEnergyServiceData::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); /** * Constructor for internal use only. * @param p expected to be null. * @hidden */ @NativeAccess protected QLowEnergyServiceData(QPrivateConstructor p) { super(p); } /** *

See operator==(QLowEnergyServiceData,QLowEnergyServiceData)

*/ @Override @QtUninvokable public boolean equals(Object other) { if (other instanceof io.qt.bluetooth.QLowEnergyServiceData) { return equals((io.qt.bluetooth.QLowEnergyServiceData) other); } return false; } /** * Returns the objects's hash code computed by qHash(QLowEnergyServiceData). */ @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 QLowEnergyServiceData::QLowEnergyServiceData(QLowEnergyServiceData)

*/ @QtUninvokable @Override public QLowEnergyServiceData clone() { return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this)); } private static native QLowEnergyServiceData clone_native(long __this_nativeId); /** *

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)); } }