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:
Dirk Hohndel 2014-12-27 08:31:51 -08:00
parent 9f95f3ce18
commit 52084c80f7
4 changed files with 51 additions and 16 deletions

View file

@ -6,7 +6,8 @@
#include <QHash>
#include <QMap>
#include "../libdivecomputer.h"
#include "libdivecomputer.h"
#include "configuredivecomputerdialog.h"
#include "ui_downloadfromdivecomputer.h"
class QStringListModel;
@ -75,6 +76,7 @@ private:
QString dumpFile;
QTimer *timer;
bool dumpWarningShown;
OstcFirmwareCheck *ostcFirmwareCheck;
public:
bool preferDownloaded();