AusweisApp2
AndroidBluetoothAdapter.h
gehe zur Dokumentation dieser Datei
1 
7 #pragma once
8 
9 
10 #include <QBluetoothDeviceInfo>
11 #include <QVector>
12 
13 
14 namespace governikus
15 {
16 
18 {
19  private:
20  static QBluetoothDeviceInfo::CoreConfiguration fromAndroidDeviceType(int pAndroidDeviceTypeConstant);
21 
22  bool mAvailable;
23  bool mStateOn;
24  QVector<QBluetoothDeviceInfo> mBondedDevices;
25 
26  AndroidBluetoothAdapter(bool pAvailable = false,
27  bool pStateOn = false,
28  const QVector<QBluetoothDeviceInfo>& pKnownBluetoothDevices = QVector<QBluetoothDeviceInfo>());
29 
30  public:
35 
39  QVector<QBluetoothDeviceInfo> getBondedDevices() const;
40 
44  bool isStateOn() const;
45 
46  bool isAvailable() const;
47 };
48 
49 } // namespace governikus
governikus::AndroidBluetoothAdapter
Definition: AndroidBluetoothAdapter.h:18
name
const char * name
Definition: http_parser.cpp:470
governikus::AndroidBluetoothAdapter::isAvailable
bool isAvailable() const
Definition: AndroidBluetoothAdapter.cpp:112
DEVICE_TYPE_LE
const int DEVICE_TYPE_LE
Definition: AndroidBluetoothAdapter.cpp:21
DEVICE_TYPE_CLASSIC
const int DEVICE_TYPE_CLASSIC
Definition: AndroidBluetoothAdapter.cpp:19
STATE_ON
const int STATE_ON
Definition: AndroidBluetoothAdapter.cpp:26
governikus
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15
governikus::AndroidBluetoothAdapter::isStateOn
bool isStateOn() const
Returns true, if bluetooth is turned on.
Definition: AndroidBluetoothAdapter.cpp:106
governikus::AndroidBluetoothAdapter::getDefaultAdapter
static AndroidBluetoothAdapter getDefaultAdapter()
Get the default bluetooth adapter.
Definition: AndroidBluetoothAdapter.cpp:57
governikus::AndroidBluetoothAdapter::getBondedDevices
QVector< QBluetoothDeviceInfo > getBondedDevices() const
Return the set of BluetoothDeviceInfo objects that are bonded (paired) to the local adapter.
Definition: AndroidBluetoothAdapter.cpp:100
DEVICE_TYPE_DUAL
const int DEVICE_TYPE_DUAL
Definition: AndroidBluetoothAdapter.cpp:20
AndroidBluetoothAdapter.h