diff options
author | saturneric <[email protected]> | 2025-01-27 20:44:32 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-01-27 20:44:32 +0000 |
commit | 1b9715dd43c29d916d790d4e7c15646ef385a169 (patch) | |
tree | 86b2d4ea79cb874c4fac1ec66ca771efdea03c5b /src/ui/main_window/MainWindow.h | |
parent | refactor: reduce code duplication (diff) | |
download | GpgFrontend-1b9715dd43c29d916d790d4e7c15646ef385a169.tar.gz GpgFrontend-1b9715dd43c29d916d790d4e7c15646ef385a169.zip |
refactor: reduce code duplication of gnupg file operations
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/MainWindow.h | 96 |
1 files changed, 4 insertions, 92 deletions
diff --git a/src/ui/main_window/MainWindow.h b/src/ui/main_window/MainWindow.h index 8f8cd05e..8dbb9376 100644 --- a/src/ui/main_window/MainWindow.h +++ b/src/ui/main_window/MainWindow.h @@ -45,7 +45,7 @@ class KeyList; class TextEdit; class InfoBoardWidget; struct GpgOperaContext; -struct GpgOperaContexts; +struct GpgOperaContextBasement; /** * @brief @@ -634,97 +634,9 @@ class MainWindow : public GeneralMainWindow { * @param context * @return auto */ - auto execute_operas_helper(const QString& task, - const QSharedPointer<GpgOperaContexts>& contexts); - - /** - * @brief - * - * @param context - */ - void build_operas_file_symmetric_encrypt( - QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_encrypt(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_directory_symmetric_encrypt( - QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_directory_encrypt(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_decrypt(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_archive_decrypt(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_sign(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_verify(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_encrypt_sign(QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_directory_encrypt_sign( - QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_file_decrypt_verify( - QSharedPointer<GpgOperaContext>& context); - - /** - * @brief - * - * @param context - */ - void build_operas_archive_decrypt_verify( - QSharedPointer<GpgOperaContext>& context); + auto execute_operas_helper( + const QString& task, + const QSharedPointer<GpgOperaContextBasement>& contexts); TextEdit* edit_{}; ///< Tabwidget holding the edit-windows QMenu* file_menu_{}; ///< Submenu for file-operations |