diff options
author | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 22:26:44 +0100 |
---|---|---|
committer | Jan Dalheimer <jan@dalheimer.de> | 2014-02-15 22:26:44 +0100 |
commit | 8219dbf612f4e6f603d304348fc388e364602f98 (patch) | |
tree | 2d0bafeb9ff7019f5b9b19bbf034665285d836ae /logic/profiler/BaseProfiler.h | |
parent | 3b236483dfe00f87c5f3b03220d78620f0f99f4d (diff) | |
download | MultiMC-8219dbf612f4e6f603d304348fc388e364602f98.tar MultiMC-8219dbf612f4e6f603d304348fc388e364602f98.tar.gz MultiMC-8219dbf612f4e6f603d304348fc388e364602f98.tar.lz MultiMC-8219dbf612f4e6f603d304348fc388e364602f98.tar.xz MultiMC-8219dbf612f4e6f603d304348fc388e364602f98.zip |
Underp. Don't depend on OneSix. Nicer "menu" style choosing.
Diffstat (limited to 'logic/profiler/BaseProfiler.h')
-rw-r--r-- | logic/profiler/BaseProfiler.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/logic/profiler/BaseProfiler.h b/logic/profiler/BaseProfiler.h index e7bc4c2d..4c5f63fc 100644 --- a/logic/profiler/BaseProfiler.h +++ b/logic/profiler/BaseProfiler.h @@ -2,7 +2,7 @@ #include <QObject> -class OneSixInstance; +class BaseInstance; class SettingsObject; class MinecraftProcess; class QProcess; @@ -11,7 +11,7 @@ class BaseProfiler : public QObject { Q_OBJECT public: - explicit BaseProfiler(OneSixInstance *instance, QObject *parent = 0); + explicit BaseProfiler(BaseInstance *instance, QObject *parent = 0); virtual ~BaseProfiler(); public @@ -19,7 +19,7 @@ slots: void beginProfiling(MinecraftProcess *process); protected: - OneSixInstance *m_instance; + BaseInstance *m_instance; virtual void beginProfilingImpl(MinecraftProcess *process) = 0; @@ -34,9 +34,12 @@ class BaseProfilerFactory public: virtual ~BaseProfilerFactory(); + virtual QString name() const = 0; + virtual void registerSettings(SettingsObject *settings) = 0; - virtual BaseProfiler *createProfiler(OneSixInstance *instance, QObject *parent = 0) = 0; + virtual BaseProfiler *createProfiler(BaseInstance *instance, QObject *parent = 0) = 0; + virtual bool check(QString *error) = 0; virtual bool check(const QString &path, QString *error) = 0; }; |