summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-12 04:13:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-07-12 04:13:25 -0700
commitbec5f3c44f4c08a19700bce912c818c2d650a224 (patch)
tree4a1734295bcba7388b265a07958119a285ed849d /core/btdiscovery.h
parent0c5f373ec0f40d1e89686c1d59bc113739ff2bc9 (diff)
downloadsubsurface-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.h2
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