Libksieve

sieveeditorparsingmissingfeaturewarning.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "ksieveui_private_export.h"
9#include <KMessageWidget>
10namespace KSieveUi
11{
12class KSIEVEUI_TESTS_EXPORT SieveEditorParsingMissingFeatureWarning : public KMessageWidget
13{
14 Q_OBJECT
15public:
16 enum TextEditorType {
18 GraphicEditor
19 };
20
21 explicit SieveEditorParsingMissingFeatureWarning(SieveEditorParsingMissingFeatureWarning::TextEditorType type, QWidget *parent = nullptr);
22 ~SieveEditorParsingMissingFeatureWarning() override;
23
24 void setErrors(const QString &initialScript, const QString &errors);
25 [[nodiscard]] QString initialScript() const;
26
27Q_SIGNALS:
28 void switchToGraphicalMode();
29 void switchToTextMode();
30
31private:
32 void slotSwitchInGraphicalMode();
33 void slotSwitchInTextMode();
34 void slotInActualMode();
35 void slotShowDetails(const QString &content);
36 QString mErrors;
37 QString mScript;
38};
39}
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.