summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-12-07 03:57:40 +0100
committerPetr Mrázek <peterix@gmail.com>2013-12-07 03:57:40 +0100
commit220e07aef4a34dca9f31ae0c5bb994e5c594125d (patch)
tree70821c6dbe7e6c2f66f231dcb1bad62a763638d7 /MultiMC.h
parent858916b951e92127c22503826b746d1e70c433f6 (diff)
parent7a6705030c36b2d6b94da1acd5bdf2311e4efeb7 (diff)
downloadMultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.gz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.lz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.tar.xz
MultiMC-220e07aef4a34dca9f31ae0c5bb994e5c594125d.zip
Merge branch 'feature_updater' of github.com:MultiMC/MultiMC5 into feature_updater
Diffstat (limited to 'MultiMC.h')
-rw-r--r--MultiMC.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/MultiMC.h b/MultiMC.h
index 659104ba..22cea029 100644
--- a/MultiMC.h
+++ b/MultiMC.h
@@ -98,6 +98,22 @@ public:
std::shared_ptr<JavaVersionList> javalist();
+ /*!
+ * Installs update from the given update files directory.
+ */
+ void installUpdates(const QString& updateFilesDir, bool restartOnFinish=false);
+
+ /*!
+ * Sets MultiMC to install updates from the given directory when it exits.
+ */
+ void setUpdateOnExit(const QString& updateFilesDir);
+
+ /*!
+ * Gets the path to install updates from on exit.
+ * If this is an empty string, no updates should be installed on exit.
+ */
+ QString getExitUpdatePath() const;
+
private:
void initLogger();
@@ -124,6 +140,8 @@ private:
QsLogging::DestinationPtr m_fileDestination;
QsLogging::DestinationPtr m_debugDestination;
+ QString m_updateOnExitPath;
+
Status m_status = MultiMC::Failed;
MultiMCVersion m_version;
};