From 9d582c5512c261bbea5d6257375c291a06721950 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 13 Feb 2019 22:48:50 -0800 Subject: Mobile: only show dive computers in the Bluetooth connection list And offer an option to show all devices in the settings. This is intentionally not stored in the preferences as this should never be needed. We don't support BT or BLE dive computers that we don't recognize. This is a last resort in case a new firmware were to change the name or some other weird issue causes us not to recognize a dive computer - and that should be fixed instead of worked around. Signed-off-by: Dirk Hohndel --- core/btdiscovery.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'core/btdiscovery.h') diff --git a/core/btdiscovery.h b/core/btdiscovery.h index 060f2c705..d6c25d8b0 100644 --- a/core/btdiscovery.h +++ b/core/btdiscovery.h @@ -46,6 +46,8 @@ public: void btDeviceDiscovered(const QBluetoothDeviceInfo &device); void btDeviceDiscoveredMain(const btPairedDevice &device); bool btAvailable() const; + void showNonDiveComputers(bool show); + #if defined(Q_OS_ANDROID) void getBluetoothDevices(); #endif @@ -57,6 +59,7 @@ public: private: static BTDiscovery *m_instance; bool m_btValid; + bool m_showNonDiveComputers; QList btDCs; // recognized DCs QList btAllDevices; // all paired BT stuff -- cgit v1.2.3-70-g09d2