diff options
author | saturneric <[email protected]> | 2024-01-12 15:08:38 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-01-12 15:08:38 +0000 |
commit | 6983b5c1dd82d159236ebd06cf17f071cc9c1ee9 (patch) | |
tree | fc53f790e33546320b2ecd306a1a9ade6fbdfe7a /src/GpgFrontendContext.h | |
parent | fix: slove a heap-use-after-free issue (diff) | |
download | GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.tar.gz GpgFrontend-6983b5c1dd82d159236ebd06cf17f071cc9c1ee9.zip |
refactor: remove boost and use QString instead of std::filesystem::path
Diffstat (limited to 'src/GpgFrontendContext.h')
-rw-r--r-- | src/GpgFrontendContext.h | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/src/GpgFrontendContext.h b/src/GpgFrontendContext.h index 9bf591d4..e0d176f1 100644 --- a/src/GpgFrontendContext.h +++ b/src/GpgFrontendContext.h @@ -44,32 +44,35 @@ struct GpgFrontendContext { bool gather_external_gnupg_info; bool load_default_gpg_context; + /** + * @brief Construct a new Gpg Frontend Context object + * + * @param argc + * @param argv + */ GpgFrontendContext(int argc, char** argv); + /** + * @brief Destroy the Gpg Frontend Context object + * + */ ~GpgFrontendContext(); /** * @brief * */ - void InitApplication(bool); + void InitApplication(); /** * @brief Get the App object * * @return QCoreApplication* */ - auto GetApp() -> QCoreApplication*; - - /** - * @brief Get the Gui App object - * - * @return QApplication* - */ - auto GetGuiApp() -> QApplication*; + auto GetApp() -> QApplication*; private: - QCoreApplication* app_ = nullptr; + QApplication* app_ = nullptr; }; } // namespace GpgFrontend
\ No newline at end of file |