Messagelib

protectedheadersjob.h
1/*
2 SPDX-FileCopyrightText: 2020 Sandro Knauß <sknauss@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "contentjobbase.h"
10#include "messagecomposer_export.h"
11
12namespace KMime
13{
14class Content;
15class Message;
16}
17
18namespace MessageComposer
19{
20class ProtectedHeadersJobPrivate;
21
22/**
23 Copies headers from skeleton message to content.
24 It is used for Protected Headers for Cryptographic E-mail
25 currently a draft for RFC:
26 https://datatracker.ietf.org/doc/draft-autocrypt-lamps-protected-headers/
27 Used as a subjob of EncryptJob/SignJob/SignEncryptJob
28*/
29class MESSAGECOMPOSER_EXPORT ProtectedHeadersJob : public ContentJobBase
30{
31 Q_OBJECT
32
33public:
34 explicit ProtectedHeadersJob(QObject *parent = nullptr);
35 ~ProtectedHeadersJob() override;
36
37 void setContent(KMime::Content *content);
38 void setSkeletonMessage(KMime::Message *skeletonMessage);
39
40 void setObvoscate(bool obvoscate);
41
42protected Q_SLOTS:
43 void doStart() override;
44 void process() override;
45
46private:
47 Q_DECLARE_PRIVATE(ProtectedHeadersJob)
48};
49}
The ContentJobBase class.
Copies headers from skeleton message to content.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:07:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.