![]() |
Qt 6.x
The Qt SDK
|
#include <private/qbluetoothutils_winrt_p.h>
#include "qbluetoothlocaldevice.h"
#include "qbluetoothaddress.h"
#include "qbluetoothdevicewatcher_winrt_p.h"
#include "qbluetoothlocaldevice_p.h"
#include "qbluetoothutils_winrt_p.h"
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Devices.Enumeration.h>
#include <winrt/Windows.Devices.Bluetooth.h>
#include <winrt/Windows.Devices.Radios.h>
#include <QtCore/QCoreApplication>
#include <QtCore/QElapsedTimer>
#include <QtCore/QLoggingCategory>
#include <QtCore/QMutex>
#include <QtCore/QPointer>
#include <QtCore/QTimer>
#include "qbluetoothlocaldevice_winrt.moc"
Go to the source code of this file.
Classes | |
class | WatcherWrapper |
class | AdapterManager |
struct | BluetoothInfo |
struct | PairingWorker |
Functions | |
template<typename T > | |
static QT_BEGIN_NAMESPACE bool | await (IAsyncOperation< T > &&asyncInfo, T &result, uint timeout=0) |
static QBluetoothLocalDevice::HostMode | adjustHostMode (QBluetoothLocalDevice::HostMode mode) |
static QBluetoothLocalDevice::HostMode | modeFromWindowsBluetoothState (RadioState state) |
static RadioState | windowsStateFromMode (QBluetoothLocalDevice::HostMode mode) |
static BluetoothInfo | getBluetoothInfo (winrt::hstring id) |
static DeviceInformationCollection | getAvailableAdapters () |
DeviceInformationPairing | pairingInfoFromAddress (const QBluetoothAddress &address) |
Variables | |
static const int | kMaximumAttempts = 5 |
|
static |
Definition at line 56 of file qbluetoothlocaldevice_winrt.cpp.
References QBluetoothLocalDevice::HostConnectable, and QBluetoothLocalDevice::HostPoweredOff.
|
static |
Definition at line 37 of file qbluetoothlocaldevice_winrt.cpp.
References QCoreApplication::processEvents(), QTimer::start(), and timer.
Referenced by getAvailableAdapters(), getBluetoothInfo(), PairingWorker::pairAsync(), pairingInfoFromAddress(), QGeoPositionInfoSourceWinRT::requestAccess(), and AdapterManager::updateMode().
|
static |
Definition at line 457 of file qbluetoothlocaldevice_winrt.cpp.
References await().
|
static |
Definition at line 361 of file qbluetoothlocaldevice_winrt.cpp.
References await(), BluetoothDevice, and device.
|
static |
Definition at line 64 of file qbluetoothlocaldevice_winrt.cpp.
References QBluetoothLocalDevice::HostConnectable, QBluetoothLocalDevice::HostPoweredOff, and state.
Referenced by AdapterManager::addClient().
DeviceInformationPairing pairingInfoFromAddress | ( | const QBluetoothAddress & | address | ) |
Definition at line 465 of file qbluetoothlocaldevice_winrt.cpp.
References await(), BluetoothDevice, and device.
Referenced by PairingWorker::pairAsync().
|
static |
Definition at line 70 of file qbluetoothlocaldevice_winrt.cpp.
References QBluetoothLocalDevice::HostPoweredOff.
Referenced by AdapterManager::updateMode().
|
static |
Definition at line 310 of file qbluetoothlocaldevice_winrt.cpp.