14#include "pokitproducts_p.h"
16#include <QCoreApplication>
17#include <QLoggingCategory>
26 Q_DECLARE_TR_FUNCTIONS(PokitProducts)
39 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").
arg((
int)product);
108 qCWarning(lc).noquote() << Private::tr(
"Device is not a Pokit product");
109 qCDebug(lc).noquote() <<
"Service UUIDs:" << serviceUuids;
143 qCWarning(lc).noquote() << Private::tr(
"Pokit Meter has no capacitance support");
148 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").
arg((
int)product);
163 qCWarning(lc).noquote() << Private::tr(
"Pokit Meter has no capacitance support");
168 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
191 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").
arg((
int)product);
209 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
232 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").
arg((
int)product);
250 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
273 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").
arg((
int)product);
291 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
Encapsulates convenience functions for working with capacitance ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's capacitance range as a human-friendly string.
quint32 maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for range in nanofarads, or 0 if range is not a known value for product.
Encapsulates convenience functions for working with current ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
quint32 maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for range in microamps, or 0 if range is not a known value for product.
CurrentRange
Values supported by the Pokit Meter's Range attributes in *Current modes.
QTPOKIT_EXPORT QString toString(const CurrentRange &range)
Returns range as a user-friendly string.
ResistanceRange
Values supported by the Pokit Meter's Range attributes in Resistance mode.
VoltageRange
Values supported by the Pokit Meter's Range attributes in *Voltage modes.
QTPOKIT_EXPORT quint32 maxValue(const CurrentRange &range)
Returns the maximum value for range in microamps, or 0 if range is not a known value for Pokit Meter ...
QTPOKIT_EXPORT QString toString(const CapacitanceRange &range)
Returns range as a user-friendly string.
VoltageRange
Values supported by the Pokit Pro's Range attributes in *Voltage modes.
CurrentRange
Values supported by the Pokit Pro's Range attributes in *Current modes.
ResistanceRange
Values supported by the Pokit Pro's Range attributes in Resistance mode.
CapacitanceRange
Values supported by the Pokit Pro's Range attributes in Capacitance mode.
QTPOKIT_EXPORT quint32 maxValue(const CapacitanceRange &range)
Returns the maximum value for range in nanofarads, or 0 if range is not a known value for Pokit Pro d...
Encapsulates convenience functions for working with resistance ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
quint32 maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for range in ohms, or 0 if range is not a known value for product.
Encapsulates convenience functions for working with voltage ranges.
quint32 maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for range in millivolts, or 0 if range is not a known value for product.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
Declares the PokitMeter namespace.
Declares the PokitPro namespace.
QString toString(const PokitProduct product)
Returns product as user-friendly string.
PokitProduct pokitProduct(const QBluetoothDeviceInfo &info)
Returns the PokitProduct corresponding the Bluetotoh device info.
bool isPokitProduct(const QBluetoothDeviceInfo &info)
Returns true if info describes a Pokit device.
static Q_LOGGING_CATEGORY(lc, "dokit.pokit.products", QtInfoMsg)
Logging category for this file.
Declares the PokitProduct enumeration, and related helper functions.
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
QList< QBluetoothUuid > serviceUuids(QBluetoothDeviceInfo::DataCompleteness *completeness) const const
bool contains(const T &value) const const
QList< QBluetoothUuid > services() const const
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).
Declares the StatusService class.
static const QBluetoothUuid pokitPro
UUID of the Pokit Pro's Pokit Status service.
static const QBluetoothUuid pokitMeter
UUID of the Pokit Meter's Pokit Status service.