aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-06 18:29:27 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-08-11 11:14:22 -0700
commit0b242bcaca6a6cb1f0ae734f8ea1c1b22a01648b (patch)
tree3f0b0333bbba41e1bcb9a378dc326e7ea537cafd /mobile-widgets/qmlmanager.cpp
parenta3ddd823bbba8f72495c01e62e91639cc6b88694 (diff)
downloadsubsurface-0b242bcaca6a6cb1f0ae734f8ea1c1b22a01648b.tar.gz
Android: notify the UI a dive computer was plugged in
And try to guess which one from the device string we get from the Intent. The function is named to indicate its future use (because once the user plugs in such a device, we should show the download page). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index 3495468db..1adf5bf57 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1776,3 +1776,10 @@ int QMLManager::getDetectedProductIndex(const QString &currentVendorText)
{
return m_device_data->getDetectedProductIndex(currentVendorText);
}
+
+void QMLManager::showDownloadPage(QString deviceString)
+{
+ // inform the QML UI that it should show the download page
+ m_pluggedInDeviceName = strdup(qPrintable(deviceString));
+ emit pluggedInDeviceNameChanged();
+}