#include <AlertDialog.hpp>
Public Member Functions | |
| AlertDialog (const std::string &appComm, const std::string &appPath, const std::vector< std::string > &appArgs, const std::string &destHost, const std::string &destIp, uint32_t destPort, int timeoutSecs=15) | |
| ~AlertDialog () override | |
Public Attributes | |
| sigc::signal< void(Verdict)> | signal_verdict |
Private Member Functions | |
| void | buildHeaderBar () |
| void | buildUI (const std::string &appComm, const std::string &appPath, const std::vector< std::string > &appArgs, const std::string &destHost, const std::string &destIp, uint32_t destPort) |
| void | startCountdown () |
| bool | onTick () |
| void | emitVerdict (Verdict v) |
Private Attributes | |
| Gtk::Box | m_vbox { Gtk::Orientation::VERTICAL, 16 } |
| Gtk::Box | m_infoBox { Gtk::Orientation::VERTICAL, 8 } |
| Gtk::Box | m_btnBox { Gtk::Orientation::HORIZONTAL, 6 } |
| Gtk::Image | m_appIcon |
| Gtk::Label | m_appName |
| Gtk::Label | m_appPath |
| Gtk::Label | m_hostLabel |
| Gtk::Label | m_ipLabel |
| Gtk::Label | m_portLabel |
| Gtk::ProgressBar | m_countdown |
| Gtk::Button | m_allowOnce |
| Gtk::Button | m_allowAlways |
| Gtk::Button | m_denyOnce |
| Gtk::Button | m_denyAlways |
| int | m_timeoutSecs |
| int | m_remaining |
| sigc::connection | m_timerConn |
Definition at line 20 of file AlertDialog.hpp.
| AlertDialog::AlertDialog | ( | const std::string & | appComm, |
| const std::string & | appPath, | ||
| const std::vector< std::string > & | appArgs, | ||
| const std::string & | destHost, | ||
| const std::string & | destIp, | ||
| uint32_t | destPort, | ||
| int | timeoutSecs = 15 ) |
Definition at line 20 of file AlertDialog.cpp.
References buildHeaderBar(), buildUI(), m_remaining, m_timeoutSecs, and startCountdown().
|
override |
Definition at line 47 of file AlertDialog.cpp.
References m_timerConn.
|
private |
Definition at line 57 of file AlertDialog.cpp.
References _, DENY_ONCE, emitVerdict(), and resource().
Referenced by AlertDialog().
|
private |
Definition at line 94 of file AlertDialog.cpp.
References _, ALLOW_ALWAYS, ALLOW_ONCE, bsc::ui_util::best_connection_display_name(), bsc::ui_util::best_connection_icon_name(), DENY_ALWAYS, DENY_ONCE, emitVerdict(), bsc::ui_util::is_safe_local_connection(), m_allowAlways, m_allowOnce, m_appIcon, m_appName, m_appPath, m_btnBox, m_countdown, m_denyAlways, m_denyOnce, m_hostLabel, m_infoBox, m_ipLabel, m_portLabel, m_vbox, and bsc::ui_util::matches_configured_proxy().
Referenced by AlertDialog().
|
private |
Definition at line 263 of file AlertDialog.cpp.
References m_timerConn, and signal_verdict.
Referenced by buildHeaderBar(), buildUI(), and onTick().
|
private |
Definition at line 243 of file AlertDialog.cpp.
References _, DENY_ONCE, emitVerdict(), m_countdown, m_remaining, and m_timeoutSecs.
Referenced by startCountdown().
|
private |
Definition at line 236 of file AlertDialog.cpp.
References m_timerConn, and onTick().
Referenced by AlertDialog().
|
private |
Definition at line 51 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 50 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 41 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 42 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 43 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 38 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 47 of file AlertDialog.hpp.
|
private |
Definition at line 53 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 52 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 44 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 37 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 45 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 46 of file AlertDialog.hpp.
Referenced by buildUI().
|
private |
Definition at line 57 of file AlertDialog.hpp.
Referenced by AlertDialog(), and onTick().
|
private |
Definition at line 56 of file AlertDialog.hpp.
Referenced by AlertDialog(), and onTick().
|
private |
Definition at line 58 of file AlertDialog.hpp.
Referenced by emitVerdict(), startCountdown(), and ~AlertDialog().
|
private |
Definition at line 36 of file AlertDialog.hpp.
Referenced by buildUI().
| sigc::signal<void(Verdict)> AlertDialog::signal_verdict |
Definition at line 32 of file AlertDialog.hpp.
Referenced by emitVerdict().