LCOV - code coverage report
Current view: top level - include/qtpokit - pokitdiscoveryagent.h (source / functions) Coverage Total Hit
Project: Dokit Lines: 7.4 % 27 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 PokitDiscoveryAgent class.
       7              :  */
       8              : 
       9              : #ifndef QTPOKIT_POKITDISCOVERYAGENT_H
      10              : #define QTPOKIT_POKITDISCOVERYAGENT_H
      11              : 
      12              : #include "qtpokit_global.h"
      13              : 
      14              : #include <QBluetoothDeviceDiscoveryAgent>
      15              : 
      16              : QTPOKIT_BEGIN_NAMESPACE
      17              : 
      18              : class PokitDiscoveryAgentPrivate;
      19              : 
      20              : class QTPOKIT_EXPORT PokitDiscoveryAgent : public QBluetoothDeviceDiscoveryAgent
      21              : {
      22           65 :     Q_OBJECT
      23            0 : 
      24            0 : public:
      25            0 :     explicit PokitDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject * parent = nullptr);
      26            0 :     PokitDiscoveryAgent(QObject * parent = nullptr);
      27            0 :     virtual ~PokitDiscoveryAgent();
      28            0 : 
      29            0 : public Q_SLOTS:
      30            0 :     void start(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods methods);
      31            0 :     void start();
      32            0 : 
      33            0 : Q_SIGNALS:
      34            0 :     void pokitDeviceDiscovered(const QBluetoothDeviceInfo &info);
      35            0 :     #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) // Required signal, and Fields, added in Qt 5.12.
      36            0 :     void pokitDeviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields);
      37            0 :     #endif
      38            0 : 
      39            0 : protected:
      40            0 :     /// \cond internal
      41            0 :     PokitDiscoveryAgentPrivate * d_ptr; ///< Internal d-pointer.
      42            0 :     PokitDiscoveryAgent(PokitDiscoveryAgentPrivate * const d, const QBluetoothAddress &deviceAdapter,
      43            0 :                         QObject * const parent);
      44            0 :     PokitDiscoveryAgent(PokitDiscoveryAgentPrivate * const d, QObject * const parent);
      45            0 :     /// \endcond
      46            0 : 
      47            0 : private:
      48          939 :     Q_DECLARE_PRIVATE(PokitDiscoveryAgent)
      49              :     Q_DISABLE_COPY(PokitDiscoveryAgent)
      50              :     QTPOKIT_BEFRIEND_TEST(PokitDiscoveryAgent)
      51              : };
      52              : 
      53              : QTPOKIT_END_NAMESPACE
      54              : 
      55              : #endif // QTPOKIT_POKITDISCOVERYAGENT_H
        

Generated by: LCOV version 2.3.2-1