Libksieve

autocreatescriptdialog.h
1 /*
2  SPDX-FileCopyrightText: 2013-2020 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef AUTOCREATESCRIPTDIALOG_H
8 #define AUTOCREATESCRIPTDIALOG_H
9 
10 #include "ksieveui_export.h"
11 
12 #include <QDialog>
13 
14 namespace KSieveUi {
15 class SieveImapAccountSettings;
16 class SieveEditorGraphicalModeWidget;
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 protected:
36  bool event(QEvent *e) override;
37 
38 private:
39  void readConfig();
40  void writeConfig();
41 
42 private:
43  SieveEditorGraphicalModeWidget *mEditor = nullptr;
44 };
45 }
46 
47 #endif // AUTOCREATESCRIPTDIALOG_H
The AutoCreateScriptDialog class.
The SieveImapAccountSettings class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:09:31 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.