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

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>
Include dependency graph for pokitproducts.cpp:

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.
 

Detailed Description

Defines the PokitProduct helper functions.

Function Documentation

◆ isPokitProduct()

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()

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: