aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgContext.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2025-04-12 19:49:00 +0000
committersaturneric <[email protected]>2025-04-12 19:49:00 +0000
commit5fb637cd8ebf56739177847f90a0b91c39d7d131 (patch)
treeaa1bf70b07e3977a0ee7aab036daa38217db5738 /src/core/function/gpg/GpgContext.h
parentfix: issues on adsk operations (diff)
downloadGpgFrontend-5fb637cd8ebf56739177847f90a0b91c39d7d131.tar.gz
GpgFrontend-5fb637cd8ebf56739177847f90a0b91c39d7d131.zip
feat: add assuan direct comm support
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_;