Messagelib

dkimcheckauthenticationstatusjob.h
1/*
2 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "dkimheaderparser.h"
10#include "messageviewer_private_export.h"
11#include <Akonadi/Item>
12#include <QObject>
13namespace MessageViewer
14{
15class DKIMAuthenticationStatusInfo;
16class MESSAGEVIEWER_TESTS_EXPORT DKIMCheckAuthenticationStatusJob : public QObject
17{
18 Q_OBJECT
19public:
20 explicit DKIMCheckAuthenticationStatusJob(QObject *parent = nullptr);
21 ~DKIMCheckAuthenticationStatusJob() override;
22
23 void start();
24
25 [[nodiscard]] bool canStart() const;
26
27 void setHeaderParser(const DKIMHeaderParser &headerParser);
28
29 [[nodiscard]] bool useRelaxedParsing() const;
30 void setUseRelaxedParsing(bool useRelaxedParsing);
31
32Q_SIGNALS:
33 void result(const MessageViewer::DKIMAuthenticationStatusInfo &info);
34
35private:
36 DKIMHeaderParser mHeaderParser;
37 bool mUseRelaxedParsing = false;
38};
39}
Q_SCRIPTABLE Q_NOREPLY void start()
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:12:43 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.