File indexing completed on 2025-03-09 04:54:28
0001 /* 0002 SPDX-FileCopyrightText: 2018-2024 Laurent Montel <montel@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "dkimheaderparser.h" 0010 #include "messageviewer_private_export.h" 0011 #include <Akonadi/Item> 0012 #include <QObject> 0013 namespace MessageViewer 0014 { 0015 class DKIMAuthenticationStatusInfo; 0016 class MESSAGEVIEWER_TESTS_EXPORT DKIMCheckAuthenticationStatusJob : public QObject 0017 { 0018 Q_OBJECT 0019 public: 0020 explicit DKIMCheckAuthenticationStatusJob(QObject *parent = nullptr); 0021 ~DKIMCheckAuthenticationStatusJob() override; 0022 0023 void start(); 0024 0025 [[nodiscard]] bool canStart() const; 0026 0027 void setHeaderParser(const DKIMHeaderParser &headerParser); 0028 0029 [[nodiscard]] bool useRelaxedParsing() const; 0030 void setUseRelaxedParsing(bool useRelaxedParsing); 0031 0032 Q_SIGNALS: 0033 void result(const MessageViewer::DKIMAuthenticationStatusInfo &info); 0034 0035 private: 0036 DKIMHeaderParser mHeaderParser; 0037 bool mUseRelaxedParsing = false; 0038 }; 0039 }