9#ifndef QTPOKIT_ABSTRACTPOKITSERVICE_P_H
10#define QTPOKIT_ABSTRACTPOKITSERVICE_P_H
15#include <QLoggingCategory>
16#include <QLowEnergyService>
34 bool autoDiscover {
true };
43 bool createServiceObject();
48 bool disableCharacteristicNotificatons(
const QBluetoothUuid &uuid);
50 static bool checkSize(
const QString &label,
const QByteArray &data,
const int minSize,
51 const int maxSize=-1,
const bool failOnMax=
false);
59 void discoveryFinished();
74 friend class TestAbstractPokitService;
The AbstractPokitServicePrivate class provides private implementation for AbstractPokitService.
static Q_LOGGING_CATEGORY(lc, "pokit.ble.service", QtInfoMsg)
Logging category.
QBluetoothUuid serviceUuid
UUIDs for service.
AbstractPokitService * q_ptr
Internal q-pointer.
std::optional< PokitProduct > pokitProduct
The Pokit product controller is connected to.
The AbstractPokitService class provides a common base for Pokit services classes.
Declares the PokitProduct enumeration, and related helper functions.
Global QtPokit library macros.
#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).