LCOV - code coverage report
Current view: top level - src/lib - pokitdiscoveryagent_p.h (source / functions) Coverage Total Hit
Project: Dokit Lines: 14.3 % 21 3
Version: Functions: 100.0 % 3 3

            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 PokitDiscoveryAgentPrivate class.
       7              :  */
       8              : 
       9              : #ifndef QTPOKIT_POKITDISCOVERYAGENT_P_H
      10              : #define QTPOKIT_POKITDISCOVERYAGENT_P_H
      11              : 
      12              : #include <qtpokit/qtpokit_global.h>
      13              : 
      14              : #include <QBluetoothDeviceDiscoveryAgent>
      15              : #include <QBluetoothDeviceInfo>
      16              : #include <QLoggingCategory>
      17              : 
      18              : QTPOKIT_BEGIN_NAMESPACE
      19              : 
      20              : class PokitDiscoveryAgent;
      21              : 
      22              : class QTPOKIT_EXPORT PokitDiscoveryAgentPrivate : public QObject
      23              : {
      24          316 :     Q_OBJECT
      25            0 : 
      26            0 : public:
      27         1484 :     static Q_LOGGING_CATEGORY(lc, "pokit.ble.discovery", QtInfoMsg); ///< Logging category.
      28            0 : 
      29            0 :     explicit PokitDiscoveryAgentPrivate(PokitDiscoveryAgent * const q);
      30            0 : 
      31            0 : public Q_SLOTS:
      32            0 :     void canceled() const;
      33            0 :     void deviceDiscovered(const QBluetoothDeviceInfo &info);
      34            0 :     #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) // Required signal, and Fields, added in Qt 5.12.
      35            0 :     void deviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields);
      36            0 :     #endif
      37            0 :     void error(const QBluetoothDeviceDiscoveryAgent::Error error) const;
      38            0 :     void finished() const;
      39            0 : 
      40            0 : protected:
      41            0 :     PokitDiscoveryAgent * q_ptr; ///< Internal q-pointer.
      42            0 : 
      43            0 : private:
      44          906 :     Q_DECLARE_PUBLIC(PokitDiscoveryAgent)
      45              :     Q_DISABLE_COPY(PokitDiscoveryAgentPrivate)
      46              :     QTPOKIT_BEFRIEND_TEST(PokitDiscoveryAgent)
      47              : };
      48              : 
      49              : QTPOKIT_END_NAMESPACE
      50              : 
      51              : #endif // QTPOKIT_POKITDISCOVERYAGENT_P_H
        

Generated by: LCOV version 2.3.2-1