aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/function/gpg/GpgContext.h')
-rw-r--r--src/core/function/gpg/GpgContext.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgContext.h b/src/core/function/gpg/GpgContext.h
index f98adde8..4c683c0b 100644
--- a/src/core/function/gpg/GpgContext.h
+++ b/src/core/function/gpg/GpgContext.h
@@ -47,11 +47,11 @@ struct GpgContextInitArgs {
bool offline_mode = false; ///<
bool auto_import_missing_key = false; ///<
- QString gpgconf_path; ///<
-
bool use_pinentry = false; ///<
};
+enum class GpgComponentType { kGPG_AGENT, kDIRMNGR, kKEYBOXD, kGPG_AGENT_SSH };
+
/**
* @brief
*
@@ -71,6 +71,10 @@ class GPGFRONTEND_CORE_EXPORT GpgContext
auto DefaultContext() -> gpgme_ctx_t;
+ [[nodiscard]] auto HomeDirectory() const -> QString;
+
+ [[nodiscard]] auto ComponentDirectory(GpgComponentType) const -> QString;
+
private:
class Impl;
SecureUniquePtr<Impl> p_;