(e93b602ddbc64b3db32ce1ff483754b341c44b7e)
#include "qlowenergycontroller_winrt_p.h"
#include "qbluetoothutils_winrt_p.h"
#include <QtBluetooth/qbluetoothlocaldevice.h>
#include <QtBluetooth/QLowEnergyCharacteristicData>
#include <QtBluetooth/QLowEnergyDescriptorData>
#include <QtBluetooth/private/qbluetoothutils_winrt_p.h>
#include <QtBluetooth/QLowEnergyService>
#include <QtCore/QtEndian>
#include <QtCore/QLoggingCategory>
#include <QtCore/private/qfunctions_winrt_p.h>
#include <QtCore/QDeadlineTimer>
#include <QtCore/qpointer.h>
#include <QtCore/QAbstractEventDispatcher>
#include <functional>
#include <type_traits>
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.Foundation.Collections.h>
#include <winrt/Windows.Foundation.Metadata.h>
#include <winrt/Windows.Devices.Enumeration.h>
#include <winrt/Windows.Devices.Bluetooth.h>
#include <winrt/Windows.Devices.Bluetooth.GenericAttributeProfile.h>
#include <winrt/Windows.Storage.Streams.h>
#include <windows.devices.bluetooth.h>
#include <windows.devices.bluetooth.genericattributeprofile.h>
#include "qlowenergycontroller_winrt.moc"
Go to the source code of this file.
|
template<typename E, std::enable_if_t< std::is_enum_v< E >, int > = 0> |
constexpr std::underlying_type_t< E > | bitwise_and (E x, E y) |
template<typename T, typename E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum< E > >, int > = 0> |
constexpr T | bitwise_and (T x, E y) |
template<typename E, std::enable_if_t< std::is_enum_v< E >, int > = 0> |
constexpr std::underlying_type_t< E > | bitwise_or (E x, E y) |
template<typename T, typename E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum< E > >, int > = 0> |
constexpr T | bitwise_or (T x, E y) |
template<typename T, typename E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum< E > >, int > = 0> |
constexpr T & | bitwise_or_equal (T &a, const E &b) |
static constexpr bool | never () |
template<typename T> |
static T | await (IAsyncOperation< T > asyncInfo, GlobalCondition canceled=never, int timeout=5000) |
template<typename T> |
static T | await_forever (IAsyncOperation< T > asyncInfo, GlobalCondition canceled=never) |
static QByteArray | byteArrayFromBuffer (IBuffer buffer, bool isWCharString=false) |
static QByteArray | byteArrayFromGattResult (GattReadResult gattResult, bool isWCharString=false) |
◆ DEC_CHAR_COUNT_AND_CONTINUE
#define DEC_CHAR_COUNT_AND_CONTINUE |
( |
| msg | ) |
|
◆ ENUM_BITWISE_OPS
#define ENUM_BITWISE_OPS |
( |
| E | ) |
|
Value:
\
template<typename T> \
\
template<typename T> \
\
\
template<typename T> \
\
template<typename T> \
\
template<typename T> \
QBitArray operator&(const QBitArray &a1, const QBitArray &a2)
constexpr T & bitwise_or_equal(T &a, const E &b)
constexpr std::underlying_type_t< E > bitwise_or(E x, E y)
constexpr std::underlying_type_t< E > bitwise_and(E x, E y)
GLboolean GLboolean GLboolean b
GLint GLint GLint GLint GLint x
GLboolean GLboolean GLboolean GLboolean a
constexpr QUrl::FormattingOptions operator|(QUrl::UrlFormattingOption f1, QUrl::UrlFormattingOption f2)
QUrl::FormattingOptions & operator|=(QUrl::FormattingOptions &i, QUrl::ComponentFormattingOptions f)
Definition at line 86 of file qlowenergycontroller_winrt.cpp.
◆ HR
Value: std::invoke([&]() { \
try { \
} catch (hresult_error const &e) { \
LOG_HRESULT(e.code()) <<
"/*" << #
x <<
"*/"; \
return e.code(); \
} \
return hresult{ S_OK } ; \
})
Definition at line 145 of file qlowenergycontroller_winrt.cpp.
◆ LOG_HRESULT
#define LOG_HRESULT |
( |
| hr | ) |
|
◆ RETURN_FALSE
#define RETURN_FALSE |
( |
| msg | ) |
|
◆ RETURN_MSG
#define RETURN_MSG |
( |
| msg | ) |
|
◆ RETURN_SERVICE_ERROR
#define RETURN_SERVICE_ERROR |
( |
| msg, |
|
|
| service, |
|
|
| error ) |
Value: { \
qCDebug(QT_BT_WINDOWS) << msg; \
service->setError(
error); \
return; \
}
DBusConnection const char DBusError * error
Definition at line 190 of file qlowenergycontroller_winrt.cpp.
◆ SAFE
Value: std::invoke([&]() { \
try { \
} catch (hresult_error const &e) { \
LOG_HRESULT(e.code()) <<
"/*" << #
x <<
"*/"; \
} \
})
Definition at line 167 of file qlowenergycontroller_winrt.cpp.
◆ TRY
Value: std::invoke([&]() { \
try { \
} catch (hresult_error const &e) { \
LOG_HRESULT(e.code()) <<
"/*" << #
x <<
"*/"; \
return false; \
} \
return true; \
})
Definition at line 156 of file qlowenergycontroller_winrt.cpp.
◆ WARN_AND_CONTINUE
#define WARN_AND_CONTINUE |
( |
| msg | ) |
|
◆ GlobalCondition
◆ await()
◆ await_forever()
◆ bitwise_and() [1/2]
template<typename
E, std::enable_if_t< std::is_enum_v<
E >, int > = 0>
std::underlying_type_t< E > bitwise_and |
( |
E | x, |
|
|
E | y ) |
|
inlineconstexpr |
◆ bitwise_and() [2/2]
template<typename T, typename
E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum<
E > >, int > = 0>
T bitwise_and |
( |
T | x, |
|
|
E | y ) |
|
inlineconstexpr |
◆ bitwise_or() [1/2]
template<typename
E, std::enable_if_t< std::is_enum_v<
E >, int > = 0>
std::underlying_type_t< E > bitwise_or |
( |
E | x, |
|
|
E | y ) |
|
inlineconstexpr |
◆ bitwise_or() [2/2]
template<typename T, typename
E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum<
E > >, int > = 0>
T bitwise_or |
( |
T | x, |
|
|
E | y ) |
|
inlineconstexpr |
◆ bitwise_or_equal()
template<typename T, typename
E, std::enable_if_t< std::conjunction_v< std::is_integral< T >, std::is_enum<
E > >, int > = 0>
T & bitwise_or_equal |
( |
T & | a, |
|
|
const E & | b ) |
|
inlineconstexpr |
◆ byteArrayFromBuffer()
QByteArray byteArrayFromBuffer |
( |
IBuffer | buffer, |
|
|
bool | isWCharString = false ) |
|
static |
◆ byteArrayFromGattResult()
QByteArray byteArrayFromGattResult |
( |
GattReadResult | gattResult, |
|
|
bool | isWCharString = false ) |
|
static |
◆ never()
◆ ClientCharConfigDescriptorResult
QT_BEGIN_NAMESPACE typedef GattReadClientCharacteristicConfigurationDescriptorResult ClientCharConfigDescriptorResult |
◆ kMaxConnectTimeout
constexpr qint64 kMaxConnectTimeout = 20000 |
|
staticconstexpr |
◆ timeout_infinity
int timeout_infinity = -1 |
|
constexpr |