35#include <dar/libdar.hpp>
38#include "html_page.hpp"
39#include "html_menu.hpp"
41#include "html_div.hpp"
43#include "html_yes_no_box.hpp"
44#include "html_options_read.hpp"
45#include "html_options_test.hpp"
46#include "html_archive_read.hpp"
47#include "html_archive_extract.hpp"
48#include "html_archive_create.hpp"
49#include "html_archive_isolate.hpp"
50#include "html_archive_merge.hpp"
51#include "html_archive_repair.hpp"
52#include "html_archive_compare.hpp"
53#include "html_double_button.hpp"
54#include "html_double_button.hpp"
55#include "html_derouleur.hpp"
56#include "html_demo.hpp"
57#include "html_disconnect.hpp"
58#include "html_options_list.hpp"
60#include "html_bibliotheque.hpp"
61#include "html_fichier.hpp"
62#include "html_image.hpp"
110 static const std::string event_restore;
111 static const std::string event_compare;
112 static const std::string event_test;
113 static const std::string event_list;
114 static const std::string event_summary;
115 static const std::string event_create;
116 static const std::string event_isolate;
117 static const std::string event_merge;
118 static const std::string event_repair;
119 static const std::string changed_session_name;
120 static const std::string event_disconn;
121 static const std::string event_download;
132 virtual void on_event(
const std::string & event_name)
override;
138 std::string get_archive_path()
const;
139 std::string get_archive_basename()
const;
140 libdar::archive_options_read get_read_options(std::shared_ptr<html_web_user_interaction> dialog)
const;
143 const std::string & get_fs_root()
const;
146 const libdar::archive_options_extract get_extraction_options()
const;
149 const libdar::archive_options_diff get_comparison_options()
const;
152 const libdar::archive_options_test get_testing_options()
const;
155 libdar::archive_options_create get_creating_options(std::shared_ptr<html_web_user_interaction> dialog)
const;
158 const std::string & get_isolating_path()
const {
return isolate.get_archive_path(); };
159 const std::string & get_isolating_basename()
const {
return isolate.get_archive_basename(); };
160 libdar::archive_options_isolate get_isolating_options(std::shared_ptr<html_web_user_interaction> dialog)
const;
163 const std::string & get_merge_path()
const {
return merge.get_archive_path(); };
164 const std::string & get_merge_basename()
const {
return merge.get_archive_basename(); };
165 libdar::archive_options_merge get_merging_options(std::shared_ptr<html_web_user_interaction> dialog)
const;
168 std::string get_repairing_path()
const {
return repair.get_archive_path(); };
169 std::string get_repairing_basename()
const {
return repair.get_archive_basename(); };
170 libdar::archive_options_repair get_repairing_options(std::shared_ptr<html_web_user_interaction> dialog)
const;
173 bool do_we_list()
const;
178 void set_session_name(
const std::string & name) { session_name.set_value(name);
act(changed_session_name); };
212 std::string default_biblio_path;
213 std::shared_ptr<bibliotheque> biblio;
244 std::shared_ptr<html_options_test> test;
262 std::unique_ptr<html_bibliotheque> h_biblio;
269 std::shared_ptr<html_fichier> to_download;
271 static const std::string css_class_text;
273 static const std::string menu_main;
274 static const std::string menu_restore;
275 static const std::string menu_compare;
276 static const std::string menu_test;
277 static const std::string menu_list;
278 static const std::string menu_create;
279 static const std::string menu_isolate;
280 static const std::string menu_merge;
281 static const std::string menu_repair;
282 static const std::string menu_biblio;
283 static const std::string menu_sessions;
284 static const std::string menu_close;
286 static const std::string css_class_logo;
287 static const std::string css_class_margin;
288 static const std::string css_class_choice;
289 static const std::string css_class_license;
290 static const std::string css_class_rightpan;
291 static const std::string css_class_float_clear;
293 static const std::string event_demo;
defines bibliotheque class
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
void act(const std::string &name)
trigger a given event
Definition: events.cpp:151
class guichet let one fetch config from a bibliotheque, save as or setup manually for a given compone...
Definition: guichet.hpp:92
class html_aiguille is a pure virtual class
Definition: html_aiguille.hpp:61
html component used to let the user provide parameters for an isolation operation
Definition: html_archive_compare.hpp:50
object providing html user interface component for the user to provide options to create a new archiv...
Definition: html_archive_create.hpp:50
html component used to let the user provide parameters for an isolation operation
Definition: html_archive_isolate.hpp:48
html component used to collect merging operation parameters from the user
Definition: html_archive_merge.hpp:50
class html_archive_read let user define the archive path, basename and option to read
Definition: html_archive_read.hpp:63
html component used to collect repairing operation parameters from the user
Definition: html_archive_repair.hpp:51
class html_demo show how webdar interacts with the browser
Definition: html_demo.hpp:73
class html_derouleur is a pure virtual class
Definition: html_derouleur.hpp:55
html component used for the user to define a has algorithm
Definition: html_disconnect.hpp:49
void set_username(const std::string &username)
set the username to display for the session ownership
Definition: html_disconnect.cpp:104
class html_div is the implementation of
Definition: html_div.hpp:46
html static component displaying an image from a given URL
Definition: html_image.hpp:44
html component for the user to provide parameters of libdar archive testing operation
Definition: html_options_list.hpp:47
html page root component
Definition: html_page.hpp:45
html component implementing the usual hyperlink component
Definition: html_static_url.hpp:45
html component for user to answer by yes or no to a provided question
Definition: html_yes_no_box.hpp:51
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
class saisie
Definition: saisie.hpp:106
std::string get_session_name() const
get the current session name
Definition: saisie.hpp:181
void set_session_name(const std::string &name)
Definition: saisie.hpp:178
virtual void new_css_library_available() override
inherited from body_builder
Definition: saisie.cpp:694
saisie()
constructor
Definition: saisie.cpp:86
static const std::string event_closing
available event for that class
Definition: saisie.hpp:109
void set_data_place(std::shared_ptr< html_fichier > &ref)
define the location where to drop data content before triggering the event_download
Definition: saisie.hpp:187
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: saisie.cpp:354
void set_username(const std::string &username)
define the username that the current session is owned by
Definition: saisie.hpp:184
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: saisie.cpp:421