File indexing completed on 2024-12-15 04:55:37

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KPageDialog>
0010 class QCheckBox;
0011 class SieveEditorConfigureServerWidget;
0012 #ifdef WITH_KUSERFEEDBACK
0013 namespace KUserFeedback
0014 {
0015 class FeedbackConfigWidget;
0016 }
0017 #endif
0018 
0019 class SieveEditorConfigureDialog : public KPageDialog
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit SieveEditorConfigureDialog(QWidget *parent = nullptr);
0024     ~SieveEditorConfigureDialog() override;
0025 
0026     void saveServerSieveConfig();
0027 
0028 private:
0029     void readConfig();
0030     void writeConfig();
0031     void loadServerSieveConfig();
0032     SieveEditorConfigureServerWidget *mServerWidget = nullptr;
0033     QCheckBox *mWrapText = nullptr;
0034 #ifdef WITH_KUSERFEEDBACK
0035     KUserFeedback::FeedbackConfigWidget *mUserFeedbackWidget = nullptr;
0036 #endif
0037 };