Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbluetoothsocket_winrt.cpp File Reference
#include "qbluetoothsocket_winrt_p.h"
#include "qbluetoothutils_winrt_p.h"
#include <QtBluetooth/QBluetoothLocalDevice>
#include <QtBluetooth/qbluetoothdeviceinfo.h>
#include <QtBluetooth/qbluetoothserviceinfo.h>
#include <QtCore/qloggingcategory.h>
#include <QtCore/QPointer>
#include <QtCore/private/qfunctions_winrt_p.h>
#include <robuffer.h>
#include <windows.devices.bluetooth.h>
#include <windows.networking.sockets.h>
#include <windows.storage.streams.h>
#include <wrl.h>
#include "qbluetoothsocket_winrt.moc"
+ Include dependency graph for qbluetoothsocket_winrt.cpp:

Go to the source code of this file.

Classes

struct  SocketGlobal
 
class  SocketWorker
 

Macros

#define READ_BUFFER_SIZE   65536
 

Typedefs

typedef IAsyncOperationWithProgressCompletedHandler< IBuffer *, UINT32 > SocketReadCompletedHandler
 
typedef IAsyncOperationWithProgress< IBuffer *, UINT32 > IAsyncBufferOperation
 

Functions

static QString qt_QStringFromHString (const HString &string)
 
static qint64 writeIOStream (ComPtr< IOutputStream > stream, const char *data, qint64 len)
 
static QString fromWinApiAddress (HString address)
 

Macro Definition Documentation

◆ READ_BUFFER_SIZE

#define READ_BUFFER_SIZE   65536

Definition at line 51 of file qbluetoothsocket_winrt.cpp.

Typedef Documentation

◆ IAsyncBufferOperation

typedef IAsyncOperationWithProgress<IBuffer *, UINT32> IAsyncBufferOperation

Definition at line 31 of file qbluetoothsocket_winrt.cpp.

◆ SocketReadCompletedHandler

typedef IAsyncOperationWithProgressCompletedHandler<IBuffer *, UINT32> SocketReadCompletedHandler

Definition at line 30 of file qbluetoothsocket_winrt.cpp.

Function Documentation

◆ fromWinApiAddress()

static QString fromWinApiAddress ( HString  address)
static

Definition at line 517 of file qbluetoothsocket_winrt.cpp.

References QString::endsWith(), qt_QStringFromHString(), QString::size(), QString::sliced(), and QString::startsWith().

Referenced by QBluetoothSocketPrivateWinRT::localAddress(), and QBluetoothSocketPrivateWinRT::peerAddress().

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

◆ qt_QStringFromHString()

static QString qt_QStringFromHString ( const HString &  string)
inlinestatic

Definition at line 53 of file qbluetoothsocket_winrt.cpp.

References QString::fromWCharArray().

Referenced by fromWinApiAddress(), QBluetoothSocketPrivateWinRT::localPort(), QBluetoothSocketPrivateWinRT::peerName(), and QBluetoothSocketPrivateWinRT::peerPort().

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

◆ writeIOStream()

static qint64 writeIOStream ( ComPtr< IOutputStream >  stream,
const char *  data,
qint64  len 
)
static

Definition at line 62 of file qbluetoothsocket_winrt.cpp.

References qCWarning.

Referenced by QBluetoothSocketPrivateWinRT::writeData().

+ Here is the caller graph for this function: