File indexing completed on 2021-12-21 14:36:54

0001 /*
0002     SPDX-FileCopyrightText: 2002 Jean-Baptiste Mardelle <bj@altern.org>
0003     SPDX-FileCopyrightText: 2007, 2008, 2009, 2010, 2011, 2012 Rolf Eike Beer <kde@opensource.sf-tec.de>
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #ifndef KGPGINTERFACE_H
0008 #define KGPGINTERFACE_H
0009 
0010 #include "core/kgpgkey.h"
0011 #include <QStringList>
0012 
0013 class KGpgKeyNode;
0014 class QString;
0015 
0016 /**
0017  * GnuPG interface functions
0018  */
0019 namespace KgpgInterface {
0020     QString getGpgSetting(const QString &name, const QString &configfile);
0021     void setGpgSetting(const QString &name, const QString &value, const QString &url);
0022 
0023     bool getGpgBoolSetting(const QString &name, const QString &configfile);
0024     void setGpgBoolSetting(const QString &name, const bool enable, const QString &url);
0025 
0026     KgpgCore::KgpgKeyList readPublicKeys(const QStringList &ids = QStringList());
0027     void readSignatures(KGpgKeyNode *node);
0028     KgpgCore::KgpgKeyList readSecretKeys(const QStringList &ids = QStringList());
0029 }
0030 
0031 #endif // KGPGINTERFACE_H