File indexing completed on 2025-03-09 04:54:28

0001 /*
0002    SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
0003 
0004    Code based on ARHParser.jsm from dkim_verifier (Copyright (c) Philippe Lieser)
0005    (This software is licensed under the terms of the MIT License.)
0006 
0007    SPDX-License-Identifier: LGPL-2.0-or-later
0008 */
0009 
0010 #pragma once
0011 #include "dkimauthenticationstatusinfo.h"
0012 #include "dkimchecksignaturejob.h"
0013 #include "messageviewer_private_export.h"
0014 
0015 namespace MessageViewer
0016 {
0017 class MESSAGEVIEWER_TESTS_EXPORT DKIMAuthenticationStatusInfoConverter
0018 {
0019 public:
0020     DKIMAuthenticationStatusInfoConverter();
0021     ~DKIMAuthenticationStatusInfoConverter();
0022 
0023     [[nodiscard]] MessageViewer::DKIMAuthenticationStatusInfo statusInfo() const;
0024     void setStatusInfo(const MessageViewer::DKIMAuthenticationStatusInfo &statusInfo);
0025 
0026     [[nodiscard]] QList<DKIMCheckSignatureJob::DKIMCheckSignatureAuthenticationResult> convert() const;
0027 
0028 private:
0029     MessageViewer::DKIMAuthenticationStatusInfo mStatusInfo;
0030 };
0031 }