mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
8aa7fddb22
commit
cc6c385f33
7 changed files with 94 additions and 14 deletions
|
@ -8,7 +8,8 @@
|
|||
#include <QDateTime>
|
||||
#include "devicedetails.h"
|
||||
|
||||
class ReadSettingsThread : public QThread {
|
||||
class ReadSettingsThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
ReadSettingsThread(QObject *parent, device_data_t *data);
|
||||
|
@ -22,7 +23,8 @@ private:
|
|||
device_data_t *m_data;
|
||||
};
|
||||
|
||||
class WriteSettingsThread : public QThread {
|
||||
class WriteSettingsThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
WriteSettingsThread(QObject *parent, device_data_t *data);
|
||||
|
@ -37,4 +39,20 @@ private:
|
|||
DeviceDetails *m_deviceDetails;
|
||||
};
|
||||
|
||||
class FirmwareUpdateThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
FirmwareUpdateThread(QObject *parent, device_data_t *data, QString fileName);
|
||||
virtual void run();
|
||||
QString lastError;
|
||||
signals:
|
||||
void progress(int percent);
|
||||
void message(QString msg);
|
||||
void error(QString err);
|
||||
private:
|
||||
device_data_t *m_data;
|
||||
QString m_fileName;
|
||||
};
|
||||
|
||||
#endif // CONFIGUREDIVECOMPUTERTHREADS_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue