Libksieve

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

KDE's Doxygen guidelines are available online.