8#include <QtCore/qloggingcategory.h>
150 qCWarning(QT_BT) <<
"not adding invalid characteristic to service";
187 return a.d ==
b.d || (
189 &&
a.uuid() ==
b.uuid()
190 &&
a.includedServices() ==
b.includedServices()
191 &&
a.characteristics() ==
b.characteristics());
std::vector< ObjCStrongReference< CBMutableService > > services
The QLowEnergyCharacteristicData class is used to set up GATT service data. \inmodule QtBluetooth.
bool isValid() const
Returns true if and only if this characteristic is valid, that is, it has a non-null UUID.
The QLowEnergyServiceData class is used to set up GATT service data. \inmodule QtBluetooth.
void setType(ServiceType type)
Sets the type of this service to type.
QList< QLowEnergyCharacteristicData > characteristics() const
Returns the list of characteristics.
void setIncludedServices(const QList< QLowEnergyService * > &services)
Sets the list of included services to services.
void setCharacteristics(const QList< QLowEnergyCharacteristicData > &characteristics)
Sets the list of characteristics to characteristics.
void addCharacteristic(const QLowEnergyCharacteristicData &characteristic)
Adds characteristic to the list of characteristics, if it is valid.
~QLowEnergyServiceData()
Destroys this object.
QList< QLowEnergyService * > includedServices() const
Returns the list of included services.
QLowEnergyServiceData()
Creates a new invalid object of this class.
ServiceType
The type of GATT service.
bool isValid() const
Returns true if this service is has a non-null UUID.
void addIncludedService(QLowEnergyService *service)
Adds service to the list of included services.
ServiceType type() const
Returns the type of this service.
QBluetoothUuid uuid() const
Returns the UUID of this service.
QLowEnergyServiceData & operator=(const QLowEnergyServiceData &other)
Makes this object a copy of other and returns the new value of this object.
void setUuid(const QBluetoothUuid &uuid)
Sets the UUID of this service to 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.
#define qCWarning(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
QLowEnergyServiceDataPrivate()
QList< QLowEnergyService * > includedServices
QLowEnergyServiceData::ServiceType type
QList< QLowEnergyCharacteristicData > characteristics