Messagelib

dkimmanagerkeywidget.h
1/*
2 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#pragma once
7
8#include "messageviewer_export.h"
9#include <QWidget>
10class QTreeWidget;
11namespace MessageViewer
12{
13class DKIMManagerKeyTreeView;
14/**
15 * @brief The DKIMManagerKeyWidget class
16 * @author Laurent Montel <montel@kde.org>
17 */
18class MESSAGEVIEWER_EXPORT DKIMManagerKeyWidget : public QWidget
19{
20 Q_OBJECT
21public:
22 explicit DKIMManagerKeyWidget(QWidget *parent = nullptr);
23 ~DKIMManagerKeyWidget() override;
24
25 void loadKeys();
26 void saveKeys();
27 void resetKeys();
28 [[nodiscard]] QByteArray saveHeaders() const;
29 void restoreHeaders(const QByteArray &header);
30
31private:
32 MESSAGEVIEWER_NO_EXPORT void slotCustomContextMenuRequested(const QPoint &);
33 DKIMManagerKeyTreeView *const mDKIMManagerKeyTreeView;
34};
35}
The DKIMManagerKeyWidget class.
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.