io.qt.bluetooth.QLowEnergyAdvertisingParameters Maven / Gradle / Ivy
package io.qt.bluetooth;
import io.qt.*;
/**
* Represents the parameters used for Bluetooth Low Energy advertising
* Java wrapper for Qt class QLowEnergyAdvertisingParameters
*/
public class QLowEnergyAdvertisingParameters extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* Java wrapper for Qt enum QLowEnergyAdvertisingParameters::FilterPolicy
*/
public enum FilterPolicy implements QtEnumerator {
/**
* Representing QLowEnergyAdvertisingParameters:: IgnoreWhiteList
*/
IgnoreWhiteList(0),
/**
* Representing QLowEnergyAdvertisingParameters:: UseWhiteListForScanning
*/
UseWhiteListForScanning(1),
/**
* Representing QLowEnergyAdvertisingParameters:: UseWhiteListForConnecting
*/
UseWhiteListForConnecting(2),
/**
* Representing QLowEnergyAdvertisingParameters:: UseWhiteListForScanningAndConnecting
*/
UseWhiteListForScanningAndConnecting(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private FilterPolicy(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 FilterPolicy resolve(int value) {
switch (value) {
case 0: return IgnoreWhiteList;
case 1: return UseWhiteListForScanning;
case 2: return UseWhiteListForConnecting;
case 3: return UseWhiteListForScanningAndConnecting;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* Java wrapper for Qt enum QLowEnergyAdvertisingParameters::Mode
*/
public enum Mode implements QtEnumerator {
/**
* Representing QLowEnergyAdvertisingParameters:: AdvInd
*/
AdvInd(0),
/**
* Representing QLowEnergyAdvertisingParameters:: AdvScanInd
*/
AdvScanInd(2),
/**
* Representing QLowEnergyAdvertisingParameters:: AdvNonConnInd
*/
AdvNonConnInd(3);
static {
QtJambi_LibraryUtilities.initialize();
}
private Mode(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 Mode resolve(int value) {
switch (value) {
case 0: return AdvInd;
case 2: return AdvScanInd;
case 3: return AdvNonConnInd;
default: throw new QNoSuchEnumValueException(value);
}
}
private final int value;
}
/**
* QLowEnergyAdvertisingParameters::AddressInfo defines the elements of a white list
* Java wrapper for Qt class QLowEnergyAdvertisingParameters::AddressInfo
*/
public static class AddressInfo extends QtObject
implements java.lang.Cloneable
{
static {
QtJambi_LibraryUtilities.initialize();
}
/**
* See QLowEnergyAdvertisingParameters::AddressInfo:: AddressInfo()
*/
public AddressInfo(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(AddressInfo instance);
/**
*
*/
public AddressInfo(io.qt.bluetooth.@NonNull QBluetoothAddress addr, io.qt.bluetooth.QLowEnergyController.@NonNull RemoteAddressType t){
super((QPrivateConstructor)null);
initialize_native(this, addr, t);
}
private native static void initialize_native(AddressInfo instance, io.qt.bluetooth.QBluetoothAddress addr, io.qt.bluetooth.QLowEnergyController.RemoteAddressType t);
/**
* See operator==(QLowEnergyAdvertisingParameters::AddressInfo, QLowEnergyAdvertisingParameters::AddressInfo)
*/
@QtUninvokable
public final boolean equals(io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull AddressInfo ai2){
return equals_native_cref_QLowEnergyAdvertisingParameters_AddressInfo(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(ai2));
}
@QtUninvokable
private native boolean equals_native_cref_QLowEnergyAdvertisingParameters_AddressInfo(long __this__nativeId, long ai2);
/**
* See QLowEnergyAdvertisingParameters::AddressInfo:: address
*/
@QtUninvokable
public final void setAddress(io.qt.bluetooth.@NonNull QBluetoothAddress address){
setAddress_native_cref_QBluetoothAddress(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(address));
}
@QtUninvokable
private native void setAddress_native_cref_QBluetoothAddress(long __this__nativeId, long address);
/**
* See QLowEnergyAdvertisingParameters::AddressInfo:: address
*/
@QtUninvokable
public final io.qt.bluetooth.@NonNull QBluetoothAddress address(){
return address_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.bluetooth.QBluetoothAddress address_native(long __this__nativeId);
/**
* See QLowEnergyAdvertisingParameters::AddressInfo:: type
*/
@QtUninvokable
public final void setType(io.qt.bluetooth.QLowEnergyController.@NonNull RemoteAddressType type){
setType_native_cref_QLowEnergyController_RemoteAddressType(QtJambi_LibraryUtilities.internal.nativeId(this), type.value());
}
@QtUninvokable
private native void setType_native_cref_QLowEnergyController_RemoteAddressType(long __this__nativeId, int type);
/**
* See QLowEnergyAdvertisingParameters::AddressInfo:: type
*/
@QtUninvokable
public final io.qt.bluetooth.QLowEnergyController.@NonNull RemoteAddressType type(){
return io.qt.bluetooth.QLowEnergyController.RemoteAddressType.resolve(type_native(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int type_native(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected AddressInfo(QPrivateConstructor p) { super(p); }
/**
* See operator==(QLowEnergyAdvertisingParameters::AddressInfo, QLowEnergyAdvertisingParameters::AddressInfo)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.bluetooth.QLowEnergyAdvertisingParameters.AddressInfo) {
return equals((io.qt.bluetooth.QLowEnergyAdvertisingParameters.AddressInfo) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QLowEnergyAdvertisingParameters::AddressInfo)
.
*/
@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 AddressInfo clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native AddressInfo clone_native(long __this_nativeId);
/**
* @hidden
* Kotlin property getter. In Java use {@link #address()} instead.
*/
@QtUninvokable
public final io.qt.bluetooth.@NonNull QBluetoothAddress getAddress() {
return address();
}
/**
* @hidden
* Kotlin property getter. In Java use {@link #type()} instead.
*/
@QtUninvokable
public final io.qt.bluetooth.QLowEnergyController.@NonNull RemoteAddressType getType() {
return type();
}
}
/**
* See QLowEnergyAdvertisingParameters:: QLowEnergyAdvertisingParameters()
*/
public QLowEnergyAdvertisingParameters(){
super((QPrivateConstructor)null);
initialize_native(this);
}
private native static void initialize_native(QLowEnergyAdvertisingParameters instance);
/**
* See QLowEnergyAdvertisingParameters:: QLowEnergyAdvertisingParameters(QLowEnergyAdvertisingParameters)
*/
public QLowEnergyAdvertisingParameters(io.qt.bluetooth.@NonNull QLowEnergyAdvertisingParameters other){
super((QPrivateConstructor)null);
initialize_native(this, other);
}
private native static void initialize_native(QLowEnergyAdvertisingParameters instance, io.qt.bluetooth.QLowEnergyAdvertisingParameters other);
/**
* See QLowEnergyAdvertisingParameters:: filterPolicy()const
*/
@QtUninvokable
public final io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull FilterPolicy filterPolicy(){
return io.qt.bluetooth.QLowEnergyAdvertisingParameters.FilterPolicy.resolve(filterPolicy_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int filterPolicy_native_constfct(long __this__nativeId);
/**
* See QLowEnergyAdvertisingParameters:: maximumInterval()const
*/
@QtUninvokable
public final int maximumInterval(){
return maximumInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int maximumInterval_native_constfct(long __this__nativeId);
/**
* See QLowEnergyAdvertisingParameters:: minimumInterval()const
*/
@QtUninvokable
public final int minimumInterval(){
return minimumInterval_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native int minimumInterval_native_constfct(long __this__nativeId);
/**
* See QLowEnergyAdvertisingParameters:: mode()const
*/
@QtUninvokable
public final io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull Mode mode(){
return io.qt.bluetooth.QLowEnergyAdvertisingParameters.Mode.resolve(mode_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this)));
}
@QtUninvokable
private native int mode_native_constfct(long __this__nativeId);
/**
* See QLowEnergyAdvertisingParameters:: operator=(QLowEnergyAdvertisingParameters)
*/
@QtUninvokable
public final void assign(io.qt.bluetooth.@NonNull QLowEnergyAdvertisingParameters other){
assign_native_cref_QLowEnergyAdvertisingParameters(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void assign_native_cref_QLowEnergyAdvertisingParameters(long __this__nativeId, long other);
/**
* See operator==(QLowEnergyAdvertisingParameters, QLowEnergyAdvertisingParameters)
*/
@QtUninvokable
public final boolean equals(io.qt.bluetooth.@NonNull QLowEnergyAdvertisingParameters p2){
return equals_native_cref_QLowEnergyAdvertisingParameters(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(p2));
}
@QtUninvokable
private native boolean equals_native_cref_QLowEnergyAdvertisingParameters(long __this__nativeId, long p2);
/**
* See QLowEnergyAdvertisingParameters:: setInterval(quint16, quint16)
*/
@QtUninvokable
public final void setInterval(short minimum, short maximum){
setInterval_native_quint16_quint16(QtJambi_LibraryUtilities.internal.nativeId(this), minimum, maximum);
}
@QtUninvokable
private native void setInterval_native_quint16_quint16(long __this__nativeId, short minimum, short maximum);
/**
* See QLowEnergyAdvertisingParameters:: setMode(QLowEnergyAdvertisingParameters::Mode)
*/
@QtUninvokable
public final void setMode(io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull Mode mode){
setMode_native_QLowEnergyAdvertisingParameters_Mode(QtJambi_LibraryUtilities.internal.nativeId(this), mode.value());
}
@QtUninvokable
private native void setMode_native_QLowEnergyAdvertisingParameters_Mode(long __this__nativeId, int mode);
/**
*
*/
@QtUninvokable
public final void setWhiteList(java.util.@NonNull Collection extends io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull AddressInfo> whiteList, io.qt.bluetooth.QLowEnergyAdvertisingParameters.@NonNull FilterPolicy policy){
setWhiteList_native_cref_QList_QLowEnergyAdvertisingParameters_FilterPolicy(QtJambi_LibraryUtilities.internal.nativeId(this), whiteList, policy.value());
}
@QtUninvokable
private native void setWhiteList_native_cref_QList_QLowEnergyAdvertisingParameters_FilterPolicy(long __this__nativeId, java.util.Collection extends io.qt.bluetooth.QLowEnergyAdvertisingParameters.AddressInfo> whiteList, int policy);
/**
* See QLowEnergyAdvertisingParameters:: swap(QLowEnergyAdvertisingParameters&)
*/
@QtUninvokable
public final void swap(io.qt.bluetooth.@StrictNonNull QLowEnergyAdvertisingParameters other){
java.util.Objects.requireNonNull(other, "Argument 'other': null not expected.");
swap_native_ref_QLowEnergyAdvertisingParameters(QtJambi_LibraryUtilities.internal.nativeId(this), QtJambi_LibraryUtilities.internal.checkedNativeId(other));
}
@QtUninvokable
private native void swap_native_ref_QLowEnergyAdvertisingParameters(long __this__nativeId, long other);
/**
* See QLowEnergyAdvertisingParameters:: whiteList()const
*/
@QtUninvokable
public final io.qt.core.@NonNull QList whiteList(){
return whiteList_native_constfct(QtJambi_LibraryUtilities.internal.nativeId(this));
}
@QtUninvokable
private native io.qt.core.QList whiteList_native_constfct(long __this__nativeId);
/**
* Constructor for internal use only.
* @param p expected to be null
.
* @hidden
*/
@NativeAccess
protected QLowEnergyAdvertisingParameters(QPrivateConstructor p) { super(p); }
/**
* See operator==(QLowEnergyAdvertisingParameters, QLowEnergyAdvertisingParameters)
*/
@Override
@QtUninvokable
public boolean equals(Object other) {
if (other instanceof io.qt.bluetooth.QLowEnergyAdvertisingParameters) {
return equals((io.qt.bluetooth.QLowEnergyAdvertisingParameters) other);
}
return false;
}
/**
* Returns the objects's hash code computed by qHash(QLowEnergyAdvertisingParameters)
.
*/
@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 QLowEnergyAdvertisingParameters clone() {
return clone_native(QtJambi_LibraryUtilities.internal.nativeId(this));
}
private static native QLowEnergyAdvertisingParameters clone_native(long __this_nativeId);
}