24#ifndef HTML_OPTIONS_COMPARE_HPP
25#define HTML_OPTIONS_COMPARE_HPP
38#include "body_builder.hpp"
40#include "html_form_input.hpp"
41#include "html_form_fieldset.hpp"
42#include "html_comparison_fields.hpp"
43#include "html_form.hpp"
44#include "html_derouleur.hpp"
45#include "html_mask_form_filename.hpp"
46#include "html_mask_form_path.hpp"
47#include "html_fsa_scope.hpp"
61 static const std::string changed;
71 void set_biblio(
const std::shared_ptr<bibliotheque> & ptr);
74 void set_fs_root(
const std::string & prefix) { path_mask->set_fs_root(prefix); };
83 virtual void load_json(
const json & source)
override;
95 virtual void on_event(
const std::string & event_name)
override;
110 static constexpr const char* treated_none =
"none";
111 static constexpr const char* treated_dir =
"dir";
112 static constexpr const char* treated_all =
"all";
139 std::shared_ptr<html_mask_form_filename> filename_mask;
142 std::shared_ptr<html_mask_form_path> path_mask;
145 std::shared_ptr<html_mask_form_filename> ea_mask;
149 void trigger_change();
151 static constexpr const unsigned int format_version = 1;
152 static constexpr const char* myclass_id =
"html_options_compare";
154 static constexpr const char* jlabel_alter_atime =
"alter-atime";
155 static constexpr const char* jlabel_furtive_read =
"furtive-read";
156 static constexpr const char* jlabel_zeroing_neg_dates =
"zeroing-negative-dates";
157 static constexpr const char* jlabel_hourshift =
"hourshift";
158 static constexpr const char* jlabel_in_place =
"use-in-place-root";
159 static constexpr const char* jlabel_what_to_check =
"what-to-check-for";
160 static constexpr const char* jlabel_symlink_date =
"compare-symlink-mtime";
161 static constexpr const char* jlabel_info_details =
"info-details";
162 static constexpr const char* jlabel_disp_treated =
"display-treated";
163 static constexpr const char* jlabel_disp_only_dir =
"display-only-dirs";
164 static constexpr const char* jlabel_disp_skipped =
"display-skipped";
165 static constexpr const char* jlabel_file_mask =
"file-mask";
166 static constexpr const char* jlabel_path_mask =
"path-mask";
167 static constexpr const char* jlabel_ea_mask =
"ea-mask";
168 static constexpr const char* jlabel_fsa_scope =
"fsa-scope";
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
html component in the form of a drop-down list to let the user define a libdar comparison field value
Definition: html_comparison_fields.hpp:45
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_fsa_scope.hpp:52
html component providing a way for the user to set the parameter of libdar comparison operation
Definition: html_options_compare.hpp:59
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: html_options_compare.cpp:371
virtual json save_json() const override
inherited from jsoner
Definition: html_options_compare.cpp:318
libdar::archive_options_diff get_options() const
gathering informations for libdar
Definition: html_options_compare.cpp:242
void set_biblio(const std::shared_ptr< bibliotheque > &ptr)
mandatory call to invoke ASAP after constructor
Definition: html_options_compare.cpp:221
virtual void clear_json() override
inherited from jsoner
Definition: html_options_compare.cpp:342
bool get_in_place_mode() const
know whether the in-place restoration is set
Definition: html_options_compare.hpp:80
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_options_compare.cpp:422
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: html_options_compare.cpp:382
virtual void load_json(const json &source) override
inherited from jsoner
Definition: html_options_compare.cpp:265
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_options_compare.cpp:416
void set_fs_root(const std::string &prefix)
needed for path based filtering to filter accordingly to the current root_fs
Definition: html_options_compare.hpp:74
html_options_compare()
Definition: html_options_compare.cpp:47
void set_to_webdar_defaults()
set the object to webdar defaults
Definition: html_options_compare.cpp:402
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