Libkleo

cryptoconfig.h
1/*
2 utils/cryptoconfig.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 <QList>
16
17class QString;
18class QUrl;
19
20namespace Kleo
21{
22
23/**
24 * Returns \c true if option \a entryName of component \a componentName is set,
25 * otherwise \c false.
26 *
27 * Can only be used for config entries with scalar value of type CryptoConfigEntry::ArgType_None.
28 */
29KLEO_EXPORT bool getCryptoConfigBoolValue(const char *componentName, const char *entryName);
30
31KLEO_EXPORT int getCryptoConfigIntValue(const char *componentName, const char *entryName, int defaultValue);
32
33KLEO_EXPORT QString getCryptoConfigStringValue(const char *componentName, const char *entryName);
34
35KLEO_EXPORT QList<QUrl> getCryptoConfigUrlList(const char *componentName, const char *entryName);
36
37}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:46:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.