Mailcommon

filteractionwithtest.h
1 /*
2  * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <[email protected]>
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  *
6  */
7 
8 #pragma once
9 
10 #include "filteraction.h"
11 
12 namespace MailCommon
13 {
14 class FilterActionWithTest : public FilterAction
15 {
16  Q_OBJECT
17 public:
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  Q_REQUIRED_RESULT bool isEmpty() const override;
32 
33  /**
34  * @copydoc FilterAction::createParamWidget
35  */
36  Q_REQUIRED_RESULT 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  Q_REQUIRED_RESULT QString argsAsString() const override;
62 
63  /**
64  * @copydoc FilterAction::displayString
65  */
66  Q_REQUIRED_RESULT QString displayString() const override;
67 
68 protected:
69  QString mParameter;
70 };
71 }
Q_OBJECTQ_OBJECT
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.