summaryrefslogtreecommitdiffstats
path: root/logic/OneSixInstance.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-08-17 13:40:51 +0200
committerPetr Mrázek <peterix@gmail.com>2013-08-17 13:40:51 +0200
commit253067c782955380bbf66ac0475dc954375b1ff4 (patch)
treeca97e231fd3a764256d95b5fc8d08fc25ff72161 /logic/OneSixInstance.h
parent77e80665422c4e97e2286418ab55e20c4030023b (diff)
downloadMultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar
MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.gz
MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.lz
MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.xz
MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.zip
Move all the things (YES. Move them.)
Also, implemented some basic modlist logic, to be wired up.
Diffstat (limited to 'logic/OneSixInstance.h')
-rw-r--r--logic/OneSixInstance.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/logic/OneSixInstance.h b/logic/OneSixInstance.h
new file mode 100644
index 00000000..edd96eaa
--- /dev/null
+++ b/logic/OneSixInstance.h
@@ -0,0 +1,34 @@
+#pragma once
+
+#include "BaseInstance.h"
+#include <QStringList>
+class FullVersion;
+class BaseUpdate;
+
+class OneSixInstance : public BaseInstance
+{
+ Q_OBJECT
+public:
+ explicit OneSixInstance(const QString &rootDir, SettingsObject * settings, QObject *parent = 0);
+ virtual BaseUpdate* doUpdate();
+ virtual MinecraftProcess* prepareForLaunch ( QString user, QString session );
+ virtual void cleanupAfterRun();
+
+ virtual QString intendedVersionId() const;
+ virtual bool setIntendedVersionId ( QString version );
+
+ virtual QString currentVersionId() const;
+ // virtual void setCurrentVersionId ( QString val ) {};
+
+ virtual bool shouldUpdate() const;
+ virtual void setShouldUpdate(bool val);
+
+ virtual QSharedPointer< QDialog > createModEditDialog ( QWidget* parent );
+
+ /// reload the full version json file. return true on success!
+ bool reloadFullVersion();
+ /// get the current full version info
+ QSharedPointer<FullVersion> getFullVersion();
+private:
+ QStringList processMinecraftArgs( QString user, QString session );
+}; \ No newline at end of file