Libksieve

sieveactionabstractflags.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #pragma once
7 
8 #include "sieveaction.h"
9 namespace KSieveUi
10 {
11 class SieveActionAbstractFlags : public SieveAction
12 {
13  Q_OBJECT
14 public:
15  SieveActionAbstractFlags(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, const QString &name, const QString &label, QObject *parent = nullptr);
16 
17  Q_REQUIRED_RESULT QWidget *createParamWidget(QWidget *parent) const override;
18  void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, QString &error) override;
19  Q_REQUIRED_RESULT QString code(QWidget *) const override;
20  Q_REQUIRED_RESULT QStringList needRequires(QWidget *parent) const override;
21 
22  virtual QString flagsCode() const = 0;
23 
24  Q_REQUIRED_RESULT bool needCheckIfServerHasCapability() const override;
25 
26  QString serverNeedsCapability() const override;
27 };
28 }
29 
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.