Dokit
Native Qt library for Pokit devices
Loading...
Searching...
No Matches
pokitproducts.h File Reference

Declares the PokitProduct enumeration, and related helper functions. More...

#include "qtpokit_global.h"
#include <QBluetoothDeviceInfo>
#include <QFlags>
#include <QString>
Include dependency graph for pokitproducts.h:
This graph shows which files directly or indirectly include this file:

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.
 

Detailed Description

Declares the PokitProduct enumeration, and related helper functions.

Enumeration Type Documentation

◆ PokitProduct

enum class PokitProduct : quint8
strong

Pokit products known to, and supported by, the QtPokit library.

Enumerator
PokitMeter 

Pokit Meter.

PokitPro 

Pokit Pro.

Function Documentation

◆ isPokitProduct()

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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pokitProduct()

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.

See also
isPokitProduct
Here is the call graph for this function:
Here is the caller graph for this function: