mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
a43cafa515
commit
5142d7409f
5 changed files with 109 additions and 8 deletions
|
|
@ -50,6 +50,10 @@ public:
|
|||
const QString ¤tProductText);
|
||||
Q_INVOKABLE QString getDetectedDeviceAddress(const QString ¤tVendorText,
|
||||
const QString ¤tProductText);
|
||||
Q_INVOKABLE QString getDeviceDescriptorVendor(const QString ¤tVendorText,
|
||||
const QString ¤tProductText);
|
||||
Q_INVOKABLE QString getDeviceDescriptorProduct(const QString ¤tVendorText,
|
||||
const QString ¤tProductText);
|
||||
|
||||
public slots:
|
||||
void setVendor(const QString& vendor);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue