Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
bluez5_helper.cpp File Reference

(e7499c2cca615eaff3bd4c9ffe5f72d7112055cf)

#include <QtCore/QGlobalStatic>
#include <QtCore/QLoggingCategory>
#include <QtCore/QMap>
#include <QtCore/QVersionNumber>
#include <QtNetwork/private/qnet_unix_p.h>
#include "bluez5_helper_p.h"
#include "bluez_data_p.h"
#include "objectmanager_p.h"
#include "properties_p.h"
#include "adapter1_bluez5_p.h"
#include "moc_bluez5_helper_p.cpp"
+ Include dependency graph for bluez5_helper.cpp:

Go to the source code of this file.

Classes

struct  AdapterData
 
class  QtBluezDiscoveryManagerPrivate
 

Typedefs

typedef QT_BEGIN_NAMESPACE enum Bluez5TestResultType Bluez5TestResult
 

Enumerations

enum  Bluez5TestResultType { BluezVersionUnknown , BluezVersion5 , BluezNotAvailable }
 

Functions

 Q_GLOBAL_STATIC_WITH_ARGS (QVersionNumber, bluezDaemonVersion,(QVersionNumber())) void initializeBluez5()
 
bool mandatoryHciIoctlsAvailable ()
 
QVersionNumber bluetoothdVersion ()
 
QString findAdapterForAddress (const QBluetoothAddress &wantedAddress, bool *ok=nullptr)
 
QString adapterWithDBusPeripheralInterface (const QBluetoothAddress &localAddress)
 
QString sanitizeNameForDBus (const QString &text)
 

Typedef Documentation

◆ Bluez5TestResult

Enumeration Type Documentation

◆ Bluez5TestResultType

Enumerator
BluezVersionUnknown 
BluezVersion5 
BluezNotAvailable 

Definition at line 25 of file bluez5_helper.cpp.

Function Documentation

◆ adapterWithDBusPeripheralInterface()

QString adapterWithDBusPeripheralInterface ( const QBluetoothAddress & localAddress)

Definition at line 520 of file bluez5_helper.cpp.

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

+ Here is the call graph for this function:

◆ bluetoothdVersion()

QVersionNumber bluetoothdVersion ( )

Definition at line 155 of file bluez5_helper.cpp.

References arg, QString::fromLocal8Bit(), QVersionNumber::fromString(), info, QDBusConnection::interface(), QString::isNull(), mandatoryHciIoctlsAvailable(), Q_ASSERT, qCDebug, qCWarning, qEnvironmentVariable(), QStringLiteral, qt_haveLinuxProcfs(), 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 = nullptr )

Definition at line 459 of file bluez5_helper.cpp.

References QSet< T >::constBegin(), QSet< T >::constEnd(), it, manager, ok, QStringLiteral, reply, QDBusConnection::systemBus(), and toString().

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:

◆ mandatoryHciIoctlsAvailable()

bool mandatoryHciIoctlsAvailable ( )

Definition at line 73 of file bluez5_helper.cpp.

References BTPROTO_HCI, HCI_MAX_DEV, HCIGETCONNLIST, HCIGETDEVINFO, HCIGETDEVLIST, qCWarning, qt_error_string(), qt_safe_close(), qt_safe_ioctl(), and qt_safe_socket().

Referenced by bluetoothdVersion().

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

◆ Q_GLOBAL_STATIC_WITH_ARGS()

Q_GLOBAL_STATIC_WITH_ARGS ( QVersionNumber ,
bluezDaemonVersion ,
(QVersionNumber())  )

Definition at line 33 of file bluez5_helper.cpp.

References BluezNotAvailable, BluezVersion5, BluezVersionUnknown, manager, qCDebug, QStringLiteral, qWarning, reply, and QDBusConnection::systemBus().

+ Here is the call graph for this function:

◆ 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: