Libkleo

compat.h
1/*
2 utils/compat.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2021 g10 Code GmbH
6 SPDX-FileContributor: Ingo Klöcker <dev@ingo-kloecker.de>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include "kleo_export.h"
14
15#include <sstream>
16
17namespace GpgME
18{
19class Key;
20}
21namespace QGpgME
22{
23class CryptoConfig;
24class CryptoConfigEntry;
25}
26
27namespace Kleo
28{
29
30KLEO_EXPORT QGpgME::CryptoConfigEntry *getCryptoConfigEntry(const QGpgME::CryptoConfig *config, const char *componentName, const char *entryName);
31
32/**
33 * Returns true, if the key has a certification subkey.
34 * Compatibility function for GpgME::Key::hasCertify() added in GpgME 1.23
35 */
36KLEO_EXPORT bool keyHasCertify(const GpgME::Key &key);
37/**
38 * Returns true, if the key has a signing subkey.
39 * Compatibility function for GpgME::Key::hasSign() added in GpgME 1.23
40 */
41KLEO_EXPORT bool keyHasSign(const GpgME::Key &key);
42/**
43 * Returns true, if the key has an encryption subkey.
44 * Compatibility function for GpgME::Key::hasEncrypt() added in GpgME 1.23
45 */
46KLEO_EXPORT bool keyHasEncrypt(const GpgME::Key &key);
47/**
48 * Returns true, if the key has an authentication subkey.
49 * Compatibility function for GpgME::Key::hasAuthenticate() added in GpgME 1.23
50 */
51KLEO_EXPORT bool keyHasAuthenticate(const GpgME::Key &key);
52}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:00:53 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.