Libksieve

sieveactionaddflags.cpp
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #include "sieveactionaddflags.h"
7 #include "editor/sieveeditorutil.h"
8 
9 #include <KLocalizedString>
10 
11 using namespace KSieveUi;
12 SieveActionAddFlags::SieveActionAddFlags(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
13  : SieveActionAbstractFlags(sieveGraphicalModeWidget, QStringLiteral("addflag"), i18n("Add Flags"), parent)
14 {
15 }
16 
17 QString SieveActionAddFlags::flagsCode() const
18 {
19  return QStringLiteral("addflag");
20 }
21 
22 QString SieveActionAddFlags::help() const
23 {
24  return i18n(
25  "Addflag is used to add flags to a list of [IMAP] flags. It doesn't replace any previously set flags. This means that multiple occurrences of "
26  "addflag are treated additively.");
27 }
28 
29 QUrl SieveActionAddFlags::href() const
30 {
31  return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
32 }
QString name(const QVariant &location)
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.