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_p.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 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
Q_OBJECT
25
26
public
:
27
static
Q_LOGGING_CATEGORY
(lc,
"pokit.ble.discovery"
, QtInfoMsg);
///< Logging category.
28
29
explicit
PokitDiscoveryAgentPrivate
(
PokitDiscoveryAgent
*
const
q);
30
31
public
Q_SLOTS
:
32
void
canceled
()
const
;
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
)
const
;
38
void
finished
()
const
;
39
40
protected
:
41
PokitDiscoveryAgent
*
q_ptr
;
///< Internal q-pointer.
42
43
private
:
44
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
PokitDiscoveryAgentPrivate::canceled
void canceled() const
Handle scan canceled signals, by simply logging the event for diagnostic purposes.
Definition
pokitdiscoveryagent.cpp:160
PokitDiscoveryAgentPrivate::PokitDiscoveryAgentPrivate
PokitDiscoveryAgentPrivate(PokitDiscoveryAgent *const q)
Definition
pokitdiscoveryagent.cpp:131
PokitDiscoveryAgentPrivate::Q_LOGGING_CATEGORY
static Q_LOGGING_CATEGORY(lc, "pokit.ble.discovery", QtInfoMsg)
Logging category.
PokitDiscoveryAgentPrivate::q_ptr
PokitDiscoveryAgent * q_ptr
Internal q-pointer.
Definition
pokitdiscoveryagent_p.h:41
PokitDiscoveryAgentPrivate::finished
void finished() const
Handle scan finished signals, by simply logging the event for diagnostic purposes.
Definition
pokitdiscoveryagent.cpp:209
PokitDiscoveryAgentPrivate::error
void error(const QBluetoothDeviceDiscoveryAgent::Error error) const
Handle scan errors, by simply logging error for diagnostic purposes.
Definition
pokitdiscoveryagent.cpp:201
PokitDiscoveryAgentPrivate::deviceDiscovered
void deviceDiscovered(const QBluetoothDeviceInfo &info)
Handle deviceDiscovered signals.
Definition
pokitdiscoveryagent.cpp:170
PokitDiscoveryAgentPrivate::deviceUpdated
void deviceUpdated(const QBluetoothDeviceInfo &info, QBluetoothDeviceInfo::Fields updatedFields)
Handle deviceUpdated signals.
Definition
pokitdiscoveryagent.cpp:187
PokitDiscoveryAgent
The PokitDiscoveryAgent class discovers nearby Pokit devices.
Definition
pokitdiscoveryagent.h:21
QBluetoothDeviceDiscoveryAgent::Error
Error
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_SLOTS
Q_SLOTSQ_SLOTS
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
src
lib
pokitdiscoveryagent_p.h
Generated by
1.18.0