summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Joshua Joseph <joejoshw@gmail.com>2014-04-02 22:41:39 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-04-02 12:47:41 -0700
commitede6a38bcf38bbff56a8e41cb38f69c1532d0697 (patch)
tree975aa14d60bb491cd3880b2d239d335682557127 /qt-ui/mainwindow.h
parent5cec965cb7bea3abbb12823404b6a7cfcfb57225 (diff)
downloadsubsurface-ede6a38bcf38bbff56a8e41cb38f69c1532d0697.tar.gz
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>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index a0c5be333..f47ade861 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -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();