Mailcommon

filteractionwithtest.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 "filteraction.h"
11
12namespace MailCommon
13{
14class FilterActionWithTest : public FilterAction
15{
17public:
18 /**
19 * @copydoc FilterAction::FilterAction
20 */
21 explicit FilterActionWithTest(const QString &name, const QString &label, QObject *parent = nullptr);
22
23 /**
24 * @copydoc FilterAction::~FilterAction
25 */
26 ~FilterActionWithTest() override;
27
28 /**
29 * @copydoc FilterAction::isEmpty
30 */
31 [[nodiscard]] bool isEmpty() const override;
32
33 /**
34 * @copydoc FilterAction::createParamWidget
35 */
36 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
37
38 /**
39 * @copydoc FilterAction::applyParamWidgetValue
40 */
41 void applyParamWidgetValue(QWidget *paramWidget) override;
42
43 /**
44 * @copydoc FilterAction::setParamWidgetValue
45 */
46 void setParamWidgetValue(QWidget *paramWidget) const override;
47
48 /**
49 * @copydoc FilterAction::clearParamWidget
50 */
51 void clearParamWidget(QWidget *paramWidget) const override;
52
53 /**
54 * @copydoc FilterAction::argsFromString
55 */
56 void argsFromString(const QString &argsStr) override;
57
58 /**
59 * @copydoc FilterAction::argsAsString
60 */
61 [[nodiscard]] QString argsAsString() const override;
62
63 /**
64 * @copydoc FilterAction::displayString
65 */
66 [[nodiscard]] QString displayString() const override;
67
68protected:
69 QString mParameter;
70};
71}
QString name() const
Returns identifier name, ie.
QString label() const
Returns i18n'd label, ie.
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.