Libksieve

sieveactionremoveflags.cpp
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include "sieveactionremoveflags.h"
7#include "editor/sieveeditorutil.h"
8
9#include <KLocalizedString>
10
11using namespace KSieveUi;
12SieveActionRemoveFlags::SieveActionRemoveFlags(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
13 : SieveActionAbstractFlags(sieveGraphicalModeWidget, QStringLiteral("removeflag"), i18n("Remove Flags"), parent)
14{
15}
16
17QString SieveActionRemoveFlags::flagsCode() const
18{
19 return QStringLiteral("removeflag");
20}
21
22QString SieveActionRemoveFlags::help() const
23{
24 return i18n(
25 "Removeflag is used to remove flags from a list of [IMAP] flags. Removeflag clears flags previously set by \"set\"/\"addflag\". Calling removeflag "
26 "with a flag that wasn't set before is not an error and is ignored.");
27}
28
29QUrl SieveActionRemoveFlags::href() const
30{
31 return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
32}
33
34#include "moc_sieveactionremoveflags.cpp"
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.