digiKam
coredbnamefilter.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2007-04-02
7  * Description : Core database file name filters based on file suffixes.
8  *
9  * Copyright (C) 2005 by Renchi Raju <renchi dot raju at gmail dot com>
10  * Copyright (C) 2007-2008 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de>
11  * Copyright (C) 2010-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
12  *
13  * This program is free software; you can redistribute it
14  * and/or modify it under the terms of the GNU General
15  * Public License as published by the Free Software Foundation;
16  * either version 2, or (at your option)
17  * any later version.
18  *
19  * This program is distributed in the hope that it will be useful,
20  * but WITHOUT ANY WARRANTY; without even the implied warranty of
21  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22  * GNU General Public License for more details.
23  *
24  * ============================================================ */
25 
26 #ifndef DIGIKAM_CORE_DB_NAME_FILTER_H
27 #define DIGIKAM_CORE_DB_NAME_FILTER_H
28 
29 // Qt includes
30 
31 #include <QString>
32 #include <QList>
33 #include <QRegularExpression>
34 
35 // Local includes
36 
37 #include "digikam_export.h"
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_DATABASE_EXPORT CoreDbNameFilter
43 {
44 public:
45 
52  explicit CoreDbNameFilter(const QString& filter);
53 
57  bool matches(const QString& name);
58 
59 protected:
60 
62 };
63 
64 } // namespace Digikam
65 
66 #endif // DIGIKAM_CORE_DB_NAME_FILTER_H
Definition: coredbnamefilter.h:43
QList< QRegularExpression > m_filterList
Definition: coredbnamefilter.h:61
Definition: datefolderview.cpp:43