summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/DownloadFromDiveComputer.qml
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2017-05-26 16:40:50 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-05-27 11:07:20 -0700
commit7858376727ee467ae59a18d84d40e3148ea3e38b (patch)
tree9dc19db2ec7facb3641e79f3804685803d2c063b /mobile-widgets/qml/DownloadFromDiveComputer.qml
parent85e92597b561f349d24f2181e763c6ed381654ce (diff)
downloadsubsurface-7858376727ee467ae59a18d84d40e3148ea3e38b.tar.gz
QML UI: add the DownloadThread
For this I had to also make the DCDeviceData accessible, and for that it needed to be a pointer. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/DownloadFromDiveComputer.qml')
-rw-r--r--mobile-widgets/qml/DownloadFromDiveComputer.qml20
1 files changed, 19 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml
index ecab94774..4587f2e98 100644
--- a/mobile-widgets/qml/DownloadFromDiveComputer.qml
+++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml
@@ -28,6 +28,24 @@ Kirigami.Page {
}
]
*/
+ DCDownloadThread {
+ id: downlodaThread
+ deviceData.vendor : comboVendor.currentText
+ deviceData.product : comboProduct.currentText
+
+ //TODO: make this dynamic?
+ deviceData.devName : "/tmp/ttyS1"
+
+ //TODO: Make this the default on the C++
+ deviceData.bluetoothMode : false
+ deviceData.forceDownload : false
+ deviceData.createNewTrip : false
+ deviceData.deviceId : 0
+ deviceData.diveId : 0
+ deviceData.saveDump : false
+ deviceData.saveLog : false
+ }
+
ColumnLayout {
anchors.top: parent.top
height: parent.height
@@ -59,7 +77,7 @@ Kirigami.Page {
text: qsTr("Download")
onClicked: {
text: qsTr("Retry")
- stackView.pop();
+ downlodaThread.start()
}
}
Button {