Mailcommon

filteractionremoveheader.h
1/*
2 * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <taferner@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#pragma once
9
10#include "filteractionwithstringlist.h"
11#include "mailcommon_private_export.h"
12namespace MailCommon
13{
14//=============================================================================
15// FilterActionRemoveHeader - remove header
16// Remove all instances of the given header field.
17//=============================================================================
18class MAILCOMMON_TESTS_EXPORT FilterActionRemoveHeader : public FilterActionWithStringList
19{
20 Q_OBJECT
21public:
22 explicit FilterActionRemoveHeader(QObject *parent = nullptr);
23 [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
24 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
25 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
26 void setParamWidgetValue(QWidget *paramWidget) const override;
27 [[nodiscard]] QStringList sieveRequires() const override;
28 [[nodiscard]] QString sieveCode() const override;
29
30 static FilterAction *newAction();
31 [[nodiscard]] QString informationAboutNotValidAction() const override;
32};
33}
Abstract base class for filter actions with a fixed set of string parameters.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:56:35 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.