Messagelib

protectedheadersjob.h
1 /*
2  SPDX-FileCopyrightText: 2020 Sandro KnauƟ <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "contentjobbase.h"
10 #include "infopart.h"
11 #include "messagecomposer_export.h"
12 
13 namespace KMime
14 {
15 class Content;
16 }
17 
18 namespace MessageComposer
19 {
20 class 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 */
29 class MESSAGECOMPOSER_EXPORT ProtectedHeadersJob : public ContentJobBase
30 {
31  Q_OBJECT
32 
33 public:
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 
42 protected Q_SLOTS:
43  void doStart() override;
44  void process() override;
45 
46 private:
47  Q_DECLARE_PRIVATE(ProtectedHeadersJob)
48 };
49 }
50 
Copies headers from skeleton message to content.
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The ContentJobBase class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Dec 5 2021 23:04:54 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.