summaryrefslogtreecommitdiffstats
path: root/qt-ui/configuredivecomputerdialog.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-27 08:31:51 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-12-27 08:31:51 -0800
commit52084c80f7f03f8e8066bc7ccf9f747a38cbd60c (patch)
treef077e98775f53876ef8c6954f7625b5673c6a7a3 /qt-ui/configuredivecomputerdialog.h
parent9f95f3ce18a1c25b0407335f472987c64940153d (diff)
downloadsubsurface-52084c80f7f03f8e8066bc7ccf9f747a38cbd60c.tar.gz
Move OSTC firmware check around a bit
This rearranges the code so we can call it from the download dialog and tell the user if there is a newer version of the firmware available. This needs a proper dialog and needs to be hooked up so that the user can accept the suggestion and go directly to the firmware update code. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/configuredivecomputerdialog.h')
-rw-r--r--qt-ui/configuredivecomputerdialog.h16
1 files changed, 13 insertions, 3 deletions
diff --git a/qt-ui/configuredivecomputerdialog.h b/qt-ui/configuredivecomputerdialog.h
index 99f1e9c32..fa43592c2 100644
--- a/qt-ui/configuredivecomputerdialog.h
+++ b/qt-ui/configuredivecomputerdialog.h
@@ -74,8 +74,6 @@ private slots:
void on_updateFirmwareButton_clicked();
void on_DiveComputerList_currentRowChanged(int currentRow);
- void findVersion();
-
private:
Ui::ConfigureDiveComputerDialog ui;
@@ -102,8 +100,20 @@ private:
QString selected_vendor;
QString selected_product;
- QWebPage hwVersionPage;
+};
+class OstcFirmwareCheck : QObject
+{
+ Q_OBJECT
+public:
+ explicit OstcFirmwareCheck();
+ void checkLatest(uint32_t firmwareOnDevice);
+public
+slots:
+ void parseOstcFwVersion();
+private:
+ QWebPage hwVersionPage;
+ QString latestFirmwareAvailable;
};
#endif // CONFIGUREDIVECOMPUTERDIALOG_H