Added self-update

This commit is contained in:
woblight
2018-07-22 15:01:34 +02:00
parent 96b3022c22
commit 58a4d7f569
6 changed files with 236 additions and 43 deletions
+6 -1
View File
@@ -69,7 +69,8 @@ public:
UpdateAvailable,
DownloadingUpdate,
UpdateReady,
CheckingForUpdate
CheckingForUpdate,
UpdateDone
};
Q_ENUM(UpdateStatus)
Q_PROPERTY(UpdateStatus updateStatus READ updateStatus WRITE setUpdateStatus NOTIFY updateStatusChanged)
@@ -97,6 +98,10 @@ public:
UpdateStatus updateStatus() const;
void completeUpdate(const QString &path);
void init();
private:
static Control *m_instance;
explicit Control(QObject *parent = nullptr);