![]() |
Webdar 1.0.0
Web user interface to libdar
|
class web_user_interaction provides a libdar::user_interaction interface to libdar More...
#include <web_user_interaction.hpp>
Public Member Functions | |
web_user_interaction (unsigned int x_warn_size=10) | |
the argument is the number latest message to retain from libdar | |
web_user_interaction (const web_user_interaction &ref)=delete | |
web_user_interaction (web_user_interaction &&ref) noexcept=delete | |
web_user_interaction & | operator= (const web_user_interaction &ref)=delete |
web_user_interaction & | operator= (web_user_interaction &&ref) noexcept=delete |
void | set_warning_list_size (unsigned int size) |
change the number of last warnings to display | |
void | clear () |
clear logs and reset the object | |
std::list< std::string > | get_warnings () |
obtain a copy of the current log buffer | |
bool | pending_pause (std::string &msg) const |
wether libdar is pending for pause answer | |
bool | pending_get_string (std::string &msg, bool &echo) const |
wether libdar is pending for get_string answer | |
bool | pending_get_secu_string (std::string &msg, bool &echo) const |
wether libdar is pending for a get_secu_string answer | |
void | set_pause_answer (bool val) |
provide the answer to libdar for pause() request | |
void | set_get_string_answer (const std::string &val) |
provide the answer to libdar for get_string() request | |
void | set_get_secu_string_answer (const libdar::secu_string &val) |
provide the answer to libdar for get_secu_string() request | |
bool | has_libdar_pending () const |
whether libdar is waiting for an answer | |
class web_user_interaction provides a libdar::user_interaction interface to libdar
this class is not an html_ body_builder class but rather holds information fields and status provided by libdar through the libdar::user_interaction interface. The main role of this class is to allow any thread to get access to this libdar running thread provided information, by mean of mutex on the internal/private data structure.