Dokit
Internal development documentation
Loading...
Searching...
No Matches
dsoservice_p.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2022-2023 Paul Colby <git@colby.id.au>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4/*!
5 * \file
6 * Declares the DsoServicePrivate class.
7 */
8
9#ifndef QTPOKIT_DSOSERVICE_P_H
10#define QTPOKIT_DSOSERVICE_P_H
11
12#include <qtpokit/dsoservice.h>
13
15
17
19{
20 Q_OBJECT
21
22public:
23 explicit DsoServicePrivate(QLowEnergyController * controller, DsoService * const q);
24
25 static QByteArray encodeSettings(const DsoService::Settings &settings);
26
27 static DsoService::Metadata parseMetadata(const QByteArray &value);
28 static DsoService::Samples parseSamples(const QByteArray &value);
29
30protected:
31 void characteristicRead(const QLowEnergyCharacteristic &characteristic,
32 const QByteArray &value) override;
33 void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
34 const QByteArray &newValue) override;
35 void characteristicChanged(const QLowEnergyCharacteristic &characteristic,
36 const QByteArray &newValue) override;
37
38private:
39 Q_DECLARE_PUBLIC(DsoService)
41 friend class TestDsoService;
42};
43
45
46#endif // QTPOKIT_DSOSERVICE_P_H
Declares the AbstractPokitServicePrivate class.
The AbstractPokitServicePrivate class provides private implementation for AbstractPokitService.
virtual void characteristicChanged(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
Handles QLowEnergyService::characteristicChanged events.
virtual void characteristicRead(const QLowEnergyCharacteristic &characteristic, const QByteArray &value)
Handles QLowEnergyService::characteristicRead events.
virtual void characteristicWritten(const QLowEnergyCharacteristic &characteristic, const QByteArray &newValue)
Handles QLowEnergyService::characteristicWritten events.
The DsoServicePrivate class provides private implementation for DsoService.
The DsoService class accesses the DSO (Digital Storage Oscilloscope) service of Pokit devices.
Definition dsoservice.h:24
Declares the DsoService class.
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).
Attributes included in the Metadata characterstic.
Definition dsoservice.h:84
Attributes included in the Settings characterstic.
Definition dsoservice.h:67