File indexing completed on 2025-03-09 04:54:30

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #pragma once
0007 
0008 #include "messageviewer_export.h"
0009 #include <QDialog>
0010 
0011 class QPushButton;
0012 namespace MessageViewer
0013 {
0014 class DKIMManageRulesWidget;
0015 /**
0016  * @brief The DKIMManageRulesDialog class
0017  * @author Laurent Montel <montel@kde.org>
0018  */
0019 class MESSAGEVIEWER_EXPORT DKIMManageRulesDialog : public QDialog
0020 {
0021     Q_OBJECT
0022 public:
0023     explicit DKIMManageRulesDialog(QWidget *parent = nullptr);
0024     ~DKIMManageRulesDialog() override;
0025 
0026 private:
0027     MESSAGEVIEWER_NO_EXPORT void slotAccepted();
0028     MESSAGEVIEWER_NO_EXPORT void readConfig();
0029     MESSAGEVIEWER_NO_EXPORT void writeConfig();
0030     MESSAGEVIEWER_NO_EXPORT void slotImport();
0031     MESSAGEVIEWER_NO_EXPORT void slotExport();
0032     DKIMManageRulesWidget *const mRulesWidget;
0033     QPushButton *const mExportButton;
0034 };
0035 }