9#ifndef QTPOKIT_GENERICACCESSSERVICE_H
10#define QTPOKIT_GENERICACCESSSERVICE_H
14#include <QBluetoothAddress>
15#include <QBluetoothUuid>
16#include <QVersionNumber>
28 static inline const QBluetoothUuid serviceUuid { QBluetoothUuid::ServiceClassUuid::GenericAccess };
33 static inline const QBluetoothUuid deviceName { QBluetoothUuid::CharacteristicType::DeviceName };
36 static inline const QBluetoothUuid appearance { QBluetoothUuid::CharacteristicType::Appearance };
43 bool readAppearanceCharacteristic();
44 bool readDeviceNameCharacteristic();
47 quint16 appearance()
const;
51 bool setDeviceName(
const QString &name);
66 friend class TestGenericAccessService;
Declares the AbstractPokitService class.
The AbstractPokitService class provides a common base for Pokit services classes.
virtual bool readCharacteristics()=0
Read all characteristics.
The GenericAccessServicePrivate class provides private implementation for GenericAccessService.
The GenericAccessService class accesses the Generic Access service of Pokit devices.
void deviceNameWritten()
This signal is emitted when the Device Name characteristic has been written successfully.
void deviceNameRead(const QString &deviceName)
This signal is emitted when the Device Name characteristic has been read successfully.
void appearanceRead(const quint16 appearance)
This signal is emitted when the Appearance characteristic has been read successfully.
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).
Characteristics available via the Generic Access service.