LCOV - code coverage report
Current view: top level - src/lib - multimeterservice_p.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             : /*!
       5             :  * \file
       6             :  * Declares the MultimeterServicePrivate class.
       7             :  */
       8             : 
       9             : #ifndef QTPOKIT_MULTIMETERSERVICE_P_H
      10             : #define QTPOKIT_MULTIMETERSERVICE_P_H
      11             : 
      12             : #include <qtpokit/multimeterservice.h>
      13             : 
      14             : #include "abstractpokitservice_p.h"
      15             : 
      16             : QTPOKIT_BEGIN_NAMESPACE
      17             : 
      18             : class QTPOKIT_EXPORT MultimeterServicePrivate : public AbstractPokitServicePrivate
      19             : {
      20          57 :     Q_OBJECT
      21             : 
      22             : public:
      23             :     explicit MultimeterServicePrivate(QLowEnergyController * controller, MultimeterService * const q);
      24             : 
      25             :     static QByteArray encodeSettings(const MultimeterService::Settings &settings);
      26             : 
      27             :     static MultimeterService::Reading parseReading(const QByteArray &value);
      28             : 
      29             : protected:
      30             :     void characteristicRead(const QLowEnergyCharacteristic &characteristic,
      31             :                             const QByteArray &value) override;
      32             :     void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
      33             :                                const QByteArray &newValue) override;
      34             :     void characteristicChanged(const QLowEnergyCharacteristic &characteristic,
      35             :                                const QByteArray &newValue) override;
      36             : 
      37             : private:
      38          57 :     Q_DECLARE_PUBLIC(MultimeterService)
      39             :     Q_DISABLE_COPY(MultimeterServicePrivate)
      40             :     friend class TestMultimeterService;
      41             : };
      42             : 
      43             : QTPOKIT_END_NAMESPACE
      44             : 
      45             : #endif // QTPOKIT_MULTIMETERSERVICE_P_H

Generated by: LCOV version 1.14