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