14#include "pokitproducts_p.h"
16#include <QCoreApplication>
17#include <QLoggingCategory>
33 "Unknown PokitProduct value: %1",
"toString").
arg((
int)product);
108 qCWarning(lc).noquote()
110 qCDebug(lc).noquote() <<
"Service UUIDs:" << serviceUuids;
144 qCWarning(lc).noquote()
151 "Unknown PokitProduct value: %1",
"toString").
arg((
int)product);
167 qCWarning(lc).noquote()
174 "Unknown PokitProduct value: %1",
"maxValue").
arg((
int)product);
198 "Unknown PokitProduct value: %1",
"toString").
arg((
int)product);
218 "Unknown PokitProduct value: %1",
"maxValue").
arg((
int)product);
242 "Unknown PokitProduct value: %1",
"toString").
arg((
int)product);
262 "Unknown PokitProduct value: %1",
"maxValue").
arg((
int)product);
286 "Unknown PokitProduct value: %1",
"toString").
arg((
int)product);
306 "Unknown PokitProduct value: %1",
"maxValue").
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.
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.
QTPOKIT_BEGIN_NAMESPACE QString toString(const PokitProduct product)
Returns product as user-friendly string.
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
QString translate(const char *context, const char *sourceText, const char *disambiguation, int n)
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.