Dokit
Internal development documentation
Loading...
Searching...
No Matches
genericaccessservice_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 GenericAccessServicePrivate class.
7 */
8
9#ifndef QTPOKIT_GENERICACCESSSERVICE_P_H
10#define QTPOKIT_GENERICACCESSSERVICE_P_H
11
13
15
17
19{
20 Q_OBJECT
21
22public:
24 GenericAccessService * const q);
25
26 static quint16 parseAppearance(const QByteArray &value);
27
28protected:
29 void characteristicRead(const QLowEnergyCharacteristic &characteristic,
30 const QByteArray &value) override;
31 void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
32 const QByteArray &newValue) override;
33
34private:
35 Q_DECLARE_PUBLIC(GenericAccessService)
37 friend class TestGenericAccessService;
38};
39
41
42#endif // QTPOKIT_GENERICACCESSSERVICE_P_H
Declares the AbstractPokitServicePrivate class.
The AbstractPokitServicePrivate class provides private implementation for AbstractPokitService.
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 GenericAccessServicePrivate class provides private implementation for GenericAccessService.
The GenericAccessService class accesses the Generic Access service of Pokit devices.
Declares the GenericAccessService 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).