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
qbluetoothutils_winrt_p.h File Reference

(9d36ae3f8d00299ac483df983f244f3b1cc16d76)

#include <winrt/base.h>
#include <QtCore/private/qfactorycacheregistration_p.h>
#include <QtCore/QtGlobal>
#include <QtCore/private/qglobal_p.h>
#include <wrl/client.h>
+ Include dependency graph for qbluetoothutils_winrt_p.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  winrt
 
namespace  winrt::impl
 
namespace  ABI
 
namespace  ABI::Windows
 
namespace  ABI::Windows::Storage
 
namespace  ABI::Windows::Storage::Streams
 

Typedefs

using NativeBuffer = ABI::Windows::Storage::Streams::IBuffer
 

Functions

template<typename Async >
auto winrt::impl::wait_for (Async const &async, Windows::Foundation::TimeSpan const &timeout)
 
QByteArray byteArrayFromBuffer (const Microsoft::WRL::ComPtr< NativeBuffer > &buffer, bool isWCharString=false)
 
void mainThreadCoInit (void *caller)
 
void mainThreadCoUninit (void *caller)
 

Typedef Documentation

◆ NativeBuffer

using NativeBuffer = ABI::Windows::Storage::Streams::IBuffer

Definition at line 45 of file qbluetoothutils_winrt_p.h.

Function Documentation

◆ byteArrayFromBuffer()

QByteArray byteArrayFromBuffer ( const Microsoft::WRL::ComPtr< NativeBuffer > & buffer,
bool isWCharString = false )

Definition at line 23 of file qbluetoothutils_winrt.cpp.

References QString::fromUtf16(), QByteArray(), qErrnoWarning(), and QString::toUtf8().

+ Here is the call graph for this function:

◆ mainThreadCoInit()

void mainThreadCoInit ( void * caller)

Definition at line 48 of file qbluetoothutils_winrt.cpp.

References QThread::currentThread(), QCoreApplication::instance(), mainThread, Q_ASSERT, Q_ASSERT_X, qCWarning, and successfulInits.

Referenced by QBluetoothSocketPrivateWinRT::QBluetoothSocketPrivateWinRT().

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

◆ mainThreadCoUninit()

void mainThreadCoUninit ( void * caller)

Definition at line 75 of file qbluetoothutils_winrt.cpp.

References QThread::currentThread(), mainThread, Q_ASSERT, qCWarning, and successfulInits.

Referenced by QBluetoothSocketPrivateWinRT::~QBluetoothSocketPrivateWinRT().

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