aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowFileSlotFunction.cpp
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-23 17:36:40 +0000
committersaturneric <[email protected]>2023-12-23 17:36:40 +0000
commit956c5ed3a8931bcbfa07fbe2b1af8090188b822b (patch)
tree18ff59a410e2c87d53a05e5483549fb977ec3ddd /src/ui/main_window/MainWindowFileSlotFunction.cpp
parentfix: solve all issues of test cases on macos m1 (diff)
downloadGpgFrontend-956c5ed3a8931bcbfa07fbe2b1af8090188b822b.tar.gz
GpgFrontend-956c5ed3a8931bcbfa07fbe2b1af8090188b822b.zip
feat: improve core interfaces of encrypt and decrypt
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r--src/ui/main_window/MainWindowFileSlotFunction.cpp14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp
index e7a25396..444cc224 100644
--- a/src/ui/main_window/MainWindowFileSlotFunction.cpp
+++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp
@@ -256,9 +256,11 @@ void MainWindow::SlotFileEncrypt() {
process_operation(this, _("Encrypting"), [&](DataObjectPtr) -> int {
try {
- error =
- GpgFileOpera::EncryptFile(std::move(p_keys), path.toStdString(),
- out_path.toStdString(), result, _channel);
+ // TODO
+ // error =
+ // GpgFileOpera::EncryptFile(std::move(p_keys), path.toStdString(),
+ // out_path.toStdString(), result,
+ // _channel);
} catch (const std::runtime_error& e) {
if_error = true;
}
@@ -319,8 +321,10 @@ void MainWindow::SlotFileDecrypt() {
bool if_error = false;
process_operation(this, _("Decrypting"), [&](DataObjectPtr) -> int {
try {
- error = GpgFileOpera::DecryptFile(path.toStdString(), out_path.u8string(),
- result);
+ // TODO
+ // error = GpgFileOpera::DecryptFile(path.toStdString(),
+ // out_path.u8string(),
+ // result);
} catch (const std::runtime_error& e) {
if_error = true;
}