Messagelib

dkimcheckfulljob.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 "dkimauthenticationstatusinfo.h"
10 #include "dkimchecksignaturejob.h"
11 #include "messageviewer_private_export.h"
12 #include <Akonadi/Item>
13 #include <MessageViewer/DKIMCheckPolicy>
14 #include <QObject>
15 namespace MessageViewer
16 {
17 class MESSAGEVIEWER_TESTS_EXPORT DKIMCheckFullJob : public QObject
18 {
19  Q_OBJECT
20 public:
21  explicit DKIMCheckFullJob(QObject *parent = nullptr);
22  ~DKIMCheckFullJob() override;
23 
24  void startCheckFullInfo(const KMime::Message::Ptr &message);
25  void startCheckFullInfo(const Akonadi::Item &item);
26 
27  Q_REQUIRED_RESULT DKIMCheckPolicy policy() const;
28  void setPolicy(const DKIMCheckPolicy &policy);
29 
30 Q_SIGNALS:
31  void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult, Akonadi::Item::Id id);
32 
33 private:
34  void slotCheckSignatureResult(const DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
35  void slotCheckAuthenticationStatusResult(const MessageViewer::DKIMAuthenticationStatusInfo &info);
37  void storeKey(const QString &key, const QString &domain, const QString &selector);
38  void storeInKeyManager(const QString &key, const QString &domain, const QString &selector, bool verify);
39  void storeResult(const DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
40  void generateRule(const DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
41  void checkAuthenticationResults();
42  DKIMCheckPolicy mCheckPolicy;
43  KMime::Message::Ptr mMessage;
44  Akonadi::Item mAkonadiItem;
45  DKIMHeaderParser mHeaderParser;
46 };
47 }
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:53 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.