summaryrefslogtreecommitdiffstats
path: root/gui/dialogs/UpdateDialog.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2014-07-09 00:49:37 +0200
committerPetr Mrázek <peterix@gmail.com>2014-07-09 00:49:37 +0200
commitfc911add58c97b878b5b2eff867ce35216eb2a1e (patch)
tree0ccfc76bd875cde1d61d23463cdfb00f05f89d14 /gui/dialogs/UpdateDialog.h
parent6349800f070781b29e1ab3674d1872a3ce070e19 (diff)
downloadMultiMC-fc911add58c97b878b5b2eff867ce35216eb2a1e.tar
MultiMC-fc911add58c97b878b5b2eff867ce35216eb2a1e.tar.gz
MultiMC-fc911add58c97b878b5b2eff867ce35216eb2a1e.tar.lz
MultiMC-fc911add58c97b878b5b2eff867ce35216eb2a1e.tar.xz
MultiMC-fc911add58c97b878b5b2eff867ce35216eb2a1e.zip
Show changelog in the update dialog.
Diffstat (limited to 'gui/dialogs/UpdateDialog.h')
-rw-r--r--gui/dialogs/UpdateDialog.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/gui/dialogs/UpdateDialog.h b/gui/dialogs/UpdateDialog.h
index c13eb6bf..970ef42a 100644
--- a/gui/dialogs/UpdateDialog.h
+++ b/gui/dialogs/UpdateDialog.h
@@ -16,6 +16,8 @@
#pragma once
#include <QDialog>
+#include "logic/net/ByteArrayDownload.h"
+#include "logic/net/NetJob.h"
namespace Ui
{
@@ -43,4 +45,17 @@ public slots:
void on_btnUpdateNow_clicked();
void on_btnUpdateOnExit_clicked();
void on_btnUpdateLater_clicked();
+
+ /// Starts loading the changelog
+ void loadChangelog();
+
+ /// Slot for when the chengelog loads successfully.
+ void changelogLoaded();
+
+ /// Slot for when the chengelog fails to load...
+ void changelogFailed();
+
+private:
+ ByteArrayDownloadPtr changelogDownload;
+ NetJobPtr dljob;
};