4#include "devicecommand.h"
41 friend class TestLoggerStartCommand;
The AbstractPokitService class provides a common base for Pokit services classes.
The DataLoggerService class accesses the Data Logger service of Pokit devices.
@ Start
Start the Data Logger.
@ DcVoltage
Measure DC voltage.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
The LoggerStartCommand class implements the logger CLI command.
QStringList requiredOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names required by this command.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
QStringList processOptions(const QCommandLineParser &parser) override
Processes the relevant options from the command line parser.
DataLoggerService::Settings settings
Settings for the Pokit device's data logger mode.
quint32 rangeOptionValue
The parsed value of range option.
void settingsWritten()
Invoked when the data logger settings have been written.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
quint8(* minRangeFunc)(const PokitProduct product, const quint32 maxValue)
Pointer to function for converting rangeOptionValue to a Pokit device's range enumerator.
QStringList supportedOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names supported by this command.
LoggerStartCommand(QObject *const parent=nullptr)
Construct a new LoggerStartCommand object with parent.
DataLoggerService * service
Bluetooth service this command interracts with.
Declares the DataLoggerService class.
Declares the PokitMeter namespace.
Declares the PokitPro namespace.
PokitProduct
Pokit products known to, and supported by, the QtPokit library.
QObject * parent() const const
Attributes included in the Settings characterstic.