Libksieve

sieveeditorabstractwidget.h
1 /* SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
2  *
3  * SPDX-License-Identifier: LGPL-2.0-or-later
4  */
5 
6 #pragma once
7 
8 #include "../util/sieveimapaccountsettings.h"
9 #include "ksieveui_private_export.h"
10 #include <QWidget>
11 namespace KSieveUi
12 {
13 class SieveImapAccountSettings;
14 class KSIEVEUI_TESTS_EXPORT SieveEditorAbstractWidget : public QWidget
15 {
16  Q_OBJECT
17 public:
18  explicit SieveEditorAbstractWidget(QWidget *parent = nullptr);
19  ~SieveEditorAbstractWidget() override;
20 
21  Q_REQUIRED_RESULT virtual QString currentscript();
22  virtual void setImportScript(const QString &);
23  void saveAs(const QString &defaultName);
24 
25  Q_REQUIRED_RESULT KSieveUi::SieveImapAccountSettings sieveImapAccountSettings() const;
26 
27  void setSieveImapAccountSettings(const KSieveUi::SieveImapAccountSettings &sieveImapAccountSettings);
28 
29 public Q_SLOTS:
30  void slotImport();
31 
32 protected:
33  KSieveUi::SieveImapAccountSettings mSieveImapAccountSettings;
34 
35 private:
36  bool loadFromFile(const QString &filename);
37 };
38 }
39 
KGuiItem saveAs()
The SieveImapAccountSettings class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.