summaryrefslogtreecommitdiffstats
path: root/core/btdiscovery.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-09-27 06:21:04 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-10-12 08:22:44 -0700
commitc8fec97695cc2f71b59f3d8979b4203aefc6e6db (patch)
tree0340a5187be9e9558e0cdb39afd2efb29c2c1ba0 /core/btdiscovery.h
parent7512a6e9155196a3ede34b8a552c7c8dfb955ad3 (diff)
downloadsubsurface-c8fec97695cc2f71b59f3d8979b4203aefc6e6db.tar.gz
Bluetooth: add helper to separate BT name and address
And restructure the existing "isBtAddress()" function in the process. Also add more tests. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r--core/btdiscovery.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h
index 17790e30c..679e0cae6 100644
--- a/core/btdiscovery.h
+++ b/core/btdiscovery.h
@@ -18,6 +18,8 @@
void saveBtDeviceInfo(const QString &devaddr, QBluetoothDeviceInfo deviceInfo);
bool isBluetoothAddress(const QString &address);
+QString extractBluetoothAddress(const QString &address);
+QString extractBluetoothNameAddress(const QString &address, QString &name);
QBluetoothDeviceInfo getBtDeviceInfo(const QString &devaddr);
class BTDiscovery : public QObject {