File indexing completed on 2024-10-06 11:05:03

0001 // clang-format off
0002 /*
0003   class CvsIgnoreList from Cervisia cvsdir.cpp
0004      SPDX-FileCopyrightText: 1999-2002 Bernd Gehrmann <bernd at mail.berlios.de>
0005   with elements from class StringMatcher
0006      SPDX-FileCopyrightText: 2003 Andre Woebbeking <Woebbeking at web.de>
0007   Modifications for KDiff3 by Joachim Eibl
0008 
0009   SPDX-FileCopyrightText: 2002-2011 Joachim Eibl, joachim.eibl at gmx.de
0010   SPDX-FileCopyrightText: 2018-2020 Michael Reeves reeves.87@gmail.com
0011   SPDX-License-Identifier: GPL-2.0-or-later
0012  */
0013 // clang-format on
0014 
0015 #ifndef IGNORELIST_H
0016 #define IGNORELIST_H
0017 
0018 #include "DirectoryList.h"
0019 
0020 #include <QString>
0021 
0022 class IgnoreList
0023 {
0024 public:
0025     virtual ~IgnoreList() = default;
0026     virtual void enterDir(const QString& dir, const DirectoryList& directoryList) = 0;
0027     [[nodiscard]] virtual bool matches(const QString& dir, const QString& text, bool bCaseSensitive) const = 0;
0028 };
0029 
0030 #endif