From 20b9f2b42a3b58b6081af271774fbcc34025dccb Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 25 Jul 2021 19:11:59 +0200 Subject: NOISSUE Flatten gui and logic libraries into MultiMC --- api/logic/Filter.h | 44 -------------------------------------------- 1 file changed, 44 deletions(-) delete mode 100644 api/logic/Filter.h (limited to 'api/logic/Filter.h') diff --git a/api/logic/Filter.h b/api/logic/Filter.h deleted file mode 100644 index 1ba48e48..00000000 --- a/api/logic/Filter.h +++ /dev/null @@ -1,44 +0,0 @@ -#pragma once - -#include -#include - -#include "multimc_logic_export.h" - -class MULTIMC_LOGIC_EXPORT Filter -{ -public: - virtual ~Filter(); - virtual bool accepts(const QString & value) = 0; -}; - -class MULTIMC_LOGIC_EXPORT ContainsFilter: public Filter -{ -public: - ContainsFilter(const QString &pattern); - virtual ~ContainsFilter(); - bool accepts(const QString & value) override; -private: - QString pattern; -}; - -class MULTIMC_LOGIC_EXPORT ExactFilter: public Filter -{ -public: - ExactFilter(const QString &pattern); - virtual ~ExactFilter(); - bool accepts(const QString & value) override; -private: - QString pattern; -}; - -class MULTIMC_LOGIC_EXPORT RegexpFilter: public Filter -{ -public: - RegexpFilter(const QString ®exp, bool invert); - virtual ~RegexpFilter(); - bool accepts(const QString & value) override; -private: - QRegularExpression pattern; - bool invert = false; -}; -- cgit