Messagelib

dkimruledialog.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 
9 #include "messageviewer_private_export.h"
10 #include <MessageViewer/DKIMRule>
11 #include <QDialog>
12 class QPushButton;
13 namespace MessageViewer
14 {
15 class DKIMRuleWidget;
16 class MESSAGEVIEWER_TESTS_EXPORT DKIMRuleDialog : public QDialog
17 {
18  Q_OBJECT
19 public:
20  explicit DKIMRuleDialog(QWidget *parent = nullptr);
21  ~DKIMRuleDialog() override;
22 
23  Q_REQUIRED_RESULT MessageViewer::DKIMRule rule() const;
24  void loadRule(const MessageViewer::DKIMRule &rule);
25 
26 private:
27  void writeConfig();
28  void readConfig();
29  DKIMRuleWidget *const mRuleWidget;
30  QPushButton *mOkButton = nullptr;
31 };
32 }
33 
void readConfig()
The DKIMRule class.
Definition: dkimrule.h:17
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.