From 17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Sat, 4 Nov 2017 22:55:25 +0100 Subject: NOISSUE split out the LaunchProfile out of the ComponentList --- api/logic/minecraft/ProfilePatch.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'api/logic/minecraft/ProfilePatch.h') diff --git a/api/logic/minecraft/ProfilePatch.h b/api/logic/minecraft/ProfilePatch.h index af5e89a4..80825342 100644 --- a/api/logic/minecraft/ProfilePatch.h +++ b/api/logic/minecraft/ProfilePatch.h @@ -7,6 +7,7 @@ #include "ProblemProvider.h" class ComponentList; +class LaunchProfile; namespace Meta { class Version; @@ -21,7 +22,7 @@ public: ProfilePatch(std::shared_ptr file, const QString &filename = QString()); virtual ~ProfilePatch(){}; - virtual void applyTo(ComponentList *profile); + virtual void applyTo(LaunchProfile *profile); virtual bool isMoveable(); virtual bool isCustomizable(); @@ -41,16 +42,16 @@ public: virtual QString getFilename(); - virtual std::shared_ptr getVersionFile(); - virtual std::shared_ptr getVersionList(); + virtual std::shared_ptr getVersionFile() const; + virtual std::shared_ptr getVersionList() const; void setVanilla (bool state); void setRemovable (bool state); void setRevertible (bool state); void setMovable (bool state); - const QList getProblems() override; - ProblemSeverity getProblemSeverity() override; + const QList getProblems() const override; + ProblemSeverity getProblemSeverity() const override; protected: // Properties for UI and version manipulation from UI in general -- cgit v1.2.3