Libksieve

sieveactionsetvariable.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 #include <autocreatescripts/sieveglobalvariablewidget.h>
10 namespace KSieveUi
11 {
12 class SieveActionSetVariable : public SieveAction
13 {
14  Q_OBJECT
15 public:
16  explicit SieveActionSetVariable(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent = nullptr);
17  Q_REQUIRED_RESULT QString code(QWidget *) const override;
18  Q_REQUIRED_RESULT QString help() const override;
19  Q_REQUIRED_RESULT QStringList needRequires(QWidget *parent) const override;
20  void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, QString &error) override;
21  Q_REQUIRED_RESULT bool needCheckIfServerHasCapability() const override;
22  Q_REQUIRED_RESULT QString serverNeedsCapability() const override;
23  Q_REQUIRED_RESULT QWidget *createParamWidget(QWidget *parent) const override;
24  Q_REQUIRED_RESULT QUrl href() const override;
25  void setLocalVariable(QWidget *w, const SieveGlobalVariableActionWidget::VariableElement &var);
26 
27 private:
28  bool mHasRegexCapability = false;
29 };
30 }
31 
const QList< QKeySequence > & help()
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.