libquentier
0.8.0
The library for rich desktop clients of Evernote service
Toggle main menu visibility
Loading...
Searching...
No Matches
headers
quentier
enml
conversion_rules
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
26
namespace
quentier::enml::conversion_rules {
27
37
class
ISkipRule
:
public
utility::Printable
38
{
39
public
:
40
~ISkipRule
()
override
;
41
45
enum class
Target
46
{
50
Element,
54
AttibuteName,
58
AttributeValue
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
quentier::enml::conversion_rules::ISkipRule
The ISkipRule interface describes a conversion rule with regards to which some ENML/HTML element/attr...
Definition
ISkipRule.h:38
quentier::enml::conversion_rules::ISkipRule::Target
Target
Definition
ISkipRule.h:46
quentier::enml::conversion_rules::ISkipRule::value
virtual QString value() const =0
quentier::enml::conversion_rules::ISkipRule::includeContents
virtual bool includeContents() const =0
quentier::enml::conversion_rules::ISkipRule::caseSensitivity
virtual Qt::CaseSensitivity caseSensitivity() const =0
quentier::enml::conversion_rules::ISkipRule::target
virtual Target target() const =0
quentier::enml::conversion_rules::ISkipRule::matchMode
virtual MatchMode matchMode() const =0
quentier::utility::Printable
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition
Printable.h:38
Generated on
for libquentier by
1.18.0