LCOV - code coverage report
Current view: top level - src/cli - statuscommand.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         266 : class StatusCommand : public DeviceCommand
       9             : {
      10         779 :     Q_OBJECT
      11             : 
      12             : public:
      13             :     explicit StatusCommand(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 * service { nullptr }; ///< Bluetooth service this command interracts with.
      29             : 
      30             :     void outputDeviceStatus(const StatusService::DeviceCharacteristics &chrs);
      31             : 
      32             :     friend class TestStatusCommand;
      33             : };

Generated by: LCOV version 1.14