Dokit
Internal development documentation
Loading...
Searching...
No Matches
deviceinfoservice_p.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2022-2025 Paul Colby <git@colby.id.au>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4/*!
5 * \file
6 * Declares the DeviceInfoServicePrivate class.
7 */
8
9#ifndef QTPOKIT_INFOSERVICE_P_H
10#define QTPOKIT_INFOSERVICE_P_H
11
13
15
17
19{
21
22public:
24
25protected:
26 void characteristicRead(const QLowEnergyCharacteristic &characteristic,
27 const QByteArray &value) override;
28
29private:
30 Q_DECLARE_PUBLIC(DeviceInfoService)
33};
34
36
37#endif // QTPOKIT_INFOSERVICE_P_H
Declares the AbstractPokitServicePrivate class.
AbstractPokitServicePrivate(const QBluetoothUuid &serviceUuid, QLowEnergyController *controller, AbstractPokitService *const q)
virtual void characteristicRead(const QLowEnergyCharacteristic &characteristic, const QByteArray &value)
Handles QLowEnergyService::characteristicRead events.
QLowEnergyController * controller
BLE controller to fetch the service from.
DeviceInfoServicePrivate(QLowEnergyController *controller, DeviceInfoService *const q)
The DeviceInfoService class accesses the Device Info service of Pokit devices.
Declares the DeviceInfoService class.
Q_DISABLE_COPY(Class)
Q_OBJECTQ_OBJECT
#define QTPOKIT_BEFRIEND_TEST(Class)
Macro for befriending a related unit test class, but only when QT_TESTLIB_LIB is defined.
#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).