Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbluetoothdevicediscoveryagent_winrt.cpp File Reference
#include "qbluetoothdevicediscoveryagent.h"
#include "qbluetoothdevicediscoveryagent_p.h"
#include "qbluetoothaddress.h"
#include "qbluetoothuuid.h"
#include <QtBluetooth/private/qbluetoothdevicewatcher_winrt_p.h>
#include <QtBluetooth/private/qbluetoothutils_winrt_p.h>
#include <QtBluetooth/private/qtbluetoothglobal_p.h>
#include <QtCore/QLoggingCategory>
#include <QtCore/QMutex>
#include <QtCore/qendian.h>
#include <winrt/Windows.Devices.Bluetooth.h>
#include <winrt/Windows.Devices.Bluetooth.Advertisement.h>
#include <winrt/Windows.Devices.Bluetooth.Rfcomm.h>
#include <winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h>
#include <winrt/Windows.Devices.Enumeration.h>
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Storage.Streams.h>
#include <qbluetoothdevicediscoveryagent_winrt.moc>
+ Include dependency graph for qbluetoothdevicediscoveryagent_winrt.cpp:

Go to the source code of this file.

Classes

class  AdvertisementWatcherWrapper
 
class  QWinRTBluetoothDeviceDiscoveryWorker
 

Functions

QT_BEGIN_NAMESPACE QUuid::Id128Bytes qbswap (const QUuid::Id128Bytes src)
 
static QByteArray byteArrayFromBuffer (const IBuffer &buffer)
 
static ManufacturerData extractManufacturerData (const BluetoothLEAdvertisement &ad)
 
static ServiceData extractServiceData (const BluetoothLEAdvertisement &ad)
 
static GUID fromWinRtGuid (const winrt::guid &guid)
 
static void invokeDecrementPendingDevicesCountAndCheckFinished (std::shared_ptr< QWinRTBluetoothDeviceDiscoveryWorker > worker)
 

Variables

static const winrt::hstring ClassicDeviceSelector
 

Function Documentation

◆ byteArrayFromBuffer()

static QByteArray byteArrayFromBuffer ( const IBuffer &  buffer)
static

Definition at line 50 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References QByteArray::data().

Referenced by byteArrayFromGattResult(), extractManufacturerData(), and extractServiceData().

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

◆ extractManufacturerData()

static ManufacturerData extractManufacturerData ( const BluetoothLEAdvertisement &  ad)
static

Definition at line 57 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References byteArrayFromBuffer(), item, qCWarning, and ret.

+ Here is the call graph for this function:

◆ extractServiceData()

static ServiceData extractServiceData ( const BluetoothLEAdvertisement &  ad)
static

Definition at line 71 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References byteArrayFromBuffer(), QByteArray::constData(), Q_ASSERT, ret, and QByteArray::size().

+ Here is the call graph for this function:

◆ fromWinRtGuid()

static GUID fromWinRtGuid ( const winrt::guid &  guid)
static

Definition at line 103 of file qbluetoothdevicediscoveryagent_winrt.cpp.

◆ invokeDecrementPendingDevicesCountAndCheckFinished()

static void invokeDecrementPendingDevicesCountAndCheckFinished ( std::shared_ptr< QWinRTBluetoothDeviceDiscoveryWorker worker)
static

Definition at line 281 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References QMetaObject::invokeMethod(), Q_ARG, and Qt::QueuedConnection.

+ Here is the call graph for this function:

◆ qbswap()

Definition at line 42 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References i.

Variable Documentation

◆ ClassicDeviceSelector

const winrt::hstring ClassicDeviceSelector
static
Initial value:
=
L"System.Devices.Aep.ProtocolId:=\"{e0cbf06c-cd8b-4647-bb8a-263b43f0f974}\""

Definition at line 193 of file qbluetoothdevicediscoveryagent_winrt.cpp.

Referenced by QWinRTBluetoothDeviceDiscoveryWorker::QWinRTBluetoothDeviceDiscoveryWorker().