8#include <QtCore/qbytearray.h>
9#include <QtCore/qloggingcategory.h>
10#include <QtCore/qdebug.h>
22 , minimumValueLength(0)
23 , maximumValueLength(INT_MAX)
109 qCWarning(QT_BT) <<
"Both NTF and IND properties set for characteristic" << d->
uuid;
140 qCWarning(QT_BT) <<
"not adding invalid descriptor to characteristic";
232 || (
a.uuid() ==
b.uuid() &&
a.properties() ==
b.properties()
233 &&
a.descriptors() ==
b.descriptors() &&
a.value() ==
b.value()
234 &&
a.readConstraints() ==
b.readConstraints()
235 &&
a.writeConstraints() ==
b.writeConstraints()
236 &&
a.minimumValueLength() ==
b.maximumValueLength()
237 &&
a.maximumValueLength() ==
b.maximumValueLength());
The QLowEnergyCharacteristicData class is used to set up GATT service data. \inmodule QtBluetooth.
QBluetoothUuid uuid() const
Returns the UUID of this characteristic.
void setWriteConstraints(QBluetooth::AttAccessConstraints constraints)
Specifies that clients need to fulfill constraints to write the value of this characteristic.
void setDescriptors(const QList< QLowEnergyDescriptorData > &descriptors)
Sets the descriptors of this characteristic to descriptors.
bool isValid() const
Returns true if and only if this characteristic is valid, that is, it has a non-null UUID.
void setProperties(QLowEnergyCharacteristic::PropertyTypes properties)
Sets the properties of this characteristic to properties.
QBluetooth::AttAccessConstraints writeConstraints() const
Returns the constraints needed for a client to write the value of this characteristic.
int minimumValueLength() const
Returns the minimum length in bytes that the value of this characteristic can have.
QLowEnergyCharacteristic::PropertyTypes properties() const
Returns the properties of this characteristic.
QLowEnergyCharacteristicData & operator=(const QLowEnergyCharacteristicData &other)
Makes this object a copy of other and returns the new value of this object.
QList< QLowEnergyDescriptorData > descriptors() const
Returns the descriptors of this characteristic.
void addDescriptor(const QLowEnergyDescriptorData &descriptor)
Adds descriptor to the list of descriptors of this characteristic, if it is valid.
int maximumValueLength() const
Returns the maximum length in bytes that the value of this characteristic can have.
QByteArray value() const
Returns the value of this characteristic.
QBluetooth::AttAccessConstraints readConstraints() const
Returns the constraints needed for a client to read the value of this characteristic.
~QLowEnergyCharacteristicData()
Destroys this object.
QLowEnergyCharacteristicData()
Creates a new invalid object of this class.
void setUuid(const QBluetoothUuid &uuid)
Sets the UUID of this characteristic to uuid.
void setValueLength(int minimum, int maximum)
Specifies minimum and maximum to be the smallest and largest length, respectively,...
void setReadConstraints(QBluetooth::AttAccessConstraints constraints)
Specifies that clients need to fulfill constraints to read the value of this characteristic.
void setValue(const QByteArray &value)
Sets the value of this characteristic to value.
The QLowEnergyDescriptorData class is used to create GATT service data. \inmodule QtBluetooth.
bool isValid() const
Returns true if and only if this object has a non-null UUID.
bool isNull() const noexcept
Returns true if this is the null UUID {00000000-0000-0000-0000-000000000000}; otherwise returns false...
Combined button and popup list for selecting options.
static const QCssKnownValue properties[NumProperties - 1]
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define qCWarning(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
constexpr const T & qMax(const T &a, const T &b)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
QBluetooth::AttAccessConstraints writeConstraints
QBluetooth::AttAccessConstraints readConstraints
QList< QLowEnergyDescriptorData > descriptors
QLowEnergyCharacteristic::PropertyTypes properties
QLowEnergyCharacteristicDataPrivate()