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 
0007 #pragma once
0008 #include "messageviewer_private_export.h"
0009 #include <MessageViewer/DKIMRule>
0010 #include <QComboBox>
0011 namespace MessageViewer
0012 {
0013 class MESSAGEVIEWER_TESTS_EXPORT DKIMManageRulesComboBox : public QComboBox
0014 {
0015     Q_OBJECT
0016 public:
0017     explicit DKIMManageRulesComboBox(QWidget *parent = nullptr);
0018     ~DKIMManageRulesComboBox() override;
0019     [[nodiscard]] MessageViewer::DKIMRule::RuleType ruleType() const;
0020     void setRuleType(MessageViewer::DKIMRule::RuleType type);
0021 
0022 private:
0023     void init();
0024 };
0025 }