aboutsummaryrefslogtreecommitdiff
path: root/logic/updater/UpdateChecker.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-15 23:47:57 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-15 23:47:57 +0100
commit5df86d9ffa53877f7e7b84bafb8dc8134c61ab82 (patch)
tree10bb64b1aaca91e24978302e984e73e1d9908859 /logic/updater/UpdateChecker.h
parentb773ef08afff14bf0e342578c21122758c26b680 (diff)
parent7f884a18a85eca8c1a395ab0e9d421f17a98f142 (diff)
downloadPrismLauncher-5df86d9ffa53877f7e7b84bafb8dc8134c61ab82.tar.gz
PrismLauncher-5df86d9ffa53877f7e7b84bafb8dc8134c61ab82.tar.bz2
PrismLauncher-5df86d9ffa53877f7e7b84bafb8dc8134c61ab82.zip
Merge branch 'updater_tests' of https://github.com/02JanDal/MultiMC5 into develop
Diffstat (limited to 'logic/updater/UpdateChecker.h')
-rw-r--r--logic/updater/UpdateChecker.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/logic/updater/UpdateChecker.h b/logic/updater/UpdateChecker.h
index 59fb8e47..5b7efc05 100644
--- a/logic/updater/UpdateChecker.h
+++ b/logic/updater/UpdateChecker.h
@@ -27,6 +27,9 @@ public:
UpdateChecker();
void checkForUpdate();
+ void setCurrentChannel(const QString &channel) { m_currentChannel = channel; }
+ void setChannelListUrl(const QString &url) { m_channelListUrl = url; }
+
/*!
* Causes the update checker to download the channel list from the URL specified in config.h (generated by CMake).
* If this isn't called before checkForUpdate(), it will automatically be called.
@@ -70,6 +73,8 @@ private slots:
void chanListDownloadFailed();
private:
+ friend class UpdateCheckerTest;
+
NetJobPtr indexJob;
NetJobPtr chanListJob;