Messagelib

dkimviewermenu.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_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 <[email protected]>
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 
The DKIMViewerMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Dec 2 2021 23:06:08 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.