Messagelib

dkimviewermenu.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_export.h"
10#include <QObject>
11class QMenu;
12class QAction;
13namespace MessageViewer
14{
15/**
16 * @brief The DKIMViewerMenu class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGEVIEWER_EXPORT DKIMViewerMenu : public QObject
20{
21 Q_OBJECT
22public:
23 explicit DKIMViewerMenu(QObject *parent = nullptr);
24 ~DKIMViewerMenu() override;
25 [[nodiscard]] QMenu *menu() const;
26
27 void setEnableUpdateDkimKeyMenu(bool enabled);
28Q_SIGNALS:
29 void recheckSignature();
30 void updateDkimKey();
31 void showDkimRules();
32
33private:
34 MESSAGEVIEWER_NO_EXPORT void initialize();
35 QMenu *const mMenu;
36 QAction *mUpdateDKIMKey = nullptr;
37};
38}
The DKIMViewerMenu class.
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.