7#include <QtBluetooth/QBluetoothLocalDevice>
8#include <QtDBus/QDBusConnection>
9#include <QtCore/QLoggingCategory>
23 this, &QtBluezPeripheralConnectionManager::remoteDeviceDisconnected);
29 if (m_clients.
contains(remoteDeviceObjectPath))
33 "org.bluez"_L1, remoteDeviceObjectPath,
36 qCDebug(QT_BT_BLUEZ) <<
"New LE Gatt client connected: " << remoteDeviceObjectPath
41 m_clients.
insert(remoteDeviceObjectPath, details);
52 bool remoteDetailsChanged{
false};
56 remoteDetailsChanged =
true;
62 if (!remoteDetailsChanged)
65 if (m_clients.
isEmpty() && m_connected) {
74 m_clients.
last().name, m_clients.
last().mtu);
96#include "moc_bluezperipheralconnectionmanager_p.cpp"
IOBluetoothDevice * device
void deviceDisconnected(const QBluetoothAddress &address)
static QDBusConnection systemBus()
Returns a QDBusConnection object opened with the system bus.
iterator insert(const Key &key, const T &value)
bool contains(const Key &key) const
size_type remove(const Key &key)
static QMetaObject::Connection connect(const QObject *sender, const char *signal, const QObject *receiver, const char *member, Qt::ConnectionType=Qt::AutoConnection)
\threadsafe
\macro QT_RESTRICTED_CAST_FROM_ASCII
void connectivityStateChanged(bool connected)
void remoteDeviceAccessEvent(const QString &remoteDeviceObjectPath, quint16 mtu)
QtBluezPeripheralConnectionManager(const QBluetoothAddress &localAddress, QObject *parent=nullptr)
void remoteDeviceChanged(const QBluetoothAddress &address, const QString &name, quint16 mtu)
QSet< QString >::iterator it
Combined button and popup list for selecting options.
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
GLuint GLuint64EXT address
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent