diff options
Diffstat (limited to 'logic/pathmatcher/MultiMatcher.h')
-rw-r--r-- | logic/pathmatcher/MultiMatcher.h | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/logic/pathmatcher/MultiMatcher.h b/logic/pathmatcher/MultiMatcher.h deleted file mode 100644 index 91f70aa4..00000000 --- a/logic/pathmatcher/MultiMatcher.h +++ /dev/null @@ -1,31 +0,0 @@ -#include "IPathMatcher.h" -#include <SeparatorPrefixTree.h> -#include <QRegularExpression> - -class MultiMatcher : public IPathMatcher -{ -public: - virtual ~MultiMatcher() {}; - MultiMatcher() - { - } - MultiMatcher &add(Ptr add) - { - m_matchers.append(add); - return *this; - } - - virtual bool matches(const QString &string) const override - { - for(auto iter: m_matchers) - { - if(iter->matches(string)) - { - return true; - } - } - return false; - } - - QList<Ptr> m_matchers; -}; |