Messagelib

dkimrulewidget.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "messageviewer_private_export.h"
9#include <MessageViewer/DKIMRule>
10#include <QWidget>
11class QCheckBox;
12class QLineEdit;
13class QSpinBox;
14namespace MessageViewer
15{
16class DKIMManageRulesComboBox;
17class MESSAGEVIEWER_TESTS_EXPORT DKIMRuleWidget : public QWidget
18{
19 Q_OBJECT
20public:
21 explicit DKIMRuleWidget(QWidget *parent = nullptr);
22 ~DKIMRuleWidget() override;
23 void loadRule(const MessageViewer::DKIMRule &rule);
24 [[nodiscard]] MessageViewer::DKIMRule rule() const;
25
26Q_SIGNALS:
27 void updateOkButtonRequested(bool enabled);
28
29private:
30 MESSAGEVIEWER_NO_EXPORT void updateOkButton();
31 QCheckBox *const mEnabled;
32 QLineEdit *const mDomain;
33 QLineEdit *const mSignatureDomainIdentifier;
34 QLineEdit *const mFrom;
35 QLineEdit *const mListId;
36 QSpinBox *const mPriority;
37 DKIMManageRulesComboBox *const mRuleType;
38};
39}
The DKIMRule class.
Definition dkimrule.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:37:31 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.