24#ifndef USER_INTERFACE_HPP
25#define USER_INTERFACE_HPP
35#include <libthreadar/libthreadar.hpp>
38#include "responder.hpp"
40#include "html_statistics.hpp"
42#include "html_libdar_running_page.hpp"
43#include "html_error.hpp"
44#include "html_listing_page.hpp"
45#include "html_summary_page.hpp"
46#include "archive_test.hpp"
47#include "archive_restore.hpp"
48#include "archive_compare.hpp"
49#include "archive_create.hpp"
50#include "archive_isolate.hpp"
51#include "archive_merge.hpp"
52#include "archive_init_list.hpp"
53#include "archive_repair.hpp"
54#include "html_fichier.hpp"
84 virtual void on_event(
const std::string & event_name)
override;
119 std::string sessname;
120 mutable libthreadar::mutex mut_sessname;
122 mode_type return_mode;
123 bool close_requested;
125 mutable bool disconnect_req;
132 std::shared_ptr<html_fichier> data;
142 libthreadar::thread *current_thread;
145 const saisie & get_parametrage()
const {
return parametrage; };
148 std::shared_ptr<html_web_user_interaction> get_html_user_interaction() {
return in_action.
get_html_user_interaction(); };
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class answer provides easy means to set an HTTP answer and means to sent it back to a proto_connexion...
Definition: answer.hpp:49
class archive_compare run libdar comparison in a dedicated thread
Definition: archive_compare.hpp:54
class archive_create run libdar creation in a dedicated thread
Definition: archive_create.hpp:55
this objects is a thread object that provide access to the content of an existing archive
Definition: archive_init_list.hpp:55
class archive_isolate gather parameters and libdar isolation in a dedicated thread
Definition: archive_isolate.hpp:46
class archive_merge runs libdar merging operation in a dedicated thread
Definition: archive_merge.hpp:47
class archive_repair run libdar reparation in a dedicated thread
Definition: archive_repair.hpp:55
class archive_restore wraps libdar restoration operation in a dedicated thread
Definition: archive_restore.hpp:45
class archive_test wraps libdar archive testing operation in a dedicated thread
Definition: archive_test.hpp:45
class events
Definition: events.hpp:52
html page reporting an error
Definition: html_error.hpp:47
html_libdar_running_page wraps up an html_web_user_interaction in a html_page
Definition: html_libdar_running_page.hpp:47
bool is_libdar_running() const
whether a libdar thread is running under "this" management
Definition: html_libdar_running_page.hpp:76
std::shared_ptr< html_web_user_interaction > get_html_user_interaction()
propagate request to web_ui
Definition: html_libdar_running_page.hpp:67
html_listing_page is the page that shows when listing an existing archive content
Definition: html_listing_page.hpp:54
html_summary_page is the page that shows the summary of an existing archive
Definition: html_summary_page.hpp:54
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
pure virtual class, base class for all classes that can generate an answer to a request
Definition: responder.hpp:46
class saisie
Definition: saisie.hpp:106
void set_username(const std::string &username)
define the username that the current session is owned by
Definition: saisie.hpp:184
main webdar html components that defines for a given session the type of output (config pages,...
Definition: user_interface.hpp:68
bool disconnection_requested() const
whether user has requested to disconnect
Definition: user_interface.hpp:99
virtual void prefix_has_changed() override
inherited from responder
Definition: user_interface.cpp:410
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: user_interface.cpp:188
void set_session_name(const std::string &name)
set the session name (customizable by user)
Definition: user_interface.cpp:381
bool is_libdar_running() const
whether a libdar thread is running
Definition: user_interface.hpp:96
virtual answer give_answer(const request &req) override
inherited from responder
Definition: user_interface.cpp:104
std::string get_session_name() const
provide the name of the session (given by the user);
Definition: user_interface.cpp:361
user_interface()
Definition: user_interface.cpp:45
void set_username(const std::string &username)
define the username that the current session is owned by
Definition: user_interface.hpp:93
static const std::string closing
available event for that class
Definition: user_interface.hpp:71