Messagelib

dkimrulewidget.h
1 /*
2  SPDX-FileCopyrightText: 2019-2021 Laurent Montel <[email protected]>
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>
11 class QCheckBox;
12 class QLineEdit;
13 class QSpinBox;
14 namespace MessageViewer
15 {
16 class DKIMManageRulesComboBox;
17 class MESSAGEVIEWER_TESTS_EXPORT DKIMRuleWidget : public QWidget
18 {
19  Q_OBJECT
20 public:
21  explicit DKIMRuleWidget(QWidget *parent = nullptr);
22  ~DKIMRuleWidget() override;
23  void loadRule(const MessageViewer::DKIMRule &rule);
24  Q_REQUIRED_RESULT MessageViewer::DKIMRule rule() const;
25 
26 Q_SIGNALS:
27  void updateOkButtonRequested(bool enabled);
28 
29 private:
30  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:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Dec 4 2021 23:12:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.