Messagelib

abstractencryptjob.h
1/*
2 SPDX-FileCopyrightText: 2009 Klaralvdalens Datakonsult AB, a KDAB Group company, info@kdab.net
3 SPDX-FileCopyrightText: 2009 Leo Franchi <lfranchi@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#pragma once
9
10#include <QStringList>
11
12#include <gpgme++/key.h>
13#include <vector>
14
15/**
16 * Simple interface that both EncryptJob and SignEncryptJob implement
17 * so the composer can extract some encryption-specific job info from them
18 */
19namespace MessageComposer
20{
21class AbstractEncryptJob
22{
23public:
24 virtual ~AbstractEncryptJob() = default;
25
26 /**
27 * Set the list of encryption keys that should be used.
28 */
29 virtual void setEncryptionKeys(const std::vector<GpgME::Key> &keys) = 0;
30
31 /**
32 * Set the recipients that this message should be encrypted to.
33 */
34 virtual void setRecipients(const QStringList &rec) = 0;
35
36 virtual std::vector<GpgME::Key> encryptionKeys() const = 0;
37 virtual QStringList recipients() const = 0;
38};
39}
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 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.