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

(f762e9b646e240d9e8d3d7de928ae1333227c8a0)

#include "qbluetoothutils_winrt_p.h"
#include <QtBluetooth/private/qtbluetoothglobal_p.h>
#include <QtCore/private/qfunctions_winrt_p.h>
#include <QtCore/QLoggingCategory>
#include <robuffer.h>
#include <wrl.h>
#include <winrt/windows.foundation.metadata.h>
#include <windows.storage.streams.h>
+ Include dependency graph for qbluetoothutils_winrt.cpp:

Go to the source code of this file.

Functions

QT_BEGIN_NAMESPACE QByteArray byteArrayFromBuffer (const ComPtr< NativeBuffer > &buffer, bool isWCharString)
 
void mainThreadCoInit (void *caller)
 
void mainThreadCoUninit (void *caller)
 

Variables

static QSet< void * > successfulInits
 
static QThreadmainThread = nullptr
 

Function Documentation

◆ byteArrayFromBuffer()

QT_BEGIN_NAMESPACE QByteArray byteArrayFromBuffer ( const ComPtr< NativeBuffer > & buffer,
bool isWCharString )

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:

Variable Documentation

◆ mainThread

◆ successfulInits

QSet<void*> successfulInits
static

Definition at line 45 of file qbluetoothutils_winrt.cpp.

Referenced by mainThreadCoInit(), and mainThreadCoUninit().