Dokit
Native Qt library for Pokit devices
|
Declares the PokitProduct enumeration, and related helper functions. More...
Go to the source code of this file.
Enumerations | |
enum class | PokitProduct : quint8 { PokitMeter = 0 , PokitPro = 1 } |
Pokit products known to, and supported by, the QtPokit library. More... | |
Functions | |
QTPOKIT_EXPORT QString | toString (const PokitProduct product) |
Returns product as user-friendly string. | |
QTPOKIT_EXPORT bool | isPokitProduct (const QBluetoothDeviceInfo &info) |
Returns true if info describes a Pokit device. | |
QTPOKIT_EXPORT PokitProduct | pokitProduct (const QBluetoothDeviceInfo &info) |
Returns the PokitProduct corresponding the Bluetotoh device info. | |
Declares the PokitProduct enumeration, and related helper functions.
|
strong |
QTPOKIT_EXPORT 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.
QTPOKIT_EXPORT PokitProduct pokitProduct | ( | const QBluetoothDeviceInfo & | info | ) |
Returns the PokitProduct corresponding the Bluetotoh device info.
If info is not a Pokit device, then result is undefined.