24#ifndef HTML_OPTIONS_REPAIR_HPP
25#define HTML_OPTIONS_REPAIR_HPP
35#include <dar/libdar.hpp>
39#include "body_builder.hpp"
42#include "html_form_input.hpp"
43#include "html_form_fieldset.hpp"
44#include "html_form.hpp"
45#include "html_hash_algo.hpp"
46#include "html_derouleur.hpp"
47#include "html_entrepot_landing.hpp"
48#include "html_web_user_interaction.hpp"
49#include "html_form_input_unit.hpp"
50#include "html_slicing.hpp"
51#include "html_ciphering.hpp"
54#include "bibliotheque_subconfig.hpp"
77 void set_biblio(
const std::shared_ptr<bibliotheque> & ptr);
80 virtual void load_json(
const json & source)
override;
92 virtual void on_event(
const std::string & event_name)
override;
95 libdar::archive_options_repair
get_options(std::shared_ptr<html_web_user_interaction> & webui)
const;
98 std::shared_ptr<libdar::entrepot>
get_entrepot(std::shared_ptr<html_web_user_interaction> webui)
const {
return entrep->get_entrepot(webui); };
123 std::shared_ptr<html_entrepot_landing> entrep;
157 std::shared_ptr<html_slicing> slicing;
162 std::shared_ptr<html_ciphering> ciphering;
165 void trigger_changed();
167 static constexpr const unsigned int format_version = 1;
168 static constexpr const char* myclass_id =
"html_options_repair";
170 static constexpr const char* jlabel_entrep =
"entrepot";
171 static constexpr const char* jlabel_info_details =
"info-details";
172 static constexpr const char* jlabel_display_treated =
"display-treated";
173 static constexpr const char* jlabel_display_only_dir =
"display-only-dirs";
174 static constexpr const char* jlabel_display_skipped =
"display-skipped";
175 static constexpr const char* jlabel_display_dirstats =
"display-dirstats";
176 static constexpr const char* jlabel_allow_over =
"allow-over";
177 static constexpr const char* jlabel_warn_over =
"warn-over";
178 static constexpr const char* jlabel_pause =
"pause";
179 static constexpr const char* jlabel_execute =
"execute";
180 static constexpr const char* jlabel_dry_run =
"dry-run";
181 static constexpr const char* jlabel_multi_thread_compress =
"compress-threads";
182 static constexpr const char* jlabel_hash_algo =
"hash-algo";
183 static constexpr const char* jlabel_user_comment =
"user-comment";
184 static constexpr const char* jlabel_slicing =
"slicing";
185 static constexpr const char* jlabel_ciphering =
"ciphering";
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class bibliotheque_subconfig is an interface (pure virtual class)
Definition: bibliotheque_subconfig.hpp:50
std::set< coordinates > using_set
list of configs a given config depends on
Definition: bibliotheque.hpp:117
class body_builder is the root class of object generating HTML body
Definition: body_builder.hpp:99
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
class guichet let one fetch config from a bibliotheque, save as or setup manually for a given compone...
Definition: guichet.hpp:92
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_hash_algo.hpp:43
html component used for the user to provide the parameters to repair an archive
Definition: html_options_repair.hpp:63
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: html_options_repair.cpp:360
virtual json save_json() const override
inherited from jsoner
Definition: html_options_repair.cpp:307
void set_biblio(const std::shared_ptr< bibliotheque > &ptr)
mandatory call to invoke ASAP after constructor
Definition: html_options_repair.cpp:236
void set_to_webdar_defaults()
set the object to webdar defaults
Definition: html_options_repair.cpp:440
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_options_repair.cpp:457
static const std::string landing_path_changed
landing path has changed
Definition: html_options_repair.hpp:65
static const std::string entrepot_changed
event triggered for entrepot only changes except landing_path
Definition: html_options_repair.hpp:66
libdar::archive_options_repair get_options(std::shared_ptr< html_web_user_interaction > &webui) const
generate a corresponding libdar::archive_option_repair object
Definition: html_options_repair.cpp:387
static const std::string changed
event triggered for any change except landing_path
Definition: html_options_repair.hpp:67
virtual void clear_json() override
inherited from jsoner
Definition: html_options_repair.cpp:333
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: html_options_repair.cpp:349
std::shared_ptr< libdar::entrepot > get_entrepot(std::shared_ptr< html_web_user_interaction > webui) const
optain the current entrepot object where is expected to be repaired the archive
Definition: html_options_repair.hpp:98
const std::string & get_landing_path() const
obtain the entrepot landing path
Definition: html_options_repair.hpp:101
virtual void load_json(const json &source) override
inherited from jsoner
Definition: html_options_repair.cpp:254
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_options_repair.cpp:464
class jsoner
Definition: jsoner.hpp:73
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45
defines jsoner class and class exception_json