create update helper class

Move old chechUpdates() method to this class. Create ability to show
ChangeLog after updates (by using global config with version). Changelog
(only for the latest version) will be written to version.h during cmake
run.
This commit is contained in:
2016-02-04 00:02:49 +07:00
parent 384097625c
commit 54e1545bb1
8 changed files with 270 additions and 100 deletions

View File

@ -22,7 +22,7 @@
#include <QObject>
class QNetworkReply;
class AWUpdateHelper;
class AWActions : public QObject
{
@ -44,11 +44,8 @@ public slots:
Q_INVOKABLE static void sendNotification(const QString eventId,
const QString message);
private slots:
void showInfo(const QString version) const;
void showUpdates(const QString version) const;
void versionReplyRecieved(QNetworkReply *reply,
const bool showAnyway) const;
private:
AWUpdateHelper *m_updateHelper = nullptr;
};