Messagelib

abstractencryptjob.h
1 /*
2  SPDX-FileCopyrightText: 2009 Klaralvdalens Datakonsult AB, a KDAB Group company, [email protected]
3  SPDX-FileCopyrightText: 2009 Leo Franchi <[email protected]>
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  */
19 namespace MessageComposer
20 {
21 class AbstractEncryptJob
22 {
23 public:
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-2021 The KDE developers.
Generated on Fri Nov 26 2021 23:16:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.