libquentier  0.8.0
The library for rich desktop clients of Evernote service
ISkipRule.h
1 /*
2  * Copyright 2023-2025 Dmitry Ivanov
3  *
4  * This file is part of libquentier
5  *
6  * libquentier is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, version 3 of the License.
9  *
10  * libquentier is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with libquentier. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
19 #pragma once
20 
21 #include <quentier/enml/conversion_rules/MatchMode.h>
22 #include <quentier/utility/Printable.h>
23 
24 #include <QtGlobal>
25 
27 
38 {
39 public:
40  ~ISkipRule() override;
41 
45  enum class Target
46  {
50  Element,
59  };
60 
61  friend QUENTIER_EXPORT QTextStream & operator<<(
62  QTextStream & strm, Target target);
63 
64  friend QUENTIER_EXPORT QDebug & operator<<(QDebug & dbg, Target target);
65 
69  [[nodiscard]] virtual Target target() const = 0;
70 
74  [[nodiscard]] virtual QString value() const = 0;
75 
79  [[nodiscard]] virtual MatchMode matchMode() const = 0;
80 
85  [[nodiscard]] virtual bool includeContents() const = 0;
86 
90  [[nodiscard]] virtual Qt::CaseSensitivity caseSensitivity() const = 0;
91 
92 public: // utility::Printable
93  QTextStream & print(QTextStream & strm) const override;
94 };
95 
96 } // namespace quentier::enml::conversion_rules
The Printable class is the interface for Quentier&#39;s internal classes which should be able to write th...
Definition: Printable.h:37
virtual Qt::CaseSensitivity caseSensitivity() const =0
Definition: enml/conversion_rules/Factory.h:24
virtual MatchMode matchMode() const =0
The ISkipRule interface describes a conversion rule with regards to which some ENML/HTML element/attr...
Definition: ISkipRule.h:37