summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 8cc2ca940..232b50cfa 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1757,6 +1757,17 @@ void QMLManager::setStatusbarColor(QColor)
#endif
+void QMLManager::retrieveBluetoothName()
+{
+ QString name = DC_devName();
+ QList<BTDiscovery::btVendorProduct> btDCs = BTDiscovery::instance()->getBtDcs();
+ foreach (BTDiscovery::btVendorProduct btDC, btDCs) {
+ qDebug() << "compare" <<name << btDC.btpdi.address;
+ if (name.contains(btDC.btpdi.address))
+ DC_setDevBluetoothName(btDC.btpdi.name);
+ }
+}
+
QString QMLManager::DC_vendor() const
{
return DCDeviceData::instance()->vendor();