From 6aa9bd0f77dcb5128167fae62e32aa5252fe85c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 2 Dec 2013 00:55:24 +0100 Subject: Renew the updater branch Now with some actual consensus on what the updater will do! --- logic/GoUpdate.h | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 logic/GoUpdate.h (limited to 'logic/GoUpdate.h') diff --git a/logic/GoUpdate.h b/logic/GoUpdate.h new file mode 100644 index 00000000..756a71cf --- /dev/null +++ b/logic/GoUpdate.h @@ -0,0 +1,43 @@ +#pragma once +#include "net/NetJob.h" + +class GoUpdate : public QObject +{ + Q_OBJECT + +public: + struct version_channel + { + QString id; + QString name; + int latestVersion; + }; + + struct version_summary + { + int id; + QString name; + }; + +signals: + void updateAvailable(); + +private slots: + void updateCheckFinished(); + void updateCheckFailed(); + +public: + GoUpdate(); + void checkForUpdate(); +private: + NetJobPtr index_job; + NetJobPtr fromto_job; + + QString repoUrlBase; + QString builderName; + int currentBuildIndex; + int newBuildIndex = -1; + + QList versions; + QList channels; +}; -- cgit v1.2.3