Libksieve

sieveactionsetvariable.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "autocreatescripts/sieveglobalvariablewidget.h"
9#include "sieveaction.h"
10namespace KSieveUi
11{
12class SieveActionSetVariable : public SieveAction
13{
15public:
16 explicit SieveActionSetVariable(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent = nullptr);
17 [[nodiscard]] QString code(QWidget *) const override;
18 [[nodiscard]] QString help() const override;
19 [[nodiscard]] QStringList needRequires(QWidget *parent) const override;
20 void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, QString &error) override;
21 [[nodiscard]] bool needCheckIfServerHasCapability() const override;
22 [[nodiscard]] QString serverNeedsCapability() const override;
23 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
24 [[nodiscard]] QUrl href() const override;
25 void setLocalVariable(QWidget *w, const SieveGlobalVariableActionWidget::VariableElement &var);
26
27private:
28 bool mHasRegexCapability = false;
29};
30}
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 29 2024 11:56:12 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.