Dokit
dev
v0.6.0
v0.5.8
v0.5.7
v0.5.6
v0.5.5
v0.5.4
v0.5.3
v0.5.2
v0.5.1
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.2
v0.1.1
v0.1.0
User docs
Internal
Coverage
Internal development documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
pokitproducts.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2022-2026 Paul Colby <git@colby.id.au>
2
// SPDX-License-Identifier: LGPL-3.0-or-later
3
4
/*!
5
* \file
6
* Declares the #PokitProduct enumeration, and related helper functions.
7
*/
8
9
#ifndef QTPOKIT_POKITPRODUCTS_H
10
#define QTPOKIT_POKITPRODUCTS_H
11
12
#include "
qtpokit_global.h
"
13
14
#include <QBluetoothDeviceInfo>
15
#include <QFlags>
16
#include <QString>
17
18
QTPOKIT_BEGIN_NAMESPACE
19
20
/// \brief Pokit products known to, and supported by, the QtPokit library.
21
enum class
PokitProduct
: quint8 {
22
//PokitClamp = 3, ///< \todo Pokit Clamp
23
PokitMeter
= 0,
///< Pokit Meter
24
PokitPro
= 1,
///< Pokit Pro
25
};
26
Q_DECLARE_FLAGS(PokitProducts,
PokitProduct
)
27
QTPOKIT_EXPORT
QString
toString
(
const
PokitProduct
product);
28
29
QTPOKIT_EXPORT
bool
isPokitProduct
(
const
QBluetoothDeviceInfo
&info);
30
31
QTPOKIT_EXPORT
PokitProduct
pokitProduct
(
const
QBluetoothDeviceInfo
&info);
32
33
QTPOKIT_END_NAMESPACE
34
35
#endif
// QTPOKIT_POKITPRODUCTS_H
PokitMeter
Encapsulates details specific to Pokit Meter devices.
Definition
pokitmeter.h:17
PokitPro
Encapsulates details specific to Pokit Pro devices.
Definition
pokitpro.h:17
pokitProduct
QTPOKIT_EXPORT PokitProduct pokitProduct(const QBluetoothDeviceInfo &info)
Returns the PokitProduct corresponding the Bluetooth device info.
Definition
pokitproducts.cpp:63
PokitProduct
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
Definition
pokitproducts.h:21
toString
QTPOKIT_EXPORT QString toString(const PokitProduct product)
Returns product as user-friendly string.
Definition
pokitproducts.cpp:35
isPokitProduct
QTPOKIT_EXPORT bool isPokitProduct(const QBluetoothDeviceInfo &info)
Returns true if info describes a Pokit device.
Definition
pokitproducts.cpp:51
QBluetoothDeviceInfo
QString
qtpokit_global.h
Global QtPokit library macros.
QTPOKIT_BEGIN_NAMESPACE
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:81
QTPOKIT_EXPORT
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
Definition
qtpokit_global.h:26
QTPOKIT_END_NAMESPACE
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:82
dokit
dokit
include
qtpokit
pokitproducts.h
Generated by
1.18.0