4#ifndef QLOWENERGYSERVICE_H
5#define QLOWENERGYSERVICE_H
7#include <QtBluetooth/QBluetoothAddress>
8#include <QtBluetooth/QBluetoothUuid>
9#include <QtBluetooth/QLowEnergyCharacteristic>
19 PrimaryService = 0x0001,
20 IncludedService = 0x0002
43#if QT_DEPRECATED_SINCE(6, 2)
47 "DiscoveryRequired was renamed to RemoteService.")
51 "DiscoveringService was renamed to RemoteServiceDiscovering.")
52 = RemoteServiceDiscovering,
55 "ServiceDiscovered was renamed to RemoteServiceDiscovered.")
56 = RemoteServiceDiscovered,
68 WriteWithResponse = 0,
78 QLowEnergyService::ServiceTypes
type()
const;
88 ServiceError
error()
const;
94 WriteMode
mode = WriteWithResponse);
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 stateChanged(QLowEnergyService::ServiceState newState)
This signal is emitted when the service's state changes.
void errorOccurred(QLowEnergyService::ServiceError error)
This signal is emitted when an error occurrs.
DiscoveryMode
This enum lists service discovery modes.
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.
ServiceError
This enum describes all possible error conditions during the service's existence.
@ CharacteristicWriteError
@ CharacteristicReadError
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.
ServiceType
This enum describes the type of the service.
QScopedPointer< QObjectData > d_ptr
\macro QT_RESTRICTED_CAST_FROM_ASCII
void newState(QList< State > &states, const char *token, const char *lexem, bool pre)
Combined button and popup list for selecting options.
#define Q_DECL_ENUMERATOR_DEPRECATED_X(x)
DBusConnection const char DBusError * error
EGLOutputLayerEXT EGLint EGLAttrib value
[5]
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
static bool contains(const QJsonArray &haystack, unsigned needle)
QFileInfo info(fileName)
[8]
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent