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
13namespace MessageComposer
14{
15class AutocryptKeyResolverCorePrivate;
16
17class MESSAGECOMPOSER_EXPORT AutocryptKeyResolverCore : public Kleo::KeyResolverCore
18{
19public:
20 explicit AutocryptKeyResolverCore(bool encrypt, bool sign, GpgME::Protocol format = GpgME::UnknownProtocol);
21 ~AutocryptKeyResolverCore();
22
23 [[nodiscard]] Kleo::KeyResolverCore::Result resolve();
24
25 [[nodiscard]] bool isAutocryptKey(const QString &recipient) const;
26 [[nodiscard]] bool isGossipKey(const QString &recipient) const;
27
28private:
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 Mon Nov 4 2024 16:33:25 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.