From 791221e923586bb717396ecf18bd13e57034df99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Tue, 27 Jan 2015 22:31:07 +0100 Subject: NOISSUE Refactors and moving of things --- logic/minecraft/ProfilePatch.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 logic/minecraft/ProfilePatch.h (limited to 'logic/minecraft/ProfilePatch.h') diff --git a/logic/minecraft/ProfilePatch.h b/logic/minecraft/ProfilePatch.h new file mode 100644 index 00000000..2e97677e --- /dev/null +++ b/logic/minecraft/ProfilePatch.h @@ -0,0 +1,32 @@ +#pragma once + +#include +#include +#include "JarMod.h" + +class MinecraftProfile; +class ProfilePatch +{ +public: + virtual ~ProfilePatch(){}; + virtual void applyTo(MinecraftProfile *version) = 0; + + virtual bool isMinecraftVersion() = 0; + virtual bool hasJarMods() = 0; + virtual QList getJarMods() = 0; + + virtual bool isMoveable() + { + return getOrder() >= 0; + } + virtual void setOrder(int order) = 0; + virtual int getOrder() = 0; + + virtual QString getPatchID() = 0; + virtual QString getPatchName() = 0; + virtual QString getPatchVersion() = 0; + virtual QString getPatchFilename() = 0; + virtual bool isCustom() = 0; +}; + +typedef std::shared_ptr ProfilePatchPtr; -- cgit v1.2.3