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
qbluetoothdevicediscoveryagent_winrt.cpp File Reference

(98cddeeb4a9e0c8686e505e5e6b9165970ec3060)

#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

static QT_BEGIN_NAMESPACE 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 QT_BEGIN_NAMESPACE QByteArray byteArrayFromBuffer ( const IBuffer & buffer)
static

Definition at line 41 of file qbluetoothdevicediscoveryagent_winrt.cpp.

References QByteArray().

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 48 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 62 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 94 of file qbluetoothdevicediscoveryagent_winrt.cpp.

◆ invokeDecrementPendingDevicesCountAndCheckFinished()

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

Definition at line 272 of file qbluetoothdevicediscoveryagent_winrt.cpp.

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

+ Here is the call graph for this function:

Variable Documentation

◆ ClassicDeviceSelector

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

Definition at line 184 of file qbluetoothdevicediscoveryagent_winrt.cpp.

Referenced by QWinRTBluetoothDeviceDiscoveryWorker::QWinRTBluetoothDeviceDiscoveryWorker().