summaryrefslogtreecommitdiffstats
path: root/plugins/stdinstance/stdinstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/stdinstance/stdinstance.cpp')
-rw-r--r--plugins/stdinstance/stdinstance.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/plugins/stdinstance/stdinstance.cpp b/plugins/stdinstance/stdinstance.cpp
index 217514a3..e5d87d23 100644
--- a/plugins/stdinstance/stdinstance.cpp
+++ b/plugins/stdinstance/stdinstance.cpp
@@ -21,11 +21,14 @@
#include <javautils.h>
-StdInstance::StdInstance(const QString &rootDir, QObject *parent) :
+#include "stdinstversionlist.h"
+
+StdInstance::StdInstance(const QString &rootDir, const InstanceTypeInterface *iType, QObject *parent) :
Instance(rootDir, parent)
{
- settings().registerSetting(new Setting("lastVersionUpdate", 0));
+ m_instType = iType;
+ settings().registerSetting(new Setting("lastVersionUpdate", 0));
}
bool StdInstance::shouldUpdateCurrentVersion()
@@ -55,3 +58,13 @@ void StdInstance::updateCurrentVersion(bool keepCurrent)
setCurrentVersion(newVersion);
}
}
+
+const InstanceTypeInterface *StdInstance::instanceType() const
+{
+ return m_instType;
+}
+
+InstVersionList *StdInstance::versionList() const
+{
+ return &vList;
+}