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>
13 namespace MessageViewer
14 {
15 class DKIMAuthenticationStatusInfo;
16 class MESSAGEVIEWER_TESTS_EXPORT DKIMCheckAuthenticationStatusJob : public QObject
17 {
18  Q_OBJECT
19 public:
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 
32 Q_SIGNALS:
33  void result(const MessageViewer::DKIMAuthenticationStatusInfo &info);
34 
35 private:
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 Thu Feb 15 2024 03:55:20 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.