summaryrefslogtreecommitdiffstats
path: root/core/downloadfromdcthread.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/downloadfromdcthread.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/downloadfromdcthread.h')
-rw-r--r--core/downloadfromdcthread.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/downloadfromdcthread.h b/core/downloadfromdcthread.h
index f606a7a74..912c33258 100644
--- a/core/downloadfromdcthread.h
+++ b/core/downloadfromdcthread.h
@@ -50,6 +50,10 @@ public:
const QString &currentProductText);
Q_INVOKABLE QString getDetectedDeviceAddress(const QString &currentVendorText,
const QString &currentProductText);
+ Q_INVOKABLE QString getDeviceDescriptorVendor(const QString &currentVendorText,
+ const QString &currentProductText);
+ Q_INVOKABLE QString getDeviceDescriptorProduct(const QString &currentVendorText,
+ const QString &currentProductText);
public slots:
void setVendor(const QString& vendor);