digiKam
Loading...
Searching...
No Matches
option.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-08-08
7 * Description : an abstract option class
8 *
9 * SPDX-FileCopyrightText: 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
10 *
11 * SPDX-License-Identifier: GPL-2.0-or-later
12 *
13 * ============================================================ */
14
15#pragma once
16
17// Local includes
18
19#include "rule.h"
20
21namespace Digikam
22{
23
24class Option : public Rule
25{
26 Q_OBJECT
27
28public:
29
30 Option(const QString& name, const QString& description);
31 Option(const QString& name, const QString& description, const QString& icon);
32 ~Option() override;
33
34protected:
35
36 QString parseOperation(ParseSettings& settings,
37 const QRegularExpressionMatch& match) override = 0;
38
39private:
40
41 // Disable
42 Option(QObject*) = delete;
43 Option(const Option&) = delete;
44 Option& operator=(const Option&) = delete;
45
46private:
47
48 class Private;
49 Private* const d = nullptr;
50};
51
52} // namespace Digikam
Definition option.h:25
~Option() override
Definition option.cpp:43
QString parseOperation(ParseSettings &settings, const QRegularExpressionMatch &match) override=0
Definition parsesettings.h:33
Definition rule.h:32
QPixmap icon(Rule::IconType type=Rule::Action) const
Definition rule.cpp:74
QString description() const
Definition rule.cpp:101
Definition datefolderview.cpp:34