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
static AndroidBluetoothAdapter getDefaultAdapter()
Get the default bluetooth adapter.
Definition: AndroidBluetoothAdapter.cpp:57
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:14
bool isStateOn() const
Returns true, if bluetooth is turned on.
Definition: AndroidBluetoothAdapter.cpp:106
bool isAvailable() const
Definition: AndroidBluetoothAdapter.cpp:112
QVector< QBluetoothDeviceInfo > getBondedDevices() const
Return the set of BluetoothDeviceInfo objects that are bonded (paired) to the local adapter...
Definition: AndroidBluetoothAdapter.cpp:100
Definition: AndroidBluetoothAdapter.h:17