Dokit
Internal development documentation
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
pokitdiscoveryagent.h
Go to the documentation of this file.
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
17
19
21{
23
24public:
25 explicit PokitDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject * parent = nullptr);
27 virtual ~PokitDiscoveryAgent();
28
29public Q_SLOTS:
31 void start();
32
35 #if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0)) // Required signal, and Fields, added in Qt 5.12.
37 #endif
38
39protected:
40 /// \cond internal
41 PokitDiscoveryAgentPrivate * d_ptr; ///< Internal d-pointer.
43 QObject * const parent);
45 /// \endcond
46
47private:
48 Q_DECLARE_PRIVATE(PokitDiscoveryAgent)
51};
52
54
55#endif // QTPOKIT_POKITDISCOVERYAGENT_H
The PokitDiscoveryAgentPrivate class provides private implementation for PokitDiscoveryAgent.
PokitDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent=nullptr)
Constructs a new Pokit device discovery agent with parent, using deviceAdapter for the search device.
void pokitDeviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields)
This signal is emitted when the Pokit device described by info is updated.
PokitDiscoveryAgentPrivate * d_ptr
Internal d-pointer.
void pokitDeviceDiscovered(const QBluetoothDeviceInfo &info)
This signal is emitted when the Pokit device described by info is discovered.
QBluetoothDeviceDiscoveryAgent(QObject *parent)
QObject(QObject *parent)
Q_DISABLE_COPY(Class)
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
Q_SLOTSQ_SLOTS
QObject * parent() const const
Global QtPokit library macros.
#define QTPOKIT_BEFRIEND_TEST(Class)
Macro for befriending a related unit test class, but only when QT_TESTLIB_LIB is defined.
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).