4#include "devicecommand.h"
32 friend class TestStatusCommand;
The AbstractPokitService class provides a common base for Pokit services classes.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
The StatusCommand class implements the status CLI command.
QStringList supportedOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names supported by this command.
QStringList requiredOptions(const QCommandLineParser &parser) const override
Returns a list of CLI option names required by this command.
QStringList processOptions(const QCommandLineParser &parser) override
Processes the relevant options from the command line parser.
StatusService * service
Bluetooth service this command interracts with.
StatusCommand(QObject *const parent=nullptr)
Construct a new StatusCommand object with parent.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
void outputDeviceStatus(const StatusService::DeviceCharacteristics &chrs)
Outputs the Pokit device's details, including chrs, in the selected format.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
The StatusService class accesses the Pokit Status service of Pokit devices.
QObject * parent() const const
Declares the StatusService class.
Attributes included in the Device Characteristics characterstic.