diff options
Diffstat (limited to 'configuredivecomputerthreads.h')
-rw-r--r-- | configuredivecomputerthreads.h | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/configuredivecomputerthreads.h b/configuredivecomputerthreads.h index db54db460..66df7a93b 100644 --- a/configuredivecomputerthreads.h +++ b/configuredivecomputerthreads.h @@ -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 |