diff options
Diffstat (limited to 'framework/src/domain/mime/mailcrypto.h')
-rw-r--r-- | framework/src/domain/mime/mailcrypto.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/framework/src/domain/mime/mailcrypto.h b/framework/src/domain/mime/mailcrypto.h index 724d6427..89343fc9 100644 --- a/framework/src/domain/mime/mailcrypto.h +++ b/framework/src/domain/mime/mailcrypto.h | |||
@@ -19,18 +19,18 @@ | |||
19 | 19 | ||
20 | #pragma once | 20 | #pragma once |
21 | 21 | ||
22 | #include <QByteArray> | ||
23 | #include <KMime/Message> | 22 | #include <KMime/Message> |
24 | #include <gpgme++/key.h> | 23 | #include <QByteArray> |
25 | #include <functional> | 24 | #include <functional> |
25 | #include <gpgme++/key.h> | ||
26 | |||
27 | namespace MailCrypto { | ||
28 | |||
29 | KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys, | ||
30 | const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey); | ||
31 | |||
32 | std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false); | ||
33 | |||
34 | void importKeys(const std::vector<GpgME::Key> &keys); | ||
26 | 35 | ||
27 | namespace MailCrypto | 36 | }; // namespace MailCrypto |
28 | { | ||
29 | enum Protocol { | ||
30 | OPENPGP, | ||
31 | SMIME | ||
32 | }; | ||
33 | KMime::Content *processCrypto(KMime::Content *content, const std::vector<GpgME::Key> &signingKeys, const std::vector<GpgME::Key> &encryptionKeys, const GpgME::Key &attachedKey, MailCrypto::Protocol protocol); | ||
34 | std::vector<GpgME::Key> findKeys(const QStringList &filter, bool findPrivate = false, bool remote = false, Protocol protocol = OPENPGP); | ||
35 | void importKeys(const std::vector<GpgME::Key> &keys); | ||
36 | }; | ||