summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.h
diff options
context:
space:
mode:
authorGravatar Jan Mulder <jlmulder@xs4all.nl>2017-06-10 14:22:28 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-06-12 10:59:05 -0700
commit5142d7409f9dc9a102ae9b5898b43b57621c660c (patch)
tree2a8f14ceffbaaf6d9a3cb78568412772c16c386f /core/btdiscovery.h
parenta43cafa515f339b2a10069e7ebe926964449d447 (diff)
downloadsubsurface-5142d7409f9dc9a102ae9b5898b43b57621c660c.tar.gz
Mobile: add BT name to vendor/product capability
This adds a central function to convert a BT name to a vendor/product pair known to Subsurface. This allows interfacing from a paired BT dive computer, without actively selecting its type, but by selecting it from the list of paired BT devices. So, after this, downloading from multiple (paired) DCs is also possible. And not the niced piece of code ... Signed-off-by: Jan Mulder <jlmulder@xs4all.nl> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r--core/btdiscovery.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h
index 1951b6672..301c4195d 100644
--- a/core/btdiscovery.h
+++ b/core/btdiscovery.h
@@ -9,13 +9,17 @@
#include <QBluetoothLocalDevice>
#include <QBluetoothDeviceDiscoveryAgent>
#include <QBluetoothUuid>
+#include "core/libdivecomputer.h"
struct btVendorProduct {
QBluetoothDeviceInfo btdi;
+ dc_descriptor_t *dcDescriptor;
int vendorIdx;
int productIdx;
};
+static dc_descriptor_t *getDeviceType(QString btName);
+
#endif
#if defined(Q_OS_ANDROID)
#include <QAndroidJniObject>