File indexing completed on 2024-05-19 04:23:36
0001 /* SPDX-FileCopyrightText: 2003-2020 Jesper K. Pedersen <blackie@kde.org> 0002 0003 SPDX-License-Identifier: GPL-2.0-or-later 0004 */ 0005 #include "OrCategoryMatcher.h" 0006 0007 #include <DB/ImageInfo.h> 0008 #include <kpabase/Logging.h> 0009 0010 bool DB::OrCategoryMatcher::eval(ImageInfoPtr info, QMap<QString, StringSet> &alreadyMatched) 0011 { 0012 for (CategoryMatcher *subMatcher : qAsConst(mp_elements)) { 0013 if (subMatcher->eval(info, alreadyMatched)) 0014 return true; 0015 } 0016 return false; 0017 } 0018 0019 void DB::OrCategoryMatcher::debug(int level) const 0020 { 0021 qCDebug(DBCategoryMatcherLog, "%sOR:", qPrintable(spaces(level))); 0022 ContainerCategoryMatcher::debug(level + 1); 0023 } 0024 0025 // vi:expandtab:tabstop=4 shiftwidth=4: