diff --git a/src/kleo/keyresolvercore.h b/src/kleo/keyresolvercore.h index 9f2321f47..ce0902b73 100644 --- a/src/kleo/keyresolvercore.h +++ b/src/kleo/keyresolvercore.h @@ -1,85 +1,85 @@ /* -*- c++ -*- kleo/keyresolvercore.h This file is part of libkleopatra, the KDE keymanagement library SPDX-FileCopyrightText: 2018 Intevation GmbH SPDX-FileCopyrightText: 2021 g10 Code GmbH SPDX-FileContributor: Ingo Klöcker SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "kleo_export.h" #include #include #include #include #include #include class QString; namespace GpgME { class Key; } namespace Kleo { class KLEO_EXPORT KeyResolverCore { public: enum SolutionFlags { // clang-format off SomeUnresolved = 0, AllResolved = 1, OpenPGPOnly = 2, CMSOnly = 4, MixedProtocols = OpenPGPOnly | CMSOnly, Error = 0x1000, ResolvedMask = AllResolved | Error, ProtocolsMask = OpenPGPOnly | CMSOnly | Error, // clang-format on }; struct Result { SolutionFlags flags; KeyResolver::Solution solution; KeyResolver::Solution alternative; }; explicit KeyResolverCore(bool encrypt, bool sign, GpgME::Protocol format = GpgME::UnknownProtocol); - ~KeyResolverCore(); + virtual ~KeyResolverCore(); void setSender(const QString &sender); QString normalizedSender() const; void setRecipients(const QStringList &addresses); void setSigningKeys(const QStringList &fingerprints); void setOverrideKeys(const QMap> &overrides); void setAllowMixedProtocols(bool allowMixed); void setPreferredProtocol(GpgME::Protocol proto); void setMinimumValidity(int validity); - Result resolve(); + virtual Result resolve(); private: class Private; std::unique_ptr d; }; } // namespace Kleo