LCOV - code coverage report
Current view: top level - src/cli - settorchcommand.h (source / functions) Hit Total Coverage
Project: Dokit Lines: 2 2 100.0 %
Version: Functions: 0 0 -

          Line data    Source code
       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             : 
       6             : #include <qtpokit/statusservice.h>
       7             : 
       8         198 : class SetTorchCommand : public DeviceCommand
       9             : {
      10          90 :     Q_OBJECT
      11             : 
      12             : public:
      13             :     explicit SetTorchCommand(QObject * const parent = nullptr);
      14             : 
      15             :     QStringList requiredOptions(const QCommandLineParser &parser) const override;
      16             :     QStringList supportedOptions(const QCommandLineParser &parser) const override;
      17             : 
      18             : public slots:
      19             :     QStringList processOptions(const QCommandLineParser &parser) override;
      20             : 
      21             : protected:
      22             :     AbstractPokitService * getService() override;
      23             : 
      24             : protected slots:
      25             :     void serviceDetailsDiscovered() override;
      26             : 
      27             : private:
      28             :     StatusService::TorchStatus newStatus { }; ///< New status to set on the Pokit device's torch to.
      29             :     StatusService * service { nullptr };      ///< Bluetooth service this command interracts with.
      30             : 
      31             : private slots:
      32             :     void torchStatusWritten();
      33             : 
      34             :     friend class TestSetTorchCommand;
      35             : };

Generated by: LCOV version 1.14