Added a function to get an instance's type.

This commit is contained in:
Andrew
2013-03-06 12:32:15 -06:00
parent 36396f7c6a
commit 69040f923b
4 changed files with 27 additions and 5 deletions

View File

@@ -21,11 +21,12 @@
#include <javautils.h>
StdInstance::StdInstance(const QString &rootDir, QObject *parent) :
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 +56,8 @@ void StdInstance::updateCurrentVersion(bool keepCurrent)
setCurrentVersion(newVersion);
}
}
const InstanceTypeInterface *StdInstance::instanceType() const
{
return m_instType;
}