Mailcommon

filteractionstatus.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#pragma once
8
9#include "filteractionwithstringlist.h"
10#include <Akonadi/MessageStatus>
11
12namespace MailCommon
13{
14class FilterActionStatus : public FilterActionWithStringList
15{
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}
QString name() const
Returns identifier name, ie.
QString label() const
Returns i18n'd label, ie.
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 Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.