diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-07-12 04:13:25 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-12 04:13:25 -0700 |
commit | bec5f3c44f4c08a19700bce912c818c2d650a224 (patch) | |
tree | 4a1734295bcba7388b265a07958119a285ed849d /core/btdiscovery.h | |
parent | 0c5f373ec0f40d1e89686c1d59bc113739ff2bc9 (diff) | |
download | subsurface-bec5f3c44f4c08a19700bce912c818c2d650a224.tar.gz |
BT support: track if Bluetooth is available
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r-- | core/btdiscovery.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h index 1432df260..4b4e4b802 100644 --- a/core/btdiscovery.h +++ b/core/btdiscovery.h @@ -40,6 +40,7 @@ public: void btDeviceDiscovered(const QBluetoothDeviceInfo &device); void btDeviceDiscoveredMain(const btPairedDevice &device); + bool btAvailable() const; #if defined(Q_OS_ANDROID) void getBluetoothDevices(); #endif @@ -47,6 +48,7 @@ public: #endif private: static BTDiscovery *m_instance; + bool m_btValid; #if defined(BT_SUPPORT) QList<struct btVendorProduct> btDCs; // recognized DCs QList<struct btVendorProduct> btAllDevices; // all paired BT stuff |