#include <LiveScanDialog.hpp>
Public Member Functions | |
| LiveScanDialog (Gtk::Window *parent, const std::string &path) | |
| ~LiveScanDialog () override | |
| void | append_output (const std::string &line) |
| void | mark_finished () |
| bool | cancelled () const |
| std::string | get_full_output () const |
Private Member Functions | |
| void | flush_output_idle () |
Private Attributes | |
| Gtk::Box | root_ |
| Gtk::ProgressBar | progress_ |
| Gtk::ScrolledWindow | scroller_ |
| Gtk::TextView | text_view_ |
| Gtk::Button | btn_cancel_ |
| std::atomic< bool > | finished_ {false} |
| std::atomic< bool > | cancelled_ {false} |
| std::atomic< bool > | flush_pending_ {false} |
| std::mutex | mtx_ |
| std::vector< std::string > | pending_lines_ |
| std::string | full_output_ |
| BastionGuard::AliveFlag | alive_ |
Definition at line 30 of file LiveScanDialog.hpp.
| LiveScanDialog::LiveScanDialog | ( | Gtk::Window * | parent, |
| const std::string & | path ) |
Definition at line 40 of file LiveScanDialog.cpp.
References _, alive_, btn_cancel_, cancelled_, finished_, progress_, resource(), root_, scroller_, text_view_, and usb_live_resolve_theme_css().
|
override |
Definition at line 154 of file LiveScanDialog.cpp.
References alive_.
| void LiveScanDialog::append_output | ( | const std::string & | line | ) |
Definition at line 162 of file LiveScanDialog.cpp.
References alive_, flush_output_idle(), flush_pending_, BastionGuard::if_alive(), mtx_, and pending_lines_.
|
inline |
|
private |
Definition at line 180 of file LiveScanDialog.cpp.
References flush_pending_, full_output_, mtx_, pending_lines_, scroller_, and text_view_.
Referenced by append_output(), and mark_finished().
| std::string LiveScanDialog::get_full_output | ( | ) | const |
Definition at line 225 of file LiveScanDialog.cpp.
References full_output_, and mtx_.
| void LiveScanDialog::mark_finished | ( | ) |
Definition at line 207 of file LiveScanDialog.cpp.
References _, alive_, finished_, flush_output_idle(), flush_pending_, BastionGuard::if_alive(), and progress_.
|
private |
Definition at line 60 of file LiveScanDialog.hpp.
Referenced by append_output(), LiveScanDialog(), mark_finished(), and ~LiveScanDialog().
|
private |
Definition at line 47 of file LiveScanDialog.hpp.
Referenced by LiveScanDialog().
|
private |
Definition at line 50 of file LiveScanDialog.hpp.
Referenced by cancelled(), and LiveScanDialog().
|
private |
Definition at line 49 of file LiveScanDialog.hpp.
Referenced by LiveScanDialog(), and mark_finished().
|
private |
Definition at line 51 of file LiveScanDialog.hpp.
Referenced by append_output(), flush_output_idle(), and mark_finished().
|
private |
Definition at line 55 of file LiveScanDialog.hpp.
Referenced by flush_output_idle(), and get_full_output().
|
mutableprivate |
Definition at line 53 of file LiveScanDialog.hpp.
Referenced by append_output(), flush_output_idle(), and get_full_output().
|
private |
Definition at line 54 of file LiveScanDialog.hpp.
Referenced by append_output(), and flush_output_idle().
|
private |
Definition at line 44 of file LiveScanDialog.hpp.
Referenced by LiveScanDialog(), and mark_finished().
|
private |
Definition at line 43 of file LiveScanDialog.hpp.
Referenced by LiveScanDialog().
|
private |
Definition at line 45 of file LiveScanDialog.hpp.
Referenced by flush_output_idle(), and LiveScanDialog().
|
private |
Definition at line 46 of file LiveScanDialog.hpp.
Referenced by flush_output_idle(), and LiveScanDialog().