Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qbluetoothserviceinfo_winrt.cpp File Reference

(664d2a1cf019f76adf433d41b1418e515ffce86c)

#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()

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

Definition at line 192 of file qbluetoothserviceinfo_winrt.cpp.

◆ getLengthForBaseType()

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

Definition at line 59 of file qbluetoothserviceinfo_winrt.cpp.

References typeIsOfBase().

Here is the call graph for this function:

◆ repairProfileDescriptorListIfNeeded()

bool repairProfileDescriptorListIfNeeded ( ComPtr< IBuffer > & buffer)

Definition at line 132 of file qbluetoothserviceinfo_winrt.cpp.

◆ typeIsOfBase()

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

Definition at line 54 of file qbluetoothserviceinfo_winrt.cpp.

Referenced by getLengthForBaseType().

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.

Variable Documentation

◆ __fakeServerPorts

QHash<QBluetoothServerPrivate *, int> __fakeServerPorts
extern

Definition at line 52 of file qbluetoothserviceinfo_winrt.cpp.