Libksieve

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