#include <PhishingPage.hpp>
Classes | |
| struct | ParsedResult |
Public Member Functions | |
| PhishingPage () | |
| virtual | ~PhishingPage () |
Private Member Functions | |
| void | on_analyze_requested (const Glib::ustring &url) |
Static Private Member Functions | |
| static std::string | url_encode (const std::string &s) |
| static std::string | fetch_url_body (const std::string &url) |
| static std::string | html_entity_decode (std::string s) |
| static std::string | strip_tags (const std::string &s) |
| static std::string | trim_copy (const std::string &s) |
| static std::optional< std::string > | extract_first (const std::string &text, const std::regex &re, int group=1) |
| static std::vector< std::string > | extract_all_li_after_label (const std::string &html, const std::string &label) |
| static ParsedResult | parse_result_html (const std::string &html) |
Private Attributes | |
| Gtk::Label | lbl_title_ |
| PhishingCheckCard | phishing_card_ |
| Gtk::ScrolledWindow | scroller_ |
| Gtk::TextView | txt_output_ |
| Gtk::Label | lbl_status_ |
| std::atomic< bool > | destroyed_ {false} |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 29 of file PhishingPage.hpp.
| PhishingPage::PhishingPage | ( | ) |
Definition at line 33 of file PhishingPage.cpp.
References _, lbl_status_, lbl_title_, on_analyze_requested(), phishing_card_, scroller_, PhishingCheckCard::signal_analyze_requested(), and txt_output_.
|
virtual |
|
staticprivate |
Definition at line 174 of file PhishingPage.cpp.
References strip_tags().
Referenced by parse_result_html().
|
staticprivate |
Definition at line 162 of file PhishingPage.cpp.
Referenced by parse_result_html().
|
staticprivate |
Definition at line 111 of file PhishingPage.cpp.
Referenced by on_analyze_requested().
|
staticprivate |
Definition at line 136 of file PhishingPage.cpp.
Referenced by strip_tags().
|
private |
Definition at line 293 of file PhishingPage.cpp.
References _, alive_, PhishingPage::ParsedResult::classification, fetch_url_body(), BastionGuard::if_alive(), lbl_status_, parse_result_html(), phishing_card_, PhishingPage::ParsedResult::report_text, PhishingCheckCard::set_feedback(), txt_output_, and url_encode().
Referenced by PhishingPage().
|
staticprivate |
Definition at line 200 of file PhishingPage.cpp.
References extract_all_li_after_label(), extract_first(), strip_tags(), and trim_copy().
Referenced by on_analyze_requested().
|
staticprivate |
Definition at line 155 of file PhishingPage.cpp.
References html_entity_decode(), and trim_copy().
Referenced by extract_all_li_after_label(), and parse_result_html().
|
staticprivate |
Definition at line 84 of file PhishingPage.cpp.
Referenced by parse_result_html(), and strip_tags().
|
staticprivate |
Definition at line 93 of file PhishingPage.cpp.
Referenced by on_analyze_requested().
|
private |
Definition at line 75 of file PhishingPage.hpp.
Referenced by on_analyze_requested(), and ~PhishingPage().
|
private |
Definition at line 68 of file PhishingPage.hpp.
Referenced by ~PhishingPage().
|
private |
Definition at line 66 of file PhishingPage.hpp.
Referenced by on_analyze_requested(), and PhishingPage().
|
private |
Definition at line 62 of file PhishingPage.hpp.
Referenced by PhishingPage().
|
private |
Definition at line 63 of file PhishingPage.hpp.
Referenced by on_analyze_requested(), and PhishingPage().
|
private |
Definition at line 64 of file PhishingPage.hpp.
Referenced by PhishingPage().
|
private |
Definition at line 65 of file PhishingPage.hpp.
Referenced by on_analyze_requested(), and PhishingPage().