diff options
author | saturneric <[email protected]> | 2023-12-28 06:32:49 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2023-12-28 06:32:49 +0000 |
commit | 300e55bf5bddc393de050c2ca9a0356fce9a8a9d (patch) | |
tree | 8332e6b50158718ad98c954302951668a57712a8 /src/ui/main_window/MainWindow.h | |
parent | feat: avoid reading entire file to memory (diff) | |
download | GpgFrontend-300e55bf5bddc393de050c2ca9a0356fce9a8a9d.tar.gz GpgFrontend-300e55bf5bddc393de050c2ca9a0356fce9a8a9d.zip |
feat: add simple archiving functions for encrypt and decrypt
Diffstat (limited to 'src/ui/main_window/MainWindow.h')
-rw-r--r-- | src/ui/main_window/MainWindow.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/ui/main_window/MainWindow.h b/src/ui/main_window/MainWindow.h index 81975579..eb21937e 100644 --- a/src/ui/main_window/MainWindow.h +++ b/src/ui/main_window/MainWindow.h @@ -119,12 +119,25 @@ class MainWindow : public GeneralMainWindow { /** * @details Open dialog for encrypting file. */ - void SlotFileEncrypt(); + void SlotFileEncrypt(std::filesystem::path); + + /** + * @brief + * + */ + void SlotDirectoryEncrypt(std::filesystem::path); /** * @details Open dialog for decrypting file. */ - void SlotFileDecrypt(); + void SlotFileDecrypt(std::filesystem::path path); + + /** + * @brief + * + * @param path + */ + void SlotArchiveDecrypt(std::filesystem::path path); /** * @details Open dialog for signing file. @@ -163,7 +176,7 @@ class MainWindow : public GeneralMainWindow { * @details encrypt the text of currently active textedit-page * with the currently checked keys */ - void slot_encrypt(); + void SlotEncrypt(); /** * @details encrypt and sign the text of currently active textedit-page @@ -175,7 +188,7 @@ class MainWindow : public GeneralMainWindow { * @details Show a passphrase dialog and decrypt the text of currently active * tab. */ - void slot_decrypt(); + void SlotDecrypt(); /** * @details Sign the text of currently active tab with the checked private |