GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
UISignalStation.h
1 
29 #pragma once
30 
31 #include "ui/widgets/InfoBoardWidget.h"
32 
33 namespace GpgFrontend {
34 class GpgPassphraseContext;
35 }
36 
37 namespace GpgFrontend::UI {
38 
43 class UISignalStation : public QObject {
44  Q_OBJECT
45  static std::unique_ptr<UISignalStation> instance;
46 
47  public:
53  static auto GetInstance() -> UISignalStation*;
54 
55  signals:
60  void SignalKeyDatabaseRefresh();
61 
66  void SignalKeyDatabaseRefreshDone();
67 
72  void SignalUIRefresh();
73 
78  void SignalMainWindowlUpdateBasicalOperaMenu(unsigned int);
79 
84  void SignalMainWindowOpenFile(QString);
85 
90  void SignalKeyRevoked(QString);
91 
98  void SignalRefreshInfoBoard(const QString& text,
99  InfoBoardStatus verify_label_status);
100 
107  void SignalRefreshStatusBar(const QString& message, int timeout);
108 
113  void SignalNeedUserInputPassphrase(QSharedPointer<GpgPassphraseContext>);
114 
119  void SignalUserInputPassphraseCallback(QSharedPointer<GpgPassphraseContext>);
120 
125  void SignalRestartApplication(int);
126 
127  private:
128  UISignalStation();
129 };
130 
131 } // namespace GpgFrontend::UI
Definition: UISignalStation.h:43
void SignalRefreshInfoBoard(const QString &text, InfoBoardStatus verify_label_status)
void SignalRefreshStatusBar(const QString &message, int timeout)
static auto GetInstance() -> UISignalStation *
Get the Instance object.
Definition: UISignalStation.cpp:35
Definition: FileReadTask.cpp:31
InfoBoardStatus
Definition: InfoBoardWidget.h:42
Definition: app.cpp:39