Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
bluez5_helper_p.h File Reference
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include <QtBluetooth/QBluetoothUuid>
#include <QtBluetooth/QBluetoothAddress>
#include <QtBluetooth/private/qtbluetoothglobal_p.h>
+ Include dependency graph for bluez5_helper_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  QtBluezDiscoveryManager
 

Typedefs

typedef QMap< QString, QVariantMapInterfaceList
 
typedef QMap< QDBusObjectPath, InterfaceListManagedObjectList
 
typedef QMap< quint16, QDBusVariantManufacturerDataList
 
typedef QMap< QString, QDBusVariantServiceDataList
 

Functions

QT_BEGIN_NAMESPACE void initializeBluez5 ()
 
bool isBluez5 ()
 
Q_BLUETOOTH_PRIVATE_EXPORT QVersionNumber bluetoothdVersion ()
 
QString sanitizeNameForDBus (const QString &text)
 
QString findAdapterForAddress (const QBluetoothAddress &wantedAddress, bool *ok)
 
QString adapterWithDBusPeripheralInterface (const QBluetoothAddress &localAddress)
 

Typedef Documentation

◆ InterfaceList

Definition at line 24 of file bluez5_helper_p.h.

◆ ManagedObjectList

◆ ManufacturerDataList

Definition at line 26 of file bluez5_helper_p.h.

◆ ServiceDataList

Definition at line 27 of file bluez5_helper_p.h.

Function Documentation

◆ adapterWithDBusPeripheralInterface()

QString adapterWithDBusPeripheralInterface ( const QBluetoothAddress localAddress)

Definition at line 520 of file bluez5_helper.cpp.

References findAdapterForAddress(), initializeBluez5(), QString::isEmpty(), manager, ok, qCDebug, QStringLiteral, reply, and QDBusConnection::systemBus().

+ Here is the call graph for this function:

◆ bluetoothdVersion()

Q_BLUETOOTH_PRIVATE_EXPORT QVersionNumber bluetoothdVersion ( )

Definition at line 155 of file bluez5_helper.cpp.

References arg, QFileDevice::close(), QString::fromLocal8Bit(), QVersionNumber::fromString(), info, QDBusConnection::interface(), QFileInfo::isExecutable(), QString::isNull(), QVersionNumber::isNull(), mandatoryHciIoctlsAvailable(), QFile::open(), Q_ASSERT, qCDebug, qCWarning, qEnvironmentVariable(), QStringLiteral, qt_haveLinuxProcfs(), QIODevice::readAll(), QIODeviceBase::ReadOnly, QDBusConnectionInterface::servicePid(), QDBusConnection::systemBus(), and QIODeviceBase::Text.

Referenced by createSocketPrivate().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ findAdapterForAddress()

QString findAdapterForAddress ( const QBluetoothAddress wantedAddress,
bool *  ok 
)

Definition at line 459 of file bluez5_helper.cpp.

References QList< T >::append(), QMap< Key, T >::constBegin(), QMap< Key, T >::constEnd(), QList< T >::front(), QList< T >::isEmpty(), it, manager, ok, QStringLiteral, reply, QDBusConnection::systemBus(), toString(), and QMap< Key, T >::value().

Referenced by RemoteDeviceManager::RemoteDeviceManager(), adapterWithDBusPeripheralInterface(), findRemoteDevicePath(), QBluetoothSocketPrivateBluezDBus::localAddress(), and QBluetoothSocketPrivateBluezDBus::localName().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ initializeBluez5()

QT_BEGIN_NAMESPACE void initializeBluez5 ( )

Referenced by RemoteDeviceManager::RemoteDeviceManager(), adapterWithDBusPeripheralInterface(), nameOfRemoteCentral(), and QBluetoothSocketPrivateBluez::peerName().

+ Here is the caller graph for this function:

◆ isBluez5()

bool isBluez5 ( )

◆ sanitizeNameForDBus()

QString sanitizeNameForDBus ( const QString text)

Definition at line 556 of file bluez5_helper.cpp.

References i, QString::size(), text, and QString::unicode().

Referenced by QBluetoothSocketPrivateBluezDBus::connectToServiceHelper().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: