Mailcommon

filteractionunsetstatus.h
1/*
2
3 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7
8#pragma once
9
10#include "filteractionstatus.h"
11namespace MailCommon
12{
13class FilterActionUnsetStatus : public FilterActionStatus
14{
16public:
17 explicit FilterActionUnsetStatus(QObject *parent = nullptr);
18 [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
19 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
20
21 static FilterAction *newAction();
22 [[nodiscard]] QString sieveCode() const override;
23 [[nodiscard]] QStringList sieveRequires() const override;
24 [[nodiscard]] bool isEmpty() const override;
25 [[nodiscard]] QString informationAboutNotValidAction() const override;
26
27private:
28 bool checkIsValid(int &index) const;
29};
30}
FilterAction(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
ReturnCode
Describes the possible return codes of filter processing:
RequiredPart
Possible required parts.
Definition searchrule.h:68
The filter dialog.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 12:07:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.