5#include <QtCore/QCoreApplication> 
    6#include <QtCore/QPointer> 
    7#include <QtBluetooth/QLowEnergyService> 
  375    qRegisterMetaType<QLowEnergyService::ServiceState>();
 
  376    qRegisterMetaType<QLowEnergyService::ServiceError>();
 
  377    qRegisterMetaType<QLowEnergyService::ServiceType>();
 
  378    qRegisterMetaType<QLowEnergyService::WriteMode>();
 
  487        if (charDetails.
uuid == uuid)
 
  507    std::sort(handles.
begin(), handles.
end());
 
  544           qApp->translate(
"QBluetoothServiceDiscoveryAgent", 
"Unknown Service") :
 
  590    d->controller->discoverServiceDetails(
d->uuid, 
mode);
 
  720    if (
d->controller == 
nullptr 
  740    if (descriptor.d_ptr.
isNull() || !descriptor.data)
 
  747    if (d_ptr == descriptor.d_ptr
 
  749        && d_ptr->
characteristicList[charHandle].descriptorList.contains(descriptor.handle()))
 
  784    d->controller->readDescriptor(descriptor.d_ptr,
 
  785                                  descriptor.characteristicHandle(),
 
  786                                  descriptor.handle());
 
  821    if (
d->controller == 
nullptr 
  840        return controller->setNotifyValue(descriptor.d_ptr, descriptor.characteristicHandle(), newValue);
 
  844    d->controller->writeDescriptor(descriptor.d_ptr,
 
  845                                   descriptor.characteristicHandle(),
 
  852#include "moc_qlowenergyservice.cpp" 
quint16 toUInt16(bool *ok=nullptr) const
Returns the 16 bit representation of this UUID.
ServiceClassUuid
This enum is a convienience type for Bluetooth service class and profile UUIDs.
@ ClientCharacteristicConfiguration
static QString serviceClassToString(ServiceClassUuid uuid)
Returns a human-readable and translated name for the given service class represented by uuid.
friend class const_iterator
void append(parameter_type t)
QBluetoothUuid uuid() const
Returns the UUID of this descriptor if \l isValid() returns true; otherwise a \l {QUuid::isNull()}{nu...
void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
QList< QBluetoothUuid > includedServices
void characteristicChanged(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
void characteristicRead(const QLowEnergyCharacteristic &info, const QByteArray &value)
void descriptorWritten(const QLowEnergyDescriptor &descriptor, const QByteArray &newValue)
void descriptorRead(const QLowEnergyDescriptor &info, const QByteArray &value)
QLowEnergyService::ServiceError lastError
QLowEnergyService::ServiceTypes type
void stateChanged(QLowEnergyService::ServiceState newState)
void errorOccurred(QLowEnergyService::ServiceError error)
QLowEnergyService::ServiceState state
QHash< QLowEnergyHandle, CharData > characteristicList
void characteristicChanged(const QLowEnergyCharacteristic &info, const QByteArray &value)
If the associated controller object is in the \l {QLowEnergyController::CentralRole}{central} role,...
void descriptorRead(const QLowEnergyDescriptor &info, const QByteArray &value)
This signal is emitted when the read request for descriptor successfully returned its value.
void readDescriptor(const QLowEnergyDescriptor &descriptor)
Reads the value of descriptor.
void stateChanged(QLowEnergyService::ServiceState newState)
This signal is emitted when the service's state changes.
void readCharacteristic(const QLowEnergyCharacteristic &characteristic)
Reads the value of characteristic.
void errorOccurred(QLowEnergyService::ServiceError error)
This signal is emitted when an error occurrs.
QLowEnergyCharacteristic characteristic(const QBluetoothUuid &uuid) const
Returns the matching characteristic for uuid; otherwise an invalid characteristic.
DiscoveryMode
This enum lists service discovery modes.
ServiceError error() const
Returns the last occurred error or \l NoError.
void writeDescriptor(const QLowEnergyDescriptor &descriptor, const QByteArray &newValue)
Writes newValue as value for descriptor.
QString serviceName() const
Returns the name of the service; otherwise an empty string.
QLowEnergyService::ServiceTypes type() const
Returns the type of the service.
void characteristicRead(const QLowEnergyCharacteristic &info, const QByteArray &value)
This signal is emitted when the read request for characteristic successfully returned its value.
void characteristicWritten(const QLowEnergyCharacteristic &info, const QByteArray &value)
This signal is emitted when the value of characteristic is successfully changed to newValue.
QBluetoothUuid serviceUuid() const
Returns the UUID of the service; otherwise a null UUID.
ServiceError
This enum describes all possible error conditions during the service's existence.
QList< QBluetoothUuid > includedServices() const
Returns the UUIDs of all services which are included by the current service.
ServiceState
This enum describes the \l state() of the service object.
@ RemoteServiceDiscovered
@ RemoteServiceDiscovering
WriteMode
This enum describes the mode to be used when writing a characteristic value.
void descriptorWritten(const QLowEnergyDescriptor &info, const QByteArray &value)
This signal is emitted when the value of descriptor is successfully changed to newValue.
bool contains(const QLowEnergyCharacteristic &characteristic) const
Returns true if characteristic belongs to this service; otherwise false.
~QLowEnergyService()
Destroys the \l QLowEnergyService instance.
void writeCharacteristic(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue, WriteMode mode=WriteWithResponse)
Writes newValue as value for the characteristic.
QLowEnergyService::ServiceState state() const
Returns the current state of the service.
void discoverDetails(DiscoveryMode mode=FullDiscovery)
Initiates discovery of the service's included services, characteristics, and their associated descrip...
ServiceType
This enum describes the type of the service.
QList< QLowEnergyCharacteristic > characteristics() const
Returns all characteristics associated with this QLowEnergyService instance.
bool isNull() const noexcept
Returns true if this object refers to \nullptr.
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
GLuint64 GLenum void * handle
#define QStringLiteral(str)
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent