summaryrefslogtreecommitdiffstats
path: root/plugins/stdinstance/stdinstance.h
diff options
context:
space:
mode:
authorAndrew <forkk@forkk.net>2013-03-06 12:32:15 -0600
committerAndrew <forkk@forkk.net>2013-03-06 12:32:15 -0600
commit69040f923b0344de214d6f1fc4553d223df7d2d6 (patch)
treecfbf6ea23290654a65147bc5df59cf10b1be868a /plugins/stdinstance/stdinstance.h
parent36396f7c6aca9fcc61c8620e10c31ed2c8999ebd (diff)
downloadMultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar
MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.gz
MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.lz
MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.tar.xz
MultiMC-69040f923b0344de214d6f1fc4553d223df7d2d6.zip
Added a function to get an instance's type.
Diffstat (limited to 'plugins/stdinstance/stdinstance.h')
-rw-r--r--plugins/stdinstance/stdinstance.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/plugins/stdinstance/stdinstance.h b/plugins/stdinstance/stdinstance.h
index d657d9aa..9c4b6fd6 100644
--- a/plugins/stdinstance/stdinstance.h
+++ b/plugins/stdinstance/stdinstance.h
@@ -22,15 +22,20 @@ class StdInstance : public Instance
{
Q_OBJECT
public:
- explicit StdInstance(const QString &rootDir, QObject *parent = 0);
+ explicit StdInstance(const QString &rootDir, const InstanceTypeInterface *iType, QObject *parent = 0);
virtual bool shouldUpdateCurrentVersion();
virtual void updateCurrentVersion(bool keepCurrent);
+ virtual const InstanceTypeInterface *instanceType() const;
+
////// TIMESTAMPS //////
virtual qint64 lastVersionUpdate() { return settings().get("lastVersionUpdate").value<qint64>(); }
virtual void setLastVersionUpdate(qint64 val) { settings().set("lastVersionUpdate", val); }
+
+protected:
+ const InstanceTypeInterface *m_instType;
};
#endif // STDINSTANCE_H