7#include "sieveeditorutil.h"
9QUrl KSieveUi::SieveEditorUtil::helpUrl(KSieveUi::SieveEditorUtil::HelpVariableName type)
12 case AddressCondition:
13 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5228#page-16"));
15 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5173"));
16 case ConvertCondition:
18 case CurrentdateCondition:
19 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5260#page-6"));
21 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5260#page-4"));
22 case EnvelopeCondition:
23 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-24"));
24 case EnvironmentCondition:
25 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5183"));
27 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-25"));
29 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-25"));
30 case HasflagCondition:
31 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5232#page-5"));
33 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5228#page-9"));
35 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5463"));
36 case MailboxexistsCondition:
37 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-2"));
38 case MetadataexistsCondition:
39 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-6"));
40 case MetadataCondition:
41 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-5"));
42 case ServermetadataexistsCondition:
43 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-4"));
44 case ServermetadataCondition:
45 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-5"));
47 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-26"));
48 case SpamtestCondition:
49 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3685#page-3"));
51 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-26"));
53 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-26"));
55 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-24"));
57 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-23"));
58 case VirustestCondition:
59 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3685#page-4"));
60 case AbstracteditheaderAction:
61 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5228#page-9"));
63 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5232#page-5"));
65 case DeleteheaderAction:
66 case EditHeaderExtension:
67 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5293"));
69 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5703#page-3"));
73 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-22"));
75 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5703#page-10"));
76 case ExtracttextAction:
77 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5703#page-11"));
79 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-20"));
81 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-21"));
83 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5435#page-3"));
85 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-20"));
87 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-20"));
89 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5429#section-2.1"));
90 case RemoveflagsAction:
91 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5232#page-5"));
93 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5703#page-8"));
95 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc6609#page-7"));
97 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5232#page-4"));
98 case SetvariableAction:
99 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5229"));
101 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3028#page-19"));
103 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5230#page-3"));
105 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5229"));
107 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc6609#page-4"));
109 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5703#page-3"));
111 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc3894"));
112 case MBoxMetaDataExtension:
113 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5490#page-2"));
114 case SubAddressExtension:
115 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5233"));
116 case ImapFlagsExtension:
117 return QUrl(QStringLiteral(
"https://tools.ietf.org/html/rfc5232"));
124KSieveUi::SieveEditorUtil::HelpVariableName KSieveUi::SieveEditorUtil::strToVariableName(
const QString &str)
127 return AddressCondition;
129 return BodyCondition;
131 return CurrentdateCondition;
133 return DateCondition;
135 return EnvelopeCondition;
137 return EnvironmentCondition;
139 return ExistsCondition;
141 return FalseCondition;
143 return HasflagCondition;
145 return HeaderCondition;
147 return IhaveCondition;
149 return MailboxexistsCondition;
151 return MetadataCondition;
153 return MetadataexistsCondition;
155 return ServermetadataCondition;
157 return ServermetadataexistsCondition;
159 return SizeCondition;
161 return SpamtestCondition;
163 return TrueCondition;
171 return VirustestCondition;
175 return ConvertAction;
177 return DiscardAction;
179 return EncloseAction;
181 return ExtracttextAction;
183 return FileintoAction;
189 return RedirectAction;
193 return ERejectAction;
195 return ReplaceAction;
199 return SetvariableAction;
203 return VacationAction;
207 return GlobalVariable;
211 return CopyExtension;
213 return MBoxMetaDataExtension;
215 return SubAddressExtension;
217 return ImapFlagsExtension;
219 return EditHeaderExtension;
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.