9#ifndef QTPOKIT_INFOSERVICE_H
10#define QTPOKIT_INFOSERVICE_H
14#include <QBluetoothAddress>
15#include <QBluetoothUuid>
16#include <QVersionNumber>
18QTPOKIT_BEGIN_NAMESPACE
20class DeviceInfoServicePrivate;
41 bool readFirmwareRevisionCharacteristic();
42 bool readHardwareRevisionCharacteristic();
43 bool readManufacturerCharacteristics();
44 bool readModelNumberCharacteristic();
45 bool readSoftwareRevisionCharacteristic();
50 QString hardwareRevision()
const;
51 QString firmwareRevision()
const;
52 QString softwareRevision()
const;
69 friend class TestDeviceInfoService;
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 DeviceInfoService class accesses the Device Info service of Pokit devices.
Definition deviceinfoservice.h:23
void hardwareRevisionRead(const QString &revision)
This signal is emitted when the Hardware Revision characteristic has been read successfully.
static const QBluetoothUuid serviceUuid
UUID of the "Device Info" service.
Definition deviceinfoservice.h:27
void firmwareRevisionRead(const QString &revision)
This signal is emitted when the Firmware Revision characteristic has been read successfully.
void softwareRevisionRead(const QString &revision)
This signal is emitted when the Software Revision characteristic has been read successfully.
void modelNumberRead(const QString &model)
This signal is emitted when the Model Number characteristic has been read successfully.
void manufacturerRead(const QString &name)
This signal is emitted when the Manufacturer Name characteristic has been read successfully.
Characteristics available via the Device Info service.
Definition deviceinfoservice.h:29
static const QBluetoothUuid manufacturerName
UUID of the Device Info service's xxx characterstic.
Definition deviceinfoservice.h:30
static const QBluetoothUuid hardwareRevision
UUID of the Device Info service's xxx characterstic.
Definition deviceinfoservice.h:32
static const QBluetoothUuid softwareRevision
UUID of the Device Info service's xxx characterstic.
Definition deviceinfoservice.h:34
static const QBluetoothUuid firmwareRevision
UUID of the Device Info service's xxx characterstic.
Definition deviceinfoservice.h:33
static const QBluetoothUuid modelNumber
UUID of the Device Info service's xxx characterstic.
Definition deviceinfoservice.h:31