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

            Line data    Source code
       1              : // SPDX-FileCopyrightText: 2022-2025 Paul Colby <git@colby.id.au>
       2              : // SPDX-License-Identifier: LGPL-3.0-or-later
       3              : 
       4              : /*!
       5              :  * \file
       6              :  * Declares the StatusServicePrivate class.
       7              :  */
       8              : 
       9              : #ifndef QTPOKIT_STATUSSERVICE_P_H
      10              : #define QTPOKIT_STATUSSERVICE_P_H
      11              : 
      12              : #include <qtpokit/statusservice.h>
      13              : 
      14              : #include "abstractpokitservice_p.h"
      15              : 
      16              : QTPOKIT_BEGIN_NAMESPACE
      17              : 
      18              : class QTPOKIT_EXPORT StatusServicePrivate : public AbstractPokitServicePrivate
      19              : {
      20          160 :     Q_OBJECT
      21            0 : 
      22            0 : public:
      23            0 :     explicit StatusServicePrivate(QLowEnergyController * controller, StatusService * const q);
      24            0 : 
      25            0 :     static StatusService::DeviceCharacteristics parseDeviceCharacteristics(const QByteArray &value);
      26            0 :     static StatusService::Status parseStatus(const QByteArray &value);
      27            0 :     static std::optional<StatusService::TorchStatus> parseTorchStatus(const QByteArray &value);
      28            0 :     static std::optional<StatusService::ButtonStatus> parseButtonPress(const QByteArray &value);
      29            0 : 
      30            0 : protected:
      31            0 :     void serviceDiscovered(const QBluetoothUuid &newService) override;
      32            0 : 
      33            0 :     void characteristicRead(const QLowEnergyCharacteristic &characteristic,
      34            0 :                             const QByteArray &value) override;
      35            0 :     void characteristicWritten(const QLowEnergyCharacteristic &characteristic,
      36            0 :                                const QByteArray &newValue) override;
      37            0 : 
      38            0 : private:
      39          160 :     Q_DECLARE_PUBLIC(StatusService)
      40              :     Q_DISABLE_COPY(StatusServicePrivate)
      41              :     QTPOKIT_BEFRIEND_TEST(StatusService)
      42              : };
      43              : 
      44              : QTPOKIT_END_NAMESPACE
      45              : 
      46              : #endif // QTPOKIT_STATUSSERVICE_P_H
        

Generated by: LCOV version 2.3.2-1