From ede6a38bcf38bbff56a8e41cb38f69c1532d0697 Mon Sep 17 00:00:00 2001 From: Joshua Joseph Date: Wed, 2 Apr 2014 22:41:39 +0300 Subject: 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 Signed-off-by: Dirk Hohndel --- qt-ui/updatemanager.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 qt-ui/updatemanager.h (limited to 'qt-ui/updatemanager.h') diff --git a/qt-ui/updatemanager.h b/qt-ui/updatemanager.h new file mode 100644 index 000000000..18b47cfde --- /dev/null +++ b/qt-ui/updatemanager.h @@ -0,0 +1,21 @@ +#ifndef UPDATEMANAGER_H +#define UPDATEMANAGER_H + +#include + +class QNetworkAccessManager; +class QNetworkReply; + +class UpdateManager : public QObject +{ + Q_OBJECT +public: + explicit UpdateManager(QObject *parent = 0); + void checkForUpdates(); +private: + QNetworkAccessManager *manager; +public slots: + void requestReceived(QNetworkReply* reply); +}; + +#endif // UPDATEMANAGER_H -- cgit v1.2.3-70-g09d2