24#ifndef HTML_ARCHIVE_READ_HPP
25#define HTML_ARCHIVE_READ_HPP
36#include <libthreadar/libthreadar.hpp>
39#include "body_builder.hpp"
40#include "html_form.hpp"
41#include "html_form_input.hpp"
42#include "html_form_input_file.hpp"
43#include "html_form_fieldset.hpp"
44#include "html_options_read.hpp"
45#include "html_libdar_running_popup.hpp"
49#include "bibliotheque_subconfig.hpp"
51#include "html_derouleur.hpp"
59 public libthreadar::thread_signal,
65 static const std::string changed;
75 void set_biblio(
const std::shared_ptr<bibliotheque> & ptr);
79 std::string get_archive_path()
const;
80 std::string get_archive_basename()
const;
81 libdar::archive_options_read get_read_options(std::shared_ptr<html_web_user_interaction> dialog)
const {
return opt_read->get_options(dialog); };
84 virtual void load_json(
const json & source)
override;
93 virtual void on_event(
const std::string & event_name)
override;
117 bool need_entrepot_update;
118 enum { event_propagated, event_ignored, event_pending } ignore_events_st;
127 std::shared_ptr<html_options_read> opt_read;
129 void update_entrepot();
130 void trigger_changed();
131 void ignore_events(
bool mode);
133 static constexpr const unsigned int format_version = 1;
134 static constexpr const char* myclass_id =
"html_archive_read";
136 static constexpr const char* jlabel_path =
"archive-path";
137 static constexpr const char* jlabel_opt_read =
"read-options";
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
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: guichet.cpp:308
class html_archive_read let user define the archive path, basename and option to read
Definition: html_archive_read.hpp:63
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_archive_read.cpp:246
virtual void clear_json() override
inherited from jsoner
Definition: html_archive_read.cpp:180
virtual void inherited_run() override
inherited from class libthreadar::thread
Definition: html_archive_read.cpp:281
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_archive_read.cpp:238
virtual void signaled_inherited_cancel() override
inherited from libthreadar::thread
Definition: html_archive_read.cpp:286
virtual bibliotheque::using_set get_using_set() const override
inherited from bibliotheque_subconfig
Definition: html_archive_read.hpp:96
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: html_archive_read.cpp:196
virtual void load_json(const json &source) override
inherited from jsoner
Definition: html_archive_read.cpp:130
virtual json save_json() const override
inherited from jsoner
Definition: html_archive_read.cpp:168
void set_biblio(const std::shared_ptr< bibliotheque > &ptr)
mandatory call to invoke ASAP after constructor
Definition: html_archive_read.cpp:104
class html_derouleur is a pure virtual class
Definition: html_derouleur.hpp:55
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