4#include "devicecommand.h"
34 friend class TestSetNameCommand;
The AbstractPokitService class provides a common base for Pokit services classes.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
The SetNameCommand class implements the set-name CLI command.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
void deviceNameWritten()
Handles StatusService::deviceNameWritten events, by outputting the result and exiting.
QString newName
New name to set on the Pokit device.
QStringList processOptions(const QCommandLineParser &parser) override
Processes the relevant options from the command line parser.
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.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
SetNameCommand(QObject *const parent=nullptr)
Construct a new SetNameCommand object with parent.
StatusService * service
Bluetooth service this command interracts with.
The StatusService class accesses the Pokit Status service of Pokit devices.
QObject * parent() const const