aboutsummaryrefslogtreecommitdiffstats
path: root/src/core/function/gpg/GpgFileOpera.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-24 10:16:45 +0000
committersaturneric <[email protected]>2023-12-24 10:16:45 +0000
commite52215cd31237bcfe343754bdfcfdde65e804432 (patch)
tree91c4bbbe5d86ffaddd6f111bfa6e27aff1b644a0 /src/core/function/gpg/GpgFileOpera.h
parentfix: test the encrypt async api on gui app (diff)
downloadGpgFrontend-e52215cd31237bcfe343754bdfcfdde65e804432.tar.gz
GpgFrontend-e52215cd31237bcfe343754bdfcfdde65e804432.zip
fix: use the new async encrypt symmetric api at gui app
Diffstat (limited to 'src/core/function/gpg/GpgFileOpera.h')
-rw-r--r--src/core/function/gpg/GpgFileOpera.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/core/function/gpg/GpgFileOpera.h b/src/core/function/gpg/GpgFileOpera.h
index 0f278b1f..ec34487c 100644
--- a/src/core/function/gpg/GpgFileOpera.h
+++ b/src/core/function/gpg/GpgFileOpera.h
@@ -63,11 +63,9 @@ class GPGFRONTEND_CORE_EXPORT GpgFileOpera {
* @param channel
* @return unsigned int
*/
- static auto EncryptFileSymmetric(const std::string& in_path,
- const std::string& out_path,
- GpgEncrResult& result,
- int channel = kGpgFrontendDefaultChannel)
- -> unsigned int;
+ static void EncryptFileSymmetric(const std::string& in_path,
+ const std::string& out_path, bool ascii,
+ const GpgOperationCallback& cb);
/**
* @brief