Messagelib

dkimmanager.h
1/*
2 SPDX-FileCopyrightText: 2019-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "dkimchecksignaturejob.h"
10#include "messageviewer_export.h"
11#include <Akonadi/Item>
12#include <KMime/Message>
13#include <QObject>
14
15namespace MessageViewer
16{
17/**
18 * @brief The DKIMManager class
19 * @author Laurent Montel <montel@kde.org>
20 */
21class MESSAGEVIEWER_EXPORT DKIMManager : public QObject
22{
23 Q_OBJECT
24public:
25 explicit DKIMManager(QObject *parent = nullptr);
26 ~DKIMManager() override;
27 static DKIMManager *self();
28
29 void checkDKim(const KMime::Message::Ptr &message);
30 void checkDKim(const Akonadi::Item &item);
31
32 void clearInfoWidget();
33
34 [[nodiscard]] DKIMCheckPolicy policy() const;
35 void setPolicy(const DKIMCheckPolicy &policy);
36 void recheckDKim(const Akonadi::Item &item);
37Q_SIGNALS:
38 void result(const MessageViewer::DKIMCheckSignatureJob::CheckSignatureResult &checkResult, Akonadi::Item::Id id);
39 void clearInfo();
40
41private:
42 MESSAGEVIEWER_NO_EXPORT void checkFullInfo(const Akonadi::Item &item);
43 DKIMCheckPolicy mCheckPolicy;
44};
45}
The DKIMCheckPolicy class.
The DKIMManager class.
Definition dkimmanager.h:22
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 4 2024 16:33:26 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.