Messagelib

autocryptheadersjob.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
12#include <gpgme++/key.h>
13#include <vector>
14
15namespace KMime
16{
17class Content;
18class Message;
19}
20
21namespace MessageComposer
22{
23class AutocryptHeadersJobPrivate;
24
25/**
26 */
27class MESSAGECOMPOSER_EXPORT AutocryptHeadersJob : public ContentJobBase
28{
29 Q_OBJECT
30
31public:
32 explicit AutocryptHeadersJob(QObject *parent = nullptr);
33 ~AutocryptHeadersJob() override;
34
35 void setContent(KMime::Content *content);
36 void setSkeletonMessage(KMime::Message *skeletonMessage);
37
38 void setGnupgHome(const QString &path);
39
40 void setSenderKey(const GpgME::Key &key);
41 void setPreferEncrypted(bool preferEncrypted);
42 void setGossipKeys(const std::vector<GpgME::Key> &gossipKeys);
43
44protected Q_SLOTS:
45 void process() override;
46
47private:
48 Q_DECLARE_PRIVATE(AutocryptHeadersJob)
49};
50}
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 Fri Nov 29 2024 11:50:54 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.