Messagelib

autocryptkeyresolvercore.h
1 /* SPDX-FileCopyrightText: 2023 Sandro KnauƟ <sknauss@kde.org>
2  SPDX-License-Identifier: GPL-2.0-or-later
3 */
4 
5 #pragma once
6 
7 #include "messagecomposer_export.h"
8 
9 #include <Libkleo/KeyResolverCore>
10 
11 #include <memory>
12 
13 namespace MessageComposer
14 {
15 class AutocryptKeyResolverCorePrivate;
16 
17 class MESSAGECOMPOSER_EXPORT AutocryptKeyResolverCore : public Kleo::KeyResolverCore
18 {
19 public:
20  explicit AutocryptKeyResolverCore(bool encrypt, bool sign, GpgME::Protocol format = GpgME::UnknownProtocol);
21  ~AutocryptKeyResolverCore();
22 
23  Kleo::KeyResolverCore::Result resolve();
24 
25  [[nodiscard]] bool isAutocryptKey(const QString &recipient) const;
26  [[nodiscard]] bool isGossipKey(const QString &recipient) const;
27 
28 private:
29  std::unique_ptr<AutocryptKeyResolverCorePrivate> const d;
30 };
31 }
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 Thu Feb 15 2024 03:55:19 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.