Dokit
Internal development documentation
Loading...
Searching...
No Matches
loggerstopcommand.h
1// SPDX-FileCopyrightText: 2022-2023 Paul Colby <git@colby.id.au>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4#include "devicecommand.h"
5
7
9{
11
12public:
13 explicit LoggerStopCommand(QObject * const parent = nullptr);
14
15protected:
17
18protected slots:
19 void serviceDetailsDiscovered() override;
20
21private:
22 DataLoggerService * service { nullptr }; ///< Bluetooth service this command interracts with.
23
24private slots:
25 void settingsWritten();
26
27 friend class TestLoggerStopCommand;
28};
The AbstractPokitService class provides a common base for Pokit services classes.
The DataLoggerService class accesses the Data Logger service of Pokit devices.
The AbstractCommand class extends AbstractCommand to add a PokitDevice instance.
The LoggerStopCommand class implements the logger stop CLI command.
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 DataLoggerService class.
Q_OBJECTQ_OBJECT
QObject * parent() const const