Messagelib

dkimcheckpolicyjob.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 "dkimchecksignaturejob.h"
10#include "dmarcpolicyjob.h"
11#include "messageviewer_export.h"
12#include <QObject>
13namespace MessageViewer
14{
15/**
16 * @brief The DKIMCheckPolicyJob class
17 * @author Laurent Montel <montel@kde.org>
18 */
19class MESSAGEVIEWER_EXPORT DKIMCheckPolicyJob : public QObject
20{
21 Q_OBJECT
22public:
23 explicit DKIMCheckPolicyJob(QObject *parent = nullptr);
24 ~DKIMCheckPolicyJob() override;
25 [[nodiscard]] bool canStart() const;
26 [[nodiscard]] bool start();
27
28 [[nodiscard]] MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult checkResult() const;
29 void setCheckResult(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
30
31 [[nodiscard]] QString emailAddress() const;
32 void setEmailAddress(const QString &emailAddress);
33
34 [[nodiscard]] DKIMCheckPolicy policy() const;
35 void setPolicy(const DKIMCheckPolicy &policy);
36
37Q_SIGNALS:
38 void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult);
39
40private:
41 MESSAGEVIEWER_NO_EXPORT void compareWithDefaultRules();
42 MESSAGEVIEWER_NO_EXPORT void dmarcPolicyResult(const MessageViewer::DMARCPolicyJob::DMARCResult &value, const QString &emailAddress);
43 MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult mCheckResult;
44 QString mEmailAddress;
45 DKIMCheckPolicy mPolicy;
46};
47}
The DKIMCheckPolicyJob class.
The DKIMCheckPolicy class.
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.