9#ifndef QTPOKIT_ABSTRACTPOKITSERVICE_H
10#define QTPOKIT_ABSTRACTPOKITSERVICE_H
15#include <QLowEnergyService>
20QTPOKIT_BEGIN_NAMESPACE
22class AbstractPokitServicePrivate;
34 bool autoDiscover()
const;
35 void setAutoDiscover(
const bool discover =
true);
49 AbstractPokitServicePrivate * d_ptr;
56 friend class TestAbstractPokitService;
The AbstractPokitService class provides a common base for Pokit services classes.
Definition abstractpokitservice.h:25
virtual bool readCharacteristics()=0
Read all characteristics.
void serviceErrorOccurred(QLowEnergyService::ServiceError newError)
This signal is emitted whenever an error occurs on the underlying QLowEnergyService.
void serviceDetailsDiscovered()
This signal is emitted when the Pokit service details have been discovered.
Declares the PokitProduct enumeration, and related helper functions.
QTPOKIT_EXPORT PokitProduct pokitProduct(const QBluetoothDeviceInfo &info)
Returns the PokitProduct corresponding the Bluetotoh device info.
Definition pokitproducts.cpp:55
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
Definition pokitproducts.h:21
Global QtPokit library macros.