Libksieve

autocreatescriptdialog.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 "ksieveui_export.h"
10
11#include <QDialog>
12namespace KSieveCore
13{
14class SieveImapAccountSettings;
15}
16namespace KSieveUi
17{
18class SieveEditorGraphicalModeWidget;
19/**
20 * @brief The AutoCreateScriptDialog class
21 * @author Laurent Montel <montel@kde.org>
22 */
23class KSIEVEUI_EXPORT AutoCreateScriptDialog : public QDialog
24{
25 Q_OBJECT
26public:
27 explicit AutoCreateScriptDialog(QWidget *parent = nullptr);
28 ~AutoCreateScriptDialog() override;
29
30 [[nodiscard]] QString script(QStringList &required) const;
31 void setSieveCapabilities(const QStringList &capabilities);
32 void setListOfIncludeFile(const QStringList &listOfIncludeFile);
33
34 void loadScript(const QString &doc, QString &error);
35
36 void setSieveImapAccountSettings(const KSieveCore::SieveImapAccountSettings &sieveImapAccountSettings);
37
38protected:
39 bool event(QEvent *e) override;
40
41private:
42 KSIEVEUI_NO_EXPORT void readConfig();
43 KSIEVEUI_NO_EXPORT void writeConfig();
44
45private:
46 SieveEditorGraphicalModeWidget *const mEditor;
47};
48}
The SieveImapAccountSettings class.
The AutoCreateScriptDialog class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:09:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.