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{
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}
KMime::Content * content() const
Get the resulting KMime::Content that the ContentJobBase has generated.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:47:39 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.