diff options
author | Joshua Joseph <joejoshw@gmail.com> | 2014-04-02 22:41:39 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-04-02 12:47:41 -0700 |
commit | ede6a38bcf38bbff56a8e41cb38f69c1532d0697 (patch) | |
tree | 975aa14d60bb491cd3880b2d239d335682557127 /qt-ui/updatemanager.h | |
parent | 5cec965cb7bea3abbb12823404b6a7cfcfb57225 (diff) | |
download | subsurface-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/updatemanager.h')
-rw-r--r-- | qt-ui/updatemanager.h | 21 |
1 files changed, 21 insertions, 0 deletions
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 <QObject> + +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 |