14#include "kleo_export.h"
18#include <gpgme++/engineinfo.h>
19#include <gpgme++/key.h>
28KLEO_EXPORT QString gnupgHomeDirectory();
29KLEO_EXPORT QString gnupgPrivateKeysDirectory();
31KLEO_EXPORT QString gpgConfPath();
32KLEO_EXPORT QString gpgSmPath();
33KLEO_EXPORT QString gpgPath();
35KLEO_EXPORT QString gpgConfListDir(
const char *which);
36KLEO_EXPORT QString gpg4winInstallPath();
37KLEO_EXPORT QString gnupgInstallPath();
38KLEO_EXPORT
const QString &paperKeyInstallPath();
53KLEO_EXPORT
bool gpgvVerify(
const QString &filePath,
const QString &sigPath = {},
const QString &keyring = {},
const QStringList &additionalSearchPaths = {});
60KLEO_EXPORT QStringList gnupgFileWhitelist();
65KLEO_EXPORT QStringList gnupgFolderWhitelist();
66KLEO_EXPORT
int makeGnuPGError(
int code);
68KLEO_EXPORT
bool engineIsVersion(
int major,
int minor,
int patch, GpgME::Engine = GpgME::GpgConfEngine);
80KLEO_EXPORT
bool haveKeyserverConfigured();
91KLEO_EXPORT QString keyserver();
96KLEO_EXPORT
bool haveX509DirectoryServerConfigured();
99KLEO_DEPRECATED_EXPORT
bool gpgComplianceP(
const char *mode);
104KLEO_DEPRECATED_EXPORT
bool gnupgUsesDeVsCompliance();
109KLEO_DEPRECATED_EXPORT
bool gnupgIsDeVsCompliant();
114KLEO_EXPORT QString stringFromGpgOutput(
const QByteArray &ba);
118KLEO_EXPORT
bool versionIsAtLeast(
const char *minimum,
const char *actual);
123KLEO_EXPORT QStringList backendVersionInfo();
128KLEO_EXPORT QList<KAboutComponent> backendComponents();
130enum LaunchGpgAgentOptions {
131 CheckForRunningAgent,
132 SkipCheckForRunningAgent,
140KLEO_EXPORT
void launchGpgAgent(LaunchGpgAgentOptions options = CheckForRunningAgent);
143KLEO_EXPORT
void restartGpgAgent();
148KLEO_EXPORT
const std::vector<std::string> &availableAlgorithms();
153KLEO_EXPORT
const std::vector<std::string> &preferredAlgorithms();
158KLEO_EXPORT
const std::vector<std::string> &ignoredAlgorithms();
163KLEO_EXPORT std::vector<QByteArray> readSecretKeyFile(
const QString &keyGrip);