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 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 62 : Q_OBJECT 25 : 26 : public: 27 288 : static Q_LOGGING_CATEGORY(lc, "pokit.ble.discovery", QtInfoMsg); ///< Logging category. 28 : 29 : explicit PokitDiscoveryAgentPrivate(PokitDiscoveryAgent * const q); 30 : 31 : public slots: 32 : void canceled(); 33 : void deviceDiscovered(const QBluetoothDeviceInfo &info); 34 : #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) // Required signal, and Fields, added in Qt 5.12. 35 : void deviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields); 36 : #endif 37 : void error(const QBluetoothDeviceDiscoveryAgent::Error error); 38 : void finished(); 39 : 40 : protected: 41 : PokitDiscoveryAgent * q_ptr; ///< Internal q-pointer. 42 : 43 : private: 44 232 : Q_DECLARE_PUBLIC(PokitDiscoveryAgent) 45 : Q_DISABLE_COPY(PokitDiscoveryAgentPrivate) 46 : friend class TestPokitDiscoveryAgent; 47 : }; 48 : 49 : QTPOKIT_END_NAMESPACE 50 : 51 : #endif // QTPOKIT_POKITDISCOVERYAGENT_P_H