Namespaces | |
| namespace | anonymous_namespace{AppResolver.cpp} |
| namespace | anonymous_namespace{GeoResolver.cpp} |
| namespace | anonymous_namespace{ProxyDetect.cpp} |
Classes | |
| struct | AppMetadata |
| struct | GeoEntry |
| class | GeoResolver |
| struct | ProxyEndpoint |
Functions | |
| AppMetadata | resolve_app_metadata (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args) |
| std::string | best_app_display_name (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args) |
| std::string | best_app_icon_name (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args) |
| bool | is_safe_local_address (const std::string &address) |
| bool | is_safe_local_connection (const std::string &dst_ip, const std::string &src_ip) |
| std::string | safe_local_process_label () |
| std::string | safe_local_process_icon_name () |
| std::string | best_connection_display_name (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args, const std::string &dst_ip, const std::string &src_ip) |
| std::string | best_connection_icon_name (const std::string &app_comm, const std::string &app_path, const std::vector< std::string > &app_args, const std::string &dst_ip, const std::string &src_ip) |
| const std::vector< ProxyEndpoint > & | detected_proxies () |
| bool | matches_configured_proxy (const std::string &host, std::uint16_t port) |
| std::string bsc::ui_util::best_app_display_name | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args ) |
Definition at line 367 of file AppResolver.cpp.
References best_app_display_name(), bsc::ui_util::AppMetadata::display_name, and resolve_app_metadata().
Referenced by best_app_display_name(), and best_connection_display_name().
| std::string bsc::ui_util::best_app_icon_name | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args ) |
Definition at line 373 of file AppResolver.cpp.
References best_app_icon_name(), bsc::ui_util::AppMetadata::icon_name, and resolve_app_metadata().
Referenced by best_app_icon_name(), best_connection_icon_name(), and ConnectionsPage::resolveIconName().
| std::string bsc::ui_util::best_connection_display_name | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args, | ||
| const std::string & | dst_ip, | ||
| const std::string & | src_ip ) |
Definition at line 410 of file AppResolver.cpp.
References best_app_display_name(), best_connection_display_name(), and is_safe_local_connection().
Referenced by best_connection_display_name(), AlertDialog::buildUI(), display_app_name(), AppsPage::displayNameFor(), anonymous_namespace{MainWindow.cpp}::displayNameForStatus(), NetworkPage::noteConnection(), and ConnectionsPage::onNewConnection().
| std::string bsc::ui_util::best_connection_icon_name | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args, | ||
| const std::string & | dst_ip, | ||
| const std::string & | src_ip ) |
Definition at line 424 of file AppResolver.cpp.
References best_app_icon_name(), best_connection_icon_name(), and is_safe_local_connection().
Referenced by best_connection_icon_name(), and AlertDialog::buildUI().
| const std::vector< ProxyEndpoint > & bsc::ui_util::detected_proxies | ( | ) |
Restituisce la lista dei proxy rilevati. Lista vuota se nessun proxy. Thread-safe, idempotente, risultato cache-ato.
Definition at line 156 of file ProxyDetect.cpp.
References detected_proxies().
Referenced by detected_proxies(), and matches_configured_proxy().
| bool bsc::ui_util::is_safe_local_address | ( | const std::string & | address | ) |
Definition at line 380 of file AppResolver.cpp.
References is_safe_local_address().
Referenced by is_safe_local_address(), and is_safe_local_connection().
| bool bsc::ui_util::is_safe_local_connection | ( | const std::string & | dst_ip, |
| const std::string & | src_ip ) |
Definition at line 398 of file AppResolver.cpp.
References is_safe_local_address(), and is_safe_local_connection().
Referenced by best_connection_display_name(), best_connection_icon_name(), AlertDialog::buildUI(), is_safe_local_connection(), AppsPage::noteConnection(), and NetworkPage::noteConnection().
| bool bsc::ui_util::matches_configured_proxy | ( | const std::string & | host, |
| std::uint16_t | port ) |
Ritorna true se (host, port) matcha uno dei proxy rilevati. host puo' essere hostname o IP; il confronto e' case-insensitive e risolve anche localhost/127.0.0.1/::1 come equivalenti.
Definition at line 171 of file ProxyDetect.cpp.
References detected_proxies(), and matches_configured_proxy().
Referenced by AlertDialog::buildUI(), and matches_configured_proxy().
| AppMetadata bsc::ui_util::resolve_app_metadata | ( | const std::string & | app_comm, |
| const std::string & | app_path, | ||
| const std::vector< std::string > & | app_args ) |
Definition at line 351 of file AppResolver.cpp.
References resolve_app_metadata().
Referenced by best_app_display_name(), best_app_icon_name(), and resolve_app_metadata().
| std::string bsc::ui_util::safe_local_process_icon_name | ( | ) |
Definition at line 406 of file AppResolver.cpp.
References safe_local_process_icon_name().
Referenced by ConnectionsPage::resolveIconName(), and safe_local_process_icon_name().
| std::string bsc::ui_util::safe_local_process_label | ( | ) |
Definition at line 402 of file AppResolver.cpp.
References safe_local_process_label().
Referenced by ConnectionsPage::resolveIconName(), and safe_local_process_label().