4#include "loggerstopcommand.h"
8#include <QJsonDocument>
52 qCInfo(lc).noquote() <<
tr(
"Stopping logger.");
61 qCDebug(lc).noquote() <<
tr(
"Settings written; data logger has stopped.");
64 std::cout << qUtf8Printable(
tr(
"logger_stop_result\nsuccess\n"));
70 std::cout << qUtf8Printable(
tr(
"Done.\n"));
OutputFormat format
Selected output format.
@ Text
Plain unstructured text.
@ Csv
RFC 4180 compliant CSV text.
@ Json
RFC 8259 compliant JSON text.
The AbstractPokitService class provides a common base for Pokit services classes.
void settingsWritten()
This signal is emitted when the Settings characteristic has been written successfully.
PokitDevice * device
Pokit Bluetooth device (if any) this command interracts with.
DeviceCommand(QObject *const parent=nullptr)
Construct a new DeviceCommand object with parent.
virtual void serviceDetailsDiscovered()
Handles service detail discovery events.
void disconnect(int exitCode=EXIT_SUCCESS)
Disconnects the underlying Pokit device, and sets exitCode to be return to the OS once the disconnect...
DataLoggerService * service
Bluetooth service this command interracts with.
void settingsWritten()
Invoked when the data logger settings have been written.
AbstractPokitService * getService() override
Returns a Pokit service object for the derived command class.
void serviceDetailsDiscovered() override
Handles service detail discovery events.
LoggerStopCommand(QObject *const parent=nullptr)
Construct a new LoggerStopCommand object with parent.
Declares the PokitDevice class.
QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const const
QString tr(const char *sourceText, const char *disambiguation, int n)