diff options
author | Saturneric <[email protected]> | 2021-09-20 09:35:57 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-09-20 09:35:57 +0000 |
commit | 8544bb3ed9ccf09f3082c3032381a1b61dc5e122 (patch) | |
tree | e5b12fd9c1331718dd60926ed7b4056361a8b68f /src/gpg/function/GpgFileOpera.h | |
parent | Support multi-channel Context. (diff) | |
download | GpgFrontend-8544bb3ed9ccf09f3082c3032381a1b61dc5e122.tar.gz GpgFrontend-8544bb3ed9ccf09f3082c3032381a1b61dc5e122.zip |
The basic functions of the core pass the test.
Adjust and improve the core part of the interface.
Diffstat (limited to '')
-rw-r--r-- | src/gpg/function/GpgFileOpera.h | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/gpg/function/GpgFileOpera.h b/src/gpg/function/GpgFileOpera.h index 582dbbd2..2eac251b 100644 --- a/src/gpg/function/GpgFileOpera.h +++ b/src/gpg/function/GpgFileOpera.h @@ -32,24 +32,29 @@ namespace GpgFrontend { class GpgFileOpera { -public: - GpgError EncryptFile(KeyArgsList &keys, const std::string &path, - GpgEncrResult &result); + public: + GpgError EncryptFile(KeyArgsList&& keys, + const std::string& path, + GpgEncrResult& result); - GpgError DecryptFile(const std::string &path, GpgDecrResult &result); + GpgError DecryptFile(const std::string& path, GpgDecrResult& result); - GpgError SignFile(KeyArgsList &keys, const std::string &path, - GpgSignResult &result); + GpgError SignFile(KeyArgsList&& keys, + const std::string& path, + GpgSignResult& result); - GpgError VerifyFile(const std::string &path, GpgVerifyResult &result); + GpgError VerifyFile(const std::string& path, GpgVerifyResult& result); - GpgError EncryptSignFile(KeyArgsList &keys, const std::string &path, - GpgEncrResult &encr_res, GpgSignResult &sign_res); + GpgError EncryptSignFile(KeyArgsList&& keys, + const std::string& path, + GpgEncrResult& encr_res, + GpgSignResult& sign_res); - GpgError DecryptVerifyFile(const std::string &path, GpgDecrResult &decr_res, - GpgVerifyResult &verify_res); + GpgError DecryptVerifyFile(const std::string& path, + GpgDecrResult& decr_res, + GpgVerifyResult& verify_res); }; -} // namespace GpgFrontend +} // namespace GpgFrontend -#endif // GPGFRONTEND_GPGFILEOPERA_H +#endif // GPGFRONTEND_GPGFILEOPERA_H |