mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
9f95f3ce18
commit
52084c80f7
4 changed files with 51 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue