Dokit
Native Qt library for Pokit devices
|
Defines the PokitProduct helper functions. More...
#include <qtpokit/pokitmeter.h>
#include <qtpokit/pokitpro.h>
#include <qtpokit/pokitproducts.h>
#include <qtpokit/statusservice.h>
#include "pokitproducts_p.h"
#include <QCoreApplication>
#include <QLoggingCategory>
Functions | |
QTPOKIT_BEGIN_NAMESPACE QString | toString (const PokitProduct product) |
Returns product as user-friendly string. | |
bool | isPokitProduct (const QBluetoothDeviceInfo &info) |
Returns true if info describes a Pokit device. | |
PokitProduct | pokitProduct (const QBluetoothDeviceInfo &info) |
Returns the PokitProduct corresponding the Bluetotoh device info. | |
Defines the PokitProduct helper functions.
bool isPokitProduct | ( | const QBluetoothDeviceInfo & | info | ) |
Returns true
if info describes a Pokit device.
Currently, this is based on whether or not info's service UUIDs includes a known Pokit Status service, but this test criteria might be swapped for something else sometime.
PokitProduct pokitProduct | ( | const QBluetoothDeviceInfo & | info | ) |
Returns the PokitProduct corresponding the Bluetotoh device info.
If info is not a Pokit device, then result is undefined.