#include <DashboardPage.hpp>
Public Member Functions | |
| DashboardPage () | |
| ~DashboardPage () override | |
| void | update_from_logs (const std::string &log_path, const Glib::ustring &db_version, bool on_access_enabled) |
| bool | update_from_logs () |
Private Member Functions | |
| void | check_updates_async () |
| bool | on_update_check_timer () |
| void | set_update_status (const std::string &state) |
| Gtk::Frame * | make_card (const std::string &icon_path, Gtk::Widget &content, const Glib::ustring &title) |
Private Attributes | |
| Gtk::Label | lbl_title_ |
| Gtk::Grid | grid_cards_ |
| Gtk::Frame * | card_status_ = nullptr |
| Gtk::Frame * | card_db_version_ = nullptr |
| Gtk::Frame * | card_db_date_ = nullptr |
| Gtk::Frame * | card_logs_ = nullptr |
| Gtk::Label | lbl_status_ |
| Gtk::Label | lbl_db_version_ |
| Gtk::Label | lbl_db_date_ |
| Gtk::Label | lbl_ransomware_status_ |
| Gtk::Label | lbl_phishing_status_ |
| Gtk::TextView | txt_onaccess_report_ |
| Glib::RefPtr< Gtk::TextBuffer > | buf_onaccess_report_ |
| Gtk::Box * | footer_box_ = nullptr |
| Gtk::Label | lbl_update_status_ |
| Gtk::Button * | btn_theme_light_ = nullptr |
| Gtk::Button * | btn_theme_dark_ = nullptr |
| sigc::connection | update_check_timer_ |
| bool | update_check_in_progress_ = false |
| sigc::connection | refresh_timer_ |
| BastionGuard::AliveFlag | alive_ = BastionGuard::make_alive_flag() |
Definition at line 27 of file DashboardPage.hpp.
| DashboardPage::DashboardPage | ( | ) |
Definition at line 91 of file DashboardPage.cpp.
References _, btn_theme_dark_, btn_theme_light_, buf_onaccess_report_, card_db_date_, card_db_version_, card_logs_, card_status_, check_updates_async(), DashboardPage(), DATA_DIR, footer_box_, grid_cards_, lbl_db_date_, lbl_db_version_, lbl_phishing_status_, lbl_ransomware_status_, lbl_status_, lbl_title_, lbl_update_status_, make_card(), on_update_check_timer(), refresh_timer_, resource(), txt_onaccess_report_, update_check_timer_, and update_from_logs().
Referenced by check_updates_async(), and DashboardPage().
|
override |
Definition at line 83 of file DashboardPage.cpp.
References alive_, refresh_timer_, and update_check_timer_.
|
private |
Definition at line 262 of file DashboardPage.cpp.
References _, alive_, compare_semver(), DashboardPage(), Backend::getAppBuild(), Backend::getAppVersion(), BastionGuard::if_alive(), lbl_update_status_, set_update_status(), and update_check_in_progress_.
Referenced by DashboardPage(), and on_update_check_timer().
|
private |
Definition at line 452 of file DashboardPage.cpp.
References _.
Referenced by DashboardPage().
|
private |
Definition at line 257 of file DashboardPage.cpp.
References check_updates_async().
Referenced by DashboardPage().
|
private |
Definition at line 388 of file DashboardPage.cpp.
References _, and lbl_update_status_.
Referenced by check_updates_async().
| bool DashboardPage::update_from_logs | ( | ) |
Definition at line 519 of file DashboardPage.cpp.
References Backend::getDbVersion(), Backend::isClamonaccActive(), and update_from_logs().
| void DashboardPage::update_from_logs | ( | const std::string & | log_path, |
| const Glib::ustring & | db_version, | ||
| bool | on_access_enabled ) |
Definition at line 525 of file DashboardPage.cpp.
References _, buf_onaccess_report_, check_service_active(), Backend::getLastUpdateDate(), Backend::getOnAccessEvents(), lbl_db_date_, lbl_db_version_, lbl_phishing_status_, lbl_ransomware_status_, and lbl_status_.
Referenced by DashboardPage(), MainWindow::MainWindow(), and update_from_logs().
|
private |
Definition at line 74 of file DashboardPage.hpp.
Referenced by check_updates_async(), and ~DashboardPage().
|
private |
Definition at line 60 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 59 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 56 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 48 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 47 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 49 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 46 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 57 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 43 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 52 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 51 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 54 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 53 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 50 of file DashboardPage.hpp.
Referenced by DashboardPage(), and update_from_logs().
|
private |
Definition at line 42 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 58 of file DashboardPage.hpp.
Referenced by check_updates_async(), DashboardPage(), and set_update_status().
|
private |
Definition at line 67 of file DashboardPage.hpp.
Referenced by DashboardPage(), and ~DashboardPage().
|
private |
Definition at line 55 of file DashboardPage.hpp.
Referenced by DashboardPage().
|
private |
Definition at line 65 of file DashboardPage.hpp.
Referenced by check_updates_async().
|
private |
Definition at line 61 of file DashboardPage.hpp.
Referenced by DashboardPage(), and ~DashboardPage().