LCOV - code coverage report
Current view: top level - src/cli - setnamecommand.h (source / functions) Coverage Total Hit
Project: Dokit Lines: 100.0 % 1 1
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              : class StatusService;
       7              : 
       8              : class SetNameCommand : public DeviceCommand
       9              : {
      10          190 :     Q_OBJECT
      11              : 
      12              : public:
      13              :     explicit SetNameCommand(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              :     QString newName; ///< New name to set on the Pokit device.
      29              :     StatusService * service { nullptr }; ///< Bluetooth service this command interracts with.
      30              : 
      31              : private slots:
      32              :     void deviceNameWritten();
      33              : 
      34              :     friend class TestSetNameCommand;
      35              : };
        

Generated by: LCOV version 2.0-1