Dokit
dev
v0.6.0
v0.5.8
v0.5.7
v0.5.6
v0.5.5
v0.5.4
v0.5.3
v0.5.2
v0.5.1
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.2
v0.1.1
v0.1.0
User docs
Internal
Coverage
Internal development documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
pokitdiscoveryagent.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2022-2026 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
Q_OBJECT
23
24
public
:
25
explicit
PokitDiscoveryAgent
(
const
QBluetoothAddress
&deviceAdapter,
QObject
*
parent
=
nullptr
);
26
PokitDiscoveryAgent
(
QObject
*
parent
=
nullptr
);
27
virtual
~PokitDiscoveryAgent
();
28
29
public
Q_SLOTS
:
30
void
start
(
QBluetoothDeviceDiscoveryAgent::DiscoveryMethods
methods);
31
void
start
();
32
33
Q_SIGNALS
:
34
void
pokitDeviceDiscovered
(
const
QBluetoothDeviceInfo
&info);
35
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
// Required signal, and Fields, added in Qt 5.12.
36
void
pokitDeviceUpdated
(
const
QBluetoothDeviceInfo
&info,
QBluetoothDeviceInfo::Fields
updatedFields);
37
#endif
38
39
protected
:
40
/// \cond internal
41
PokitDiscoveryAgentPrivate
*
d_ptr
;
///< Internal d-pointer.
42
PokitDiscoveryAgent
(
PokitDiscoveryAgentPrivate
*
const
d,
const
QBluetoothAddress
&deviceAdapter,
43
QObject
*
const
parent
);
44
PokitDiscoveryAgent
(
PokitDiscoveryAgentPrivate
*
const
d,
QObject
*
const
parent
);
45
/// \endcond
46
47
private
:
48
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
PokitDiscoveryAgentPrivate
The PokitDiscoveryAgentPrivate class provides private implementation for PokitDiscoveryAgent.
Definition
pokitdiscoveryagent_p.h:23
PokitDiscoveryAgent::PokitDiscoveryAgent
PokitDiscoveryAgent(const QBluetoothAddress &deviceAdapter, QObject *parent=nullptr)
Constructs a new Pokit device discovery agent with parent, using deviceAdapter for the search device.
Definition
pokitdiscoveryagent.cpp:32
PokitDiscoveryAgent::start
void start(QBluetoothDeviceDiscoveryAgent::DiscoveryMethods methods)
Starts Pokit device discovery.
Definition
pokitdiscoveryagent.cpp:88
PokitDiscoveryAgent::pokitDeviceUpdated
void pokitDeviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields)
This signal is emitted when the Pokit device described by info is updated.
PokitDiscoveryAgent::d_ptr
PokitDiscoveryAgentPrivate * d_ptr
Internal d-pointer.
Definition
pokitdiscoveryagent.h:41
PokitDiscoveryAgent::pokitDeviceDiscovered
void pokitDeviceDiscovered(const QBluetoothDeviceInfo &info)
This signal is emitted when the Pokit device described by info is discovered.
QBluetoothAddress
QBluetoothDeviceDiscoveryAgent::DiscoveryMethods
QBluetoothDeviceDiscoveryAgent::DiscoveryMethod DiscoveryMethods
QBluetoothDeviceDiscoveryAgent::QBluetoothDeviceDiscoveryAgent
QBluetoothDeviceDiscoveryAgent(QObject *parent)
QBluetoothDeviceInfo
QBluetoothDeviceInfo::Fields
QBluetoothDeviceInfo::Field Fields
QObject::QObject
QObject(QObject *parent)
QObject::Q_DISABLE_COPY
Q_DISABLE_COPY(Class)
QObject::Q_OBJECT
Q_OBJECTQ_OBJECT
QObject::Q_SIGNALS
Q_SIGNALSQ_SIGNALS
QObject::Q_SLOTS
Q_SLOTSQ_SLOTS
QObject::parent
QObject * parent() const const
qtpokit_global.h
Global QtPokit library macros.
QTPOKIT_BEFRIEND_TEST
#define QTPOKIT_BEFRIEND_TEST(Class)
Macro for befriending a related unit test class, but only when QT_TESTLIB_LIB is defined.
Definition
qtpokit_global.h:118
QTPOKIT_BEGIN_NAMESPACE
#define QTPOKIT_BEGIN_NAMESPACE
Macro for starting the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:81
QTPOKIT_EXPORT
#define QTPOKIT_EXPORT
QtPokit library export/import macro.
Definition
qtpokit_global.h:26
QTPOKIT_END_NAMESPACE
#define QTPOKIT_END_NAMESPACE
Macro for ending the QtPokit library's top-most namespace (if one is defined).
Definition
qtpokit_global.h:82
dokit
dokit
include
qtpokit
pokitdiscoveryagent.h
Generated by
1.18.0