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);
164 qCWarning(lc).noquote() << Private::tr(
"Pokit Meter has no capacitance support");
169 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
192 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
211 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
234 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
253 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
276 qCWarning(lc).noquote() << Private::tr(
"Unknown PokitProduct value: %1").arg((
int)product);
295 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.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) nanofarads, or the string "Auto".
Encapsulates convenience functions for working with current ranges.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) microamps, or the string "Auto".
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
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.
QTPOKIT_EXPORT QVariant maxValue(const CurrentRange &range)
Returns the maximum value for range in (integer) microamps, or the string "Auto".
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 QVariant maxValue(const CapacitanceRange &range)
Returns the maximum value for range in (integer) nanofarads, or the string "Auto".
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.
Encapsulates convenience functions for working with resistance ranges.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) ohms, or the string "Auto".
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
Encapsulates convenience functions for working with voltage ranges.
QString toString(const PokitProduct product, const quint8 range)
Returns product's current range as a human-friendly string.
QVariant maxValue(const PokitProduct product, const quint8 range)
Returns the maximum value for product's range in (integer) millivolts, or the string "Auto".
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
#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.