9#ifndef QTPOKIT_ABSTRACTPOKITSERVICE_H
10#define QTPOKIT_ABSTRACTPOKITSERVICE_H
15#include <QLowEnergyService>
22QTPOKIT_BEGIN_NAMESPACE
24class AbstractPokitServicePrivate;
26class QTPOKIT_EXPORT AbstractPokitService :
public QObject
31 AbstractPokitService() =
delete;
32 virtual ~AbstractPokitService();
51 AbstractPokitServicePrivate * d_ptr;
52 AbstractPokitService(AbstractPokitServicePrivate *
const d,
QObject *
const parent);
56 Q_DECLARE_PRIVATE(AbstractPokitService)
58 QTPOKIT_BEFRIEND_TEST(AbstractPokitService)
bool autoDiscover() const
Returns true if autodiscovery of services and service details is enabled, false otherwise.
Definition abstractpokitservice.cpp:60
QLowEnergyService * service()
Returns a non-const pointer to the internal service object, if any.
Definition abstractpokitservice.cpp:119
void setAutoDiscover(const bool discover=true)
If discover is true, autodiscovery will be attempted.
Definition abstractpokitservice.cpp:75
void serviceErrorOccurred(QLowEnergyService::ServiceError newError)
This signal is emitted whenever an error occurs on the underlying QLowEnergyService.
void setPokitProduct(const PokitProduct product)
Sets the current Pokit product.
Definition abstractpokitservice.cpp:110
virtual bool readCharacteristics()=0
Read all characteristics.
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:61
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
Definition pokitproducts.h:21
QObject * parent() const const
Global QtPokit library macros.