diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-11-04 22:55:25 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-11-17 15:44:13 +0100 |
commit | 17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96 (patch) | |
tree | 47330451b2a147ee54b2e63c5a1e614e4f88268b /api/logic/minecraft/ProfilePatch.h | |
parent | 3470158943acb9fc4439ea255fe3ea0fbc7dbc85 (diff) | |
download | PrismLauncher-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar.gz PrismLauncher-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.tar.bz2 PrismLauncher-17c8f31a09da6bdfc4aa7f67b2ca86b791f2ba96.zip |
NOISSUE split out the LaunchProfile out of the ComponentList
Diffstat (limited to 'api/logic/minecraft/ProfilePatch.h')
-rw-r--r-- | api/logic/minecraft/ProfilePatch.h | 11 |
1 files changed, 6 insertions, 5 deletions
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<VersionFile> 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<class VersionFile> getVersionFile(); - virtual std::shared_ptr<class Meta::VersionList> getVersionList(); + virtual std::shared_ptr<class VersionFile> getVersionFile() const; + virtual std::shared_ptr<class Meta::VersionList> getVersionList() const; void setVanilla (bool state); void setRemovable (bool state); void setRevertible (bool state); void setMovable (bool state); - const QList<PatchProblem> getProblems() override; - ProblemSeverity getProblemSeverity() override; + const QList<PatchProblem> getProblems() const override; + ProblemSeverity getProblemSeverity() const override; protected: // Properties for UI and version manipulation from UI in general |