Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qbluetoothserviceinfo_winrt.cpp File Reference
#include "qbluetoothserviceinfo.h"
#include "qbluetoothserviceinfo_p.h"
#include "qbluetoothserver_p.h"
#include "qbluetoothutils_winrt_p.h"
#include <QtCore/QLoggingCategory>
#include <QtCore/private/qfunctions_winrt_p.h>
#include <wrl.h>
#include <windows.devices.bluetooth.h>
#include <windows.devices.bluetooth.rfcomm.h>
#include <windows.foundation.h>
#include <windows.networking.sockets.h>
#include <windows.storage.streams.h>
+ Include dependency graph for qbluetoothserviceinfo_winrt.cpp:

Go to the source code of this file.

Macros

#define TYPE_VOID   0
 
#define TYPE_UINT8   8
 
#define TYPE_UINT16   9
 
#define TYPE_UINT32   10
 
#define TYPE_UINT64   11
 
#define TYPE_INT8   16
 
#define TYPE_INT16   17
 
#define TYPE_INT32   18
 
#define TYPE_INT64   19
 
#define TYPE_UUID16   25
 
#define TYPE_UUID32   26
 
#define TYPE_UUID128   28
 
#define TYPE_STRING_BASE   32
 
#define TYPE_BOOLEAN   40
 
#define TYPE_SEQUENCE_BASE   48
 
#define TYPE_ALTERNATIVE_BASE   56
 
#define TYPE_URL_BASE   64
 

Functions

bool typeIsOfBase (unsigned char type, unsigned char baseType)
 
qint64 getLengthForBaseType (unsigned char type, ComPtr< IDataReader > &reader)
 
bool writeStringHelper (const QString &string, ComPtr< IDataWriter > writer)
 
bool repairProfileDescriptorListIfNeeded (ComPtr< IBuffer > &buffer)
 
static ComPtr< IBuffer > bufferFromAttribute (const QVariant &attribute)
 

Variables

QHash< QBluetoothServerPrivate *, int > __fakeServerPorts
 

Macro Definition Documentation

◆ TYPE_ALTERNATIVE_BASE

#define TYPE_ALTERNATIVE_BASE   56

Definition at line 49 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_BOOLEAN

#define TYPE_BOOLEAN   40

Definition at line 47 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_INT16

#define TYPE_INT16   17

Definition at line 39 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_INT32

#define TYPE_INT32   18

Definition at line 40 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_INT64

#define TYPE_INT64   19

Definition at line 41 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_INT8

#define TYPE_INT8   16

Definition at line 38 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_SEQUENCE_BASE

#define TYPE_SEQUENCE_BASE   48

Definition at line 48 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_STRING_BASE

#define TYPE_STRING_BASE   32

Definition at line 46 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UINT16

#define TYPE_UINT16   9

Definition at line 34 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UINT32

#define TYPE_UINT32   10

Definition at line 35 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UINT64

#define TYPE_UINT64   11

Definition at line 36 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UINT8

#define TYPE_UINT8   8

Definition at line 33 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_URL_BASE

#define TYPE_URL_BASE   64

Definition at line 50 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UUID128

#define TYPE_UUID128   28

Definition at line 45 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UUID16

#define TYPE_UUID16   25

Definition at line 43 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_UUID32

#define TYPE_UUID32   26

Definition at line 44 of file qbluetoothserviceinfo_winrt.cpp.

◆ TYPE_VOID

#define TYPE_VOID   0

Definition at line 32 of file qbluetoothserviceinfo_winrt.cpp.

Function Documentation

◆ bufferFromAttribute()

static ComPtr< IBuffer > bufferFromAttribute ( const QVariant attribute)
static

Definition at line 192 of file qbluetoothserviceinfo_winrt.cpp.

References bufferFromAttribute(), QString::fromLatin1(), QBluetoothUuid::minimumSize(), Q_FUNC_INFO, qCDebug, qCWarning, qint8, QByteArray::toHex(), TYPE_BOOLEAN, TYPE_INT16, TYPE_INT32, TYPE_INT64, TYPE_INT8, TYPE_SEQUENCE_BASE, TYPE_UINT16, TYPE_UINT32, TYPE_UINT64, TYPE_UINT8, TYPE_UUID128, TYPE_UUID16, TYPE_UUID32, TYPE_VOID, and writeStringHelper().

Referenced by bufferFromAttribute().

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

◆ getLengthForBaseType()

qint64 getLengthForBaseType ( unsigned char  type,
ComPtr< IDataReader > &  reader 
)

Definition at line 59 of file qbluetoothserviceinfo_winrt.cpp.

References TYPE_ALTERNATIVE_BASE, TYPE_SEQUENCE_BASE, TYPE_STRING_BASE, TYPE_URL_BASE, and typeIsOfBase().

Referenced by repairProfileDescriptorListIfNeeded().

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

◆ repairProfileDescriptorListIfNeeded()

bool repairProfileDescriptorListIfNeeded ( ComPtr< IBuffer > &  buffer)

Definition at line 132 of file qbluetoothserviceinfo_winrt.cpp.

References getLengthForBaseType(), Q_FUNC_INFO, qCDebug, qCWarning, TYPE_SEQUENCE_BASE, TYPE_UINT16, TYPE_UUID16, and typeIsOfBase().

+ Here is the call graph for this function:

◆ typeIsOfBase()

bool typeIsOfBase ( unsigned char  type,
unsigned char  baseType 
)
inline

Definition at line 54 of file qbluetoothserviceinfo_winrt.cpp.

Referenced by getLengthForBaseType(), and repairProfileDescriptorListIfNeeded().

+ Here is the caller graph for this function:

◆ writeStringHelper()

bool writeStringHelper ( const QString string,
ComPtr< IDataWriter >  writer 
)

Definition at line 94 of file qbluetoothserviceinfo_winrt.cpp.

References qCWarning, and TYPE_STRING_BASE.

Referenced by bufferFromAttribute().

+ Here is the caller graph for this function:

Variable Documentation

◆ __fakeServerPorts