Messagelib

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

KDE's Doxygen guidelines are available online.