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

            Line data    Source code
       1              : // SPDX-FileCopyrightText: 2022-2024 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          532 : class StatusCommand : public DeviceCommand
       9              : {
      10         1558 :     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 2.0-1