Libksieve

sievetemplateeditdialog.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QDialog>
10
11class QLineEdit;
12class QPushButton;
13
14namespace KSieveUi
15{
16class SieveTextEditWidget;
17class SieveTemplateEditDialog : public QDialog
18{
20public:
21 explicit SieveTemplateEditDialog(QWidget *parent = nullptr, bool defaultTemplate = false);
22 ~SieveTemplateEditDialog() override;
23
24 void setTemplateName(const QString &name);
25 [[nodiscard]] QString templateName() const;
26
27 void setScript(const QString &);
28 [[nodiscard]] QString script() const;
29 void setSieveCapabilities(const QStringList &capabilities);
30
31private:
32 void slotTemplateChanged();
33 void readConfig();
34 void writeConfig();
35 SieveTextEditWidget *mTextEditWidget = nullptr;
36 QLineEdit *mTemplateNameEdit = nullptr;
37 QPushButton *mOkButton = nullptr;
38};
39}
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:14:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.