9#ifndef QTPOKIT_GENERICACCESSSERVICE_H
10#define QTPOKIT_GENERICACCESSSERVICE_H
14#include <QBluetoothAddress>
15#include <QBluetoothUuid>
16#include <QVersionNumber>
18QTPOKIT_BEGIN_NAMESPACE
20class GenericAccessServicePrivate;
38 bool readAppearanceCharacteristic();
39 bool readDeviceNameCharacteristic();
42 quint16 appearance()
const;
46 bool setDeviceName(
const QString &name);
61 friend class TestGenericAccessService;
Declares the AbstractPokitService class.
The AbstractPokitService class provides a common base for Pokit services classes.
Definition abstractpokitservice.h:25
virtual bool readCharacteristics()=0
Read all characteristics.
The GenericAccessService class accesses the Generic Access service of Pokit devices.
Definition genericaccessservice.h:23
static const QBluetoothUuid serviceUuid
UUID of the "Generic Access" service.
Definition genericaccessservice.h:27
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.
Characteristics available via the Generic Access service.
Definition genericaccessservice.h:29
static const QBluetoothUuid deviceName
UUID of the Generic Access service's Device Name characterstic.
Definition genericaccessservice.h:30
static const QBluetoothUuid appearance
UUID of the Generic Access service's Appearance characterstic.
Definition genericaccessservice.h:31