Libksieve

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

KDE's Doxygen guidelines are available online.