Messagelib

dkimmanager.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 "dkimchecksignaturejob.h"
10 #include "messageviewer_export.h"
11 #include <Akonadi/Item>
12 #include <KMime/Message>
13 #include <QObject>
14 
15 namespace MessageViewer
16 {
17 /**
18  * @brief The DKIMManager class
19  * @author Laurent Montel <[email protected]>
20  */
21 class MESSAGEVIEWER_EXPORT DKIMManager : public QObject
22 {
23  Q_OBJECT
24 public:
25  explicit DKIMManager(QObject *parent = nullptr);
26  ~DKIMManager() override;
27  static DKIMManager *self();
28 
29  void checkDKim(const KMime::Message::Ptr &message);
30  void checkDKim(const Akonadi::Item &item);
31 
32  void clearInfoWidget();
33 
34  Q_REQUIRED_RESULT DKIMCheckPolicy policy() const;
35  void setPolicy(const DKIMCheckPolicy &policy);
36  void recheckDKim(const Akonadi::Item &item);
37 Q_SIGNALS:
38  void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult, Akonadi::Item::Id id);
39  void clearInfo();
40 
41 private:
42  void checkFullInfo(const Akonadi::Item &item);
43  DKIMCheckPolicy mCheckPolicy;
44 };
45 }
46 
The DKIMManager class.
Definition: dkimmanager.h:21
The DKIMCheckPolicy 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.