GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontendContext.h
1 
29 #pragma once
30 
31 namespace GpgFrontend {
32 
33 struct GpgFrontendContext;
34 
35 using GFCxtWPtr = std::weak_ptr<GpgFrontendContext>;
36 using GFCxtSPtr = std::shared_ptr<GpgFrontendContext>;
37 
39  int argc;
40  char** argv;
41  spdlog::level::level_enum log_level;
42 
43  bool gather_external_gnupg_info;
44  bool load_default_gpg_context;
45 
52  GpgFrontendContext(int argc, char** argv);
53 
59 
64  void InitApplication();
65 
71  auto GetApp() -> QApplication*;
72 
73  private:
74  QApplication* app_ = nullptr;
75 };
76 
77 } // namespace GpgFrontend
Definition: app.cpp:39
Definition: GpgFrontendContext.h:38
auto GetApp() -> QApplication *
Get the App object.
Definition: GpgFrontendContext.cpp:44
~GpgFrontendContext()
Destroy the Gpg Frontend Context object.
Definition: GpgFrontendContext.cpp:49
GpgFrontendContext(int argc, char **argv)
Construct a new Gpg Frontend Context object.
Definition: GpgFrontendContext.cpp:46