Add "Check for updates" Feature

This patch adds a check for updates feature.

It connects to http://subsurface.hohndel.org/updatecheck.html to check for
any new versions. It then prompts the user with a download link if an
update is available.

Signed-off-by: Joseph W. Joshua <joejoshw@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Joshua Joseph 2014-04-02 22:41:39 +03:00 committed by Dirk Hohndel
parent 5cec965cb7
commit ede6a38bcf
6 changed files with 109 additions and 2 deletions

View file

@ -28,6 +28,7 @@ class MainTab;
class ProfileGraphicsView;
class QWebView;
class QSettings;
class UpdateManager;
enum MainWindowTitleFormat {
MWTF_DEFAULT,
@ -121,6 +122,7 @@ slots:
void on_actionAboutSubsurface_triggered();
void on_actionUserManual_triggered();
void on_actionDivePlanner_triggered();
void on_action_Check_for_Updates_triggered();
void current_dive_changed(int divenr);
void initialUiSetup();
@ -171,6 +173,7 @@ private:
QString lastUsedDir();
void updateLastUsedDir(const QString &s);
bool filesAsArguments;
UpdateManager *updateManager;
};
MainWindow *mainWindow();