GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgFrontendApplication.h
1 
27 #include "ui/GpgFrontendUI.h"
28 
29 #ifndef GPGFRONTEND_GPGFRONTENDAPPLICATION_H
30 #define GPGFRONTEND_GPGFRONTENDAPPLICATION_H
31 
32 namespace GpgFrontend::UI {
33 
34 class GPGFRONTEND_UI_EXPORT GpgFrontendApplication : public QApplication {
35  Q_OBJECT
36  public:
43  explicit GpgFrontendApplication(int &argc, char **argv);
44 
49  ~GpgFrontendApplication() override = default;
50 
56  static GpgFrontendApplication *GetInstance(int argc = 0,
57  char *argv[] = nullptr,
58  bool new_instance = false);
59 
60  protected:
67  bool notify(QObject *receiver, QEvent *event) override;
68 };
69 
70 } // namespace GpgFrontend::UI
71 
72 #endif // GPGFRONTEND_GPGFRONTENDAPPLICATION_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::GpgFrontendApplication::GpgFrontendApplication
GpgFrontendApplication(int &argc, char **argv)
Construct a new GpgFrontend Application object.
Definition: GpgFrontendApplication.cpp:33
GpgFrontend::UI::GpgFrontendApplication
Definition: GpgFrontendApplication.h:34
GpgFrontend::UI::GpgFrontendApplication::notify
bool notify(QObject *receiver, QEvent *event) override
Definition: GpgFrontendApplication.cpp:70
GpgFrontend::UI::GpgFrontendApplication::GetInstance
static GpgFrontendApplication * GetInstance(int argc=0, char *argv[]=nullptr, bool new_instance=false)
Get the GpgFrontend Application object.
Definition: GpgFrontendApplication.cpp:56