Messagelib

dkimviewermenu.h
1 /*
2  SPDX-FileCopyrightText: 2019-2023 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 }
The DKIMViewerMenu class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Mar 27 2023 04:08:17 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.