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
Definition: GpgFrontendApplication.h:34
~GpgFrontendApplication() override=default
Destroy the GpgFrontend Application object.
Definition: FileReadTask.cpp:29