AusweisApp2
BluetoothDeviceUtil.h
gehe zur Dokumentation dieser Datei
1
7
#pragma once
8
9
10
#include <QBluetoothAddress>
11
#include <QBluetoothDeviceInfo>
12
#include <QBluetoothUuid>
13
14
15
class
BluetoothDeviceUtil
16
{
17
private
:
18
BluetoothDeviceUtil
() =
delete
;
19
~
BluetoothDeviceUtil
() =
delete
;
20
21
public
:
32
static
QString
getDeviceId
(
const
QBluetoothDeviceInfo& pInfo)
33
{
34
#if defined(Q_OS_IOS) || defined(Q_OS_X)
35
return
pInfo.deviceUuid().toString();
36
37
#else
38
return
pInfo.address().toString();
39
40
#endif
41
}
42
43
44
};
BluetoothDeviceUtil
Utility function for determination of unique Bluetooth device ids.
Definition:
BluetoothDeviceUtil.h:16
BluetoothDeviceUtil::getDeviceId
static QString getDeviceId(const QBluetoothDeviceInfo &pInfo)
According to the Qt documentation:
Definition:
BluetoothDeviceUtil.h:32
src
card
bluetooth
BluetoothDeviceUtil.h
Erzeugt von
1.8.18