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 
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 };
Utility function for determination of unique Bluetooth device ids.
Definition: BluetoothDeviceUtil.h:16
static QString getDeviceId(const QBluetoothDeviceInfo &pInfo)
According to the Qt documentation:
Definition: BluetoothDeviceUtil.h:32