summaryrefslogtreecommitdiffstats
path: root/logic/updater/UpdateChecker.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-02-08 17:56:14 +0100
committerPetr Mrázek <peterix@gmail.com>2015-04-12 20:57:17 +0200
commit4730f54df7edf4775dfddf45f77c60edd86c32d9 (patch)
tree22fe05326976cbdadf150c1cfe0710f375e34edf /logic/updater/UpdateChecker.h
parent7a71ecd8af0454e405b25080a4b266fc99306269 (diff)
downloadMultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar
MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.gz
MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.lz
MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.tar.xz
MultiMC-4730f54df7edf4775dfddf45f77c60edd86c32d9.zip
SCRATCH separate the generic updater logic from the application
Diffstat (limited to 'logic/updater/UpdateChecker.h')
-rw-r--r--logic/updater/UpdateChecker.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/logic/updater/UpdateChecker.h b/logic/updater/UpdateChecker.h
index 2b08680a..0eaceea0 100644
--- a/logic/updater/UpdateChecker.h
+++ b/logic/updater/UpdateChecker.h
@@ -16,6 +16,7 @@
#pragma once
#include "logic/net/NetJob.h"
+#include "GoUpdate.h"
#include <QUrl>
@@ -24,7 +25,7 @@ class UpdateChecker : public QObject
Q_OBJECT
public:
- UpdateChecker(QString channelListUrl, int currentBuild);
+ UpdateChecker(QString channelListUrl, QString currentChannel, int currentBuild);
void checkForUpdate(QString updateChannel, bool notifyNoUpdate);
/*!
@@ -57,7 +58,7 @@ public:
signals:
//! Signal emitted when an update is available. Passes the URL for the repo and the ID and name for the version.
- void updateAvailable(QString repoUrl, QString versionName, int versionId);
+ void updateAvailable(GoUpdate::Status status);
//! Signal emitted when the channel list finishes loading or fails to load.
void channelListLoaded();
@@ -77,8 +78,6 @@ private:
NetJobPtr indexJob;
NetJobPtr chanListJob;
- QString m_repoUrl;
-
QString m_channelListUrl;
QList<ChannelListEntry> m_channels;
@@ -110,6 +109,11 @@ private:
* if m_checkUpdateWaiting, this is the last used update channel
*/
QString m_deferredUpdateChannel;
+
int m_currentBuild = -1;
+ QString m_currentChannel;
+ QString m_currentRepoUrl;
+
+ QString m_newRepoUrl;
};