summaryrefslogtreecommitdiffstats
path: root/MultiMC.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-12-06 12:59:58 -0600
committerAndrew <forkk@forkk.net>2013-12-06 12:59:58 -0600
commit6ac94ddcb6f64ffae3948bed778bccc33a92f0fd (patch)
tree31cb30a051772bb49339514b79acf07ae9661c95 /MultiMC.h
parente90f1a27569ac6b9e9782646c9de92fc9534b1d2 (diff)
downloadMultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar
MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.gz
MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.lz
MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.tar.xz
MultiMC-6ac94ddcb6f64ffae3948bed778bccc33a92f0fd.zip
Finish implementing update installation.
Also add the option to update on exit.
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;
};