4#include "devicecommand.h"
29 float temperature { std::numeric_limits<float>::quiet_NaN() };
34 friend class TestCalibrateCommand;
The AbstractPokitService class provides a common base for Pokit services classes.
The CalibrateCommand class implements the calibrate CLI command.
QStringList processOptions(const QCommandLineParser &parser) override
Processes the relevant options from the command line parser.
CalibrateCommand(QObject *const parent=nullptr)
Construct a new CalibrateCommand object with parent.
CalibrationService * service
Bluetooth service this command interracts with.
float temperature
Ambient temperature from the CLI options.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
QStringList supportedOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names supported by this command.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
QStringList requiredOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names required by this command.
void temperatureCalibrated()
Handles CalibrationService::temperatureCalibrated events, by outputting the result and exiting.
The CalibrationService class accesses the Calibrartion service of Pokit devices.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
QObject * parent() const const