summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r--core/btdiscovery.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h
index 301c4195d..72ed39a07 100644
--- a/core/btdiscovery.h
+++ b/core/btdiscovery.h
@@ -11,12 +11,7 @@
#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);
@@ -39,12 +34,21 @@ public:
QBluetoothAddress address;
QString name;
};
+
+ struct btVendorProduct {
+ btPairedDevice btpdi;
+ dc_descriptor_t *dcDescriptor;
+ int vendorIdx;
+ int productIdx;
+ };
+
void btDeviceDiscovered(const QBluetoothDeviceInfo &device);
+ void btDeviceDiscoveredMain(const btPairedDevice &device);
#if defined(Q_OS_ANDROID)
void getBluetoothDevices();
#endif
- QList<struct btVendorProduct> getBtDcs();
- QList<struct btVendorProduct> getBtAllDevices();
+ QList<btVendorProduct> getBtDcs();
+ QList<btVendorProduct> getBtAllDevices();
#endif
private:
static BTDiscovery *m_instance;