Mailcommon

filteractionstatus.h
1/*
2
3 SPDX-FileCopyrightText: 2012-2025 Laurent Montel <montel@kde.org>
4
5 SPDX-License-Identifier: GPL-2.0-or-later
6*/
7#pragma once
8
9#include "filteractionwithstringlist.h"
10#include "mailcommon_private_export.h"
11#include <Akonadi/MessageStatus>
12namespace MailCommon
13{
14class MAILCOMMON_TESTS_EXPORT FilterActionStatus : public FilterActionWithStringList
15{
16 Q_OBJECT
17public:
18 FilterActionStatus(const QString &name, const QString &label, QObject *parent = nullptr);
19 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
20 [[nodiscard]] bool isEmpty() const override;
21 void argsFromString(const QString &argsStr) override;
22 [[nodiscard]] QString argsAsString() const override;
23 [[nodiscard]] QString displayString() const override;
24
25 static QString realStatusString(const QString &statusStr);
26 [[nodiscard]] QString informationAboutNotValidAction() const override;
27
28 static const Akonadi::MessageStatus statuses[];
29 static const int StatiCount;
30};
31}
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.