File indexing completed on 2024-12-29 04:54:46
0001 /* 0002 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 #include "ksieveui_private_export.h" 0009 #include <QDialog> 0010 namespace TextCustomEditor 0011 { 0012 class RichTextEditorWidget; 0013 } 0014 namespace KSieveUi 0015 { 0016 class KSIEVEUI_TESTS_EXPORT SieveScriptParsingErrorDialog : public QDialog 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit SieveScriptParsingErrorDialog(QWidget *parent = nullptr); 0021 ~SieveScriptParsingErrorDialog() override; 0022 0023 void setError(QString script, QString); 0024 0025 private: 0026 void slotSaveAs(); 0027 void readConfig(); 0028 void writeConfig(); 0029 0030 private: 0031 TextCustomEditor::RichTextEditorWidget *const mTextEdit; 0032 }; 0033 }