Messagelib

dkimcheckfulljob.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
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>
15namespace MessageViewer
16{
17class MESSAGEVIEWER_TESTS_EXPORT DKIMCheckFullJob : public QObject
18{
19 Q_OBJECT
20public:
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 [[nodiscard]] DKIMCheckPolicy policy() const;
28 void setPolicy(const DKIMCheckPolicy &policy);
29
30Q_SIGNALS:
31 void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult, Akonadi::Item::Id id);
32
33private:
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-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:08:46 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.