digiKam
modifier.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 : 2009-09-14
7  * Description : a class to manipulate the results of an renaming options
8  *
9  * Copyright (C) 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option)
15  * any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_MODIFIER_H
25 #define DIGIKAM_MODIFIER_H
26 
27 // Local includes
28 
29 #include "rule.h"
30 
31 namespace Digikam
32 {
33 
34 class Modifier : public Rule
35 {
36  Q_OBJECT
37 
38 public:
39 
40  Modifier(const QString& name, const QString& description);
41  Modifier(const QString& name, const QString& description, const QString& icon);
42  ~Modifier() override;
43 
44 protected:
45 
46  QString parseOperation(ParseSettings& settings, const QRegularExpressionMatch &match) override = 0;
47 
48 private:
49 
50  // Disable
51  Modifier(QObject*) = delete;
52  Modifier(const Modifier&) = delete;
53  Modifier& operator=(const Modifier&) = delete;
54 
55 private:
56 
57  class Private;
58  Private* const d;
59 };
60 
61 } // namespace Digikam
62 
63 #endif // DIGIKAM_MODIFIER_H
Definition: modifier.h:35
QString parseOperation(ParseSettings &settings, const QRegularExpressionMatch &match) override=0
Modifier(const QString &name, const QString &description)
Definition: modifier.cpp:40
~Modifier() override
Definition: modifier.cpp:54
Definition: parsesettings.h:43
Definition: rule.h:42
QPixmap icon(Rule::IconType type=Rule::Action) const
Definition: rule.cpp:86
QString description() const
Definition: rule.cpp:109
Definition: datefolderview.cpp:43