Public Member Functions | |
| AlertApp () | |
| int | run (int argc, char *argv[]) |
| AlertApp () | |
| ~AlertApp () | |
| int | run (int argc, char *argv[]) |
Private Member Functions | |
| void | on_method_call (const Glib::RefPtr< Gio::DBus::Connection > &, const Glib::ustring &, const Glib::ustring &, const Glib::ustring &, const Glib::ustring &method, const Glib::VariantContainerBase ¶ms, const Glib::RefPtr< Gio::DBus::MethodInvocation > &inv) |
| void | show_next () |
| void | resolve_paths () |
| void | log_user (const std::string &msg) |
| void | ensure_user_token () |
| void | load_token () |
| void | load_css () |
| void | start_tcp_listener () |
| void | stop_listener () |
| void | enqueue_alert (const std::string &file, const std::string &family) |
| void | show_next () |
Private Attributes | |
| Glib::RefPtr< Gtk::Application > | app |
| std::queue< std::pair< std::string, std::string > > | queue |
| AlertWindow * | current_window = nullptr |
| std::queue< std::pair< std::string, std::string > > | alertQueue |
| std::unique_ptr< AlertWindowRealtime > | current_window |
| std::string | SECURITY_TOKEN |
| std::string | TOKEN_PATH |
| std::string | LOG_PATH |
| std::atomic< bool > | running {false} |
| std::thread | listener_thread |
| int | server_fd {-1} |
Definition at line 201 of file BastionGuard-ransomware-alert.cpp.
|
inline |
Definition at line 203 of file BastionGuard-ransomware-alert.cpp.
References app.
|
inline |
Definition at line 64 of file BastionGuard-ransomware-realtime-alert.cpp.
References app, ensure_user_token(), load_token(), resolve_paths(), and stop_listener().
|
inline |
Definition at line 78 of file BastionGuard-ransomware-realtime-alert.cpp.
References stop_listener().
|
inlineprivate |
Definition at line 357 of file BastionGuard-ransomware-realtime-alert.cpp.
References alertQueue, current_window, and show_next().
Referenced by start_tcp_listener().
|
inlineprivate |
Definition at line 133 of file BastionGuard-ransomware-realtime-alert.cpp.
References _, log_user(), and TOKEN_PATH.
Referenced by AlertApp().
|
inlineprivate |
Definition at line 190 of file BastionGuard-ransomware-realtime-alert.cpp.
References log_user(), resolve_theme_css(), and resource().
Referenced by run().
|
inlineprivate |
Definition at line 174 of file BastionGuard-ransomware-realtime-alert.cpp.
References _, log_user(), SECURITY_TOKEN, and TOKEN_PATH.
Referenced by AlertApp().
|
inlineprivate |
Definition at line 125 of file BastionGuard-ransomware-realtime-alert.cpp.
References LOG_PATH.
Referenced by ensure_user_token(), load_css(), load_token(), and start_tcp_listener().
|
inlineprivate |
Definition at line 252 of file BastionGuard-ransomware-alert.cpp.
References current_window, queue, and show_next().
Referenced by run().
|
inlineprivate |
Definition at line 104 of file BastionGuard-ransomware-realtime-alert.cpp.
References LOG_PATH, and TOKEN_PATH.
Referenced by AlertApp().
|
inline |
Definition at line 210 of file BastionGuard-ransomware-alert.cpp.
References app, introspection_xml, and on_method_call().
Referenced by main().
|
inline |
Definition at line 83 of file BastionGuard-ransomware-realtime-alert.cpp.
References app, load_css(), and start_tcp_listener().
|
inlineprivate |
Definition at line 274 of file BastionGuard-ransomware-alert.cpp.
References AlertWindow::AlertWindow(), app, current_window, queue, show_next(), and AlertWindow::signal_ignore_all.
Referenced by enqueue_alert(), on_method_call(), and show_next().
|
inlineprivate |
Definition at line 366 of file BastionGuard-ransomware-realtime-alert.cpp.
References alertQueue, current_window, and show_next().
|
inlineprivate |
Definition at line 211 of file BastionGuard-ransomware-realtime-alert.cpp.
References _, AF_INET, enqueue_alert(), listener_thread, log_user(), running, SECURITY_TOKEN, and server_fd.
Referenced by run().
|
inlineprivate |
Definition at line 336 of file BastionGuard-ransomware-realtime-alert.cpp.
References listener_thread, running, and server_fd.
Referenced by AlertApp(), and ~AlertApp().
|
private |
Definition at line 93 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by enqueue_alert(), and show_next().
|
private |
Definition at line 248 of file BastionGuard-ransomware-alert.cpp.
Referenced by AlertApp(), run(), and show_next().
|
private |
Definition at line 250 of file BastionGuard-ransomware-alert.cpp.
Referenced by enqueue_alert(), on_method_call(), and show_next().
|
private |
Definition at line 94 of file BastionGuard-ransomware-realtime-alert.cpp.
|
private |
Definition at line 101 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by start_tcp_listener(), and stop_listener().
|
private |
Definition at line 98 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by log_user(), and resolve_paths().
|
private |
Definition at line 249 of file BastionGuard-ransomware-alert.cpp.
Referenced by on_method_call(), and show_next().
|
private |
Definition at line 100 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by start_tcp_listener(), and stop_listener().
|
private |
Definition at line 96 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by load_token(), and start_tcp_listener().
|
private |
Definition at line 102 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by start_tcp_listener(), and stop_listener().
|
private |
Definition at line 97 of file BastionGuard-ransomware-realtime-alert.cpp.
Referenced by ensure_user_token(), load_token(), and resolve_paths().