File indexing completed on 2024-05-19 04:23:36
0001 /* SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <blackie@kde.org> 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 0006 #ifndef NOTAGCATEGORYMATCHER_H 0007 #define NOTAGCATEGORYMATCHER_H 0008 0009 #include "CategoryMatcher.h" 0010 0011 namespace DB 0012 { 0013 0014 /** 0015 \brief Match pictures with no tags set for a certain category. 0016 */ 0017 class NoTagCategoryMatcher : public CategoryMatcher 0018 { 0019 public: 0020 explicit NoTagCategoryMatcher(const QString &category); 0021 ~NoTagCategoryMatcher() override; 0022 bool eval(ImageInfoPtr, QMap<QString, StringSet> &alreadyMatched) override; 0023 void debug(int level) const override; 0024 0025 private: 0026 const QString m_category; 0027 }; 0028 0029 } 0030 0031 #endif /* NOTAGCATEGORYMATCHER_H */ 0032 0033 // vi:expandtab:tabstop=4 shiftwidth=4: