QML UI: add property to pass detected device name to UI

If the user plugs in a device on Android we get a device string that
should allow us to figure out which dive computer was plugged in. Make
that string available to the QML UI.

Right now all we do is log it.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2018-08-06 06:24:51 -07:00
parent 7cc9da6347
commit a3ddd823bb
3 changed files with 11 additions and 2 deletions

View file

@ -139,7 +139,8 @@ QMLManager::QMLManager() : m_locationServiceEnabled(false),
m_updateSelectedDive(-1),
m_selectedDiveTimestamp(0),
alreadySaving(false),
m_device_data(new DCDeviceData)
m_device_data(new DCDeviceData),
m_pluggedInDeviceName("")
{
LOG_STP("qmlmgr starting");
m_instance = this;