Dokit
Internal development documentation
Loading...
Searching...
No Matches
calibrationservice_p.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2022-2024 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{
20 Q_OBJECT
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)
34 friend class TestCalibrationService;
35};
36
38
39#endif // QTPOKIT_CALIBRATIONSERVICE_P_H
Declares the AbstractPokitServicePrivate class.
Declares the CalibrationService class.
The AbstractPokitServicePrivate class provides private implementation for AbstractPokitService.
virtual void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
Handles QLowEnergyService::characteristicWritten events.
The CalibrationServicePrivate class provides private implementation for CalibrationService.
The CalibrationService class accesses the Calibrartion service of Pokit devices.
Q_DISABLE_COPY(Class)
#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).