4#ifndef QBLUETOOTHUTILS_WINRT_P_H
5#define QBLUETOOTHUTILS_WINRT_P_H
20 #include <winrt/base.h>
21#include <QtCore/private/qfactorycacheregistration_p.h>
24 template <
typename Async>
25 auto wait_for(Async
const& async, Windows::Foundation::TimeSpan
const& timeout);
28#include <QtCore/QtGlobal>
29#include <QtCore/private/qglobal_p.h>
31#include <wrl/client.h>
45using NativeBuffer = ABI::Windows::Storage::Streams::IBuffer;
47 bool isWCharString =
false);
void deviceAdded(const QBluetoothAddress &address)
void deviceRemoved(const QBluetoothAddress &address)
void updateMode(winrt::hstring adapterId, QBluetoothLocalDevice::HostMode mode)
void modeChanged(winrt::hstring id, QBluetoothLocalDevice::HostMode mode)
QList< QBluetoothAddress > connectedDevices()
void adapterRemoved(winrt::hstring id)
void removeClient(winrt::hstring adapterId)
QBluetoothLocalDevicePrivate(QBluetoothLocalDevice *=nullptr, QBluetoothAddress=QBluetoothAddress())
void init(AdapterManager *manager, AddedSlot onAdded, RemovedSlot onRemoved)
WatcherWrapper(winrt::hstring selector)
auto wait_for(Async const &async, Windows::Foundation::TimeSpan const &timeout)
Windows::Foundation::AsyncStatus AsyncStatus
static DeviceInformationCollection getAvailableAdapters()
DeviceInformationPairing pairingInfoFromAddress(const QBluetoothAddress &address)
static const int kMaximumAttempts
static BluetoothInfo getBluetoothInfo(winrt::hstring id)
QByteArray byteArrayFromBuffer(const Microsoft::WRL::ComPtr< NativeBuffer > &buffer, bool isWCharString=false)
void mainThreadCoInit(void *caller)
void mainThreadCoUninit(void *caller)
QBluetoothAddress address
PairingWorker(QBluetoothLocalDevice *device)
void pairAsync(const QBluetoothAddress &addr, QBluetoothLocalDevice::Pairing pairing)