diff options
author | Joseph W. Joshua <joejoshw@gmail.com> | 2014-06-23 18:16:27 +0300 |
---|---|---|
committer | Thiago Macieira <thiago@macieira.org> | 2014-08-13 10:48:15 -0700 |
commit | cc6c385f3309417727f61b55550d6d47bef004dd (patch) | |
tree | 2b86c64b388ad7005cbf952bc3c93ef9abcbb1d3 /configuredivecomputer.cpp | |
parent | 8aa7fddb22cd6ab4d533082598be04649bb1ff21 (diff) | |
download | subsurface-cc6c385f3309417727f61b55550d6d47bef004dd.tar.gz |
Start Work on Firmware Update
This patch implements the first step towards OSTC 3 firmware update.
Its not much, just file selection, but I will build up on it from there.
Implements a thread to initiate firmware updates. Currently, this is
for the OSTC 3.
Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Thiago Macieira <thiago@macieira.org>
Diffstat (limited to 'configuredivecomputer.cpp')
-rw-r--r-- | configuredivecomputer.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/configuredivecomputer.cpp b/configuredivecomputer.cpp index 657f6fd10..c7b0ccbe9 100644 --- a/configuredivecomputer.cpp +++ b/configuredivecomputer.cpp @@ -24,10 +24,10 @@ void ConfigureDiveComputer::readSettings(device_data_t *data) readThread->deleteLater(); readThread = new ReadSettingsThread(this, data); - connect (readThread, SIGNAL(finished()), + connect(readThread, SIGNAL(finished()), this, SLOT(readThreadFinished()), Qt::QueuedConnection); - connect (readThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); - connect (readThread, SIGNAL(devicedetails(DeviceDetails*)), this, + connect(readThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); + connect(readThread, SIGNAL(devicedetails(DeviceDetails*)), this, SIGNAL(deviceDetailsChanged(DeviceDetails*))); readThread->start(); @@ -41,9 +41,9 @@ void ConfigureDiveComputer::saveDeviceDetails(DeviceDetails *details, device_dat writeThread->deleteLater(); writeThread = new WriteSettingsThread(this, data); - connect (writeThread, SIGNAL(finished()), + connect(writeThread, SIGNAL(finished()), this, SLOT(writeThreadFinished()), Qt::QueuedConnection); - connect (writeThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); + connect(writeThread, SIGNAL(error(QString)), this, SLOT(setError(QString))); writeThread->setDeviceDetails(details); writeThread->start(); @@ -417,6 +417,11 @@ bool ConfigureDiveComputer::restoreXMLBackup(QString fileName, DeviceDetails *de return true; } +void ConfigureDiveComputer::startFirmwareUpdate(QString fileName, device_data_t *data, QString errorText) +{ + +} + void ConfigureDiveComputer::setState(ConfigureDiveComputer::states newState) { currentState = newState; |