Messagelib

dkimcheckauthenticationstatusjob.h
1 /*
2  SPDX-FileCopyrightText: 2018-2021 Laurent Montel <[email protected]>
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  Q_REQUIRED_RESULT bool canStart() const;
26 
27  void setHeaderParser(const DKIMHeaderParser &headerParser);
28 
29  Q_REQUIRED_RESULT 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 }
40 
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:41 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.