Dokit
Internal development documentation
Loading...
Searching...
No Matches
calibrationservice_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 CalibrationServicePrivate class.
7 */
8
9#ifndef QTPOKIT_CALIBRATIONSERVICE_P_H
10#define QTPOKIT_CALIBRATIONSERVICE_P_H
11
13
15
17
19{
21
22public:
24
25 static QByteArray encodeTemperature(const float value);
26
27protected:
28 void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
29 const QByteArray &newValue) override;
30
31private:
32 Q_DECLARE_PUBLIC(CalibrationService)
35};
36
38
39#endif // QTPOKIT_CALIBRATIONSERVICE_P_H
Declares the AbstractPokitServicePrivate class.
Declares the CalibrationService class.
AbstractPokitServicePrivate(const QBluetoothUuid &serviceUuid, QLowEnergyController *controller, AbstractPokitService *const q)
virtual void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
Handles QLowEnergyService::characteristicWritten events.
QLowEnergyController * controller
BLE controller to fetch the service from.
CalibrationServicePrivate(QLowEnergyController *controller, CalibrationService *const q)
static QByteArray encodeTemperature(const float value)
Returns value in a format Pokit devices expect.
The CalibrationService class accesses the Calibrartion service of Pokit devices.
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).