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 
80  void SignalRefreshInfoBoard(const QString& text,
81  InfoBoardStatus verify_label_status);
82 
89  void SignalRefreshStatusBar(const QString& message, int timeout);
90 
95  void SignalNeedUserInputPassphrase(QSharedPointer<GpgPassphraseContext>);
96 
101  void SignalUserInputPassphraseCallback(QSharedPointer<GpgPassphraseContext>);
102 
107  void SignalRestartApplication(int);
108 
109  private:
110  UISignalStation();
111 };
112 
113 } // 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:38