24#ifndef HTML_ENTREPOT_LANDING_HPP
25#define HTML_ENTREPOT_LANDING_HPP
36#include <libthreadar/libthreadar.hpp>
39#include "body_builder.hpp"
43#include "html_entrepot.hpp"
44#include "html_form_input_file.hpp"
45#include "html_form.hpp"
46#include "html_libdar_running_popup.hpp"
53 public libthreadar::thread_signal,
76 std::shared_ptr<libdar::entrepot> &
get_entrepot(std::shared_ptr<html_web_user_interaction> & webui)
const;
82 virtual void on_event(
const std::string & event_name)
override;
91 virtual void load_json(
const json & source)
override;
125 std::string custom_event_entrepot;
126 std::string custom_event_landing_path;
128 mutable libthreadar::mutex entrep_ctrl;
129 mutable bool entrepot_changed;
130 mutable std::shared_ptr<libdar::entrepot> libdar_entrep;
145 void start_updating_landing();
147 static constexpr const unsigned int format_version = 1;
148 static constexpr const char* myclass_id =
"html_entrepot_landing";
150 static constexpr const char* jlabel_entrepot =
"entrepot";
151 static constexpr const char* jlabel_use_landing_path =
"use-landing-path";
152 static constexpr const char* jlabel_landing_path =
"landing-path";
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
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 html_entrepot_landing add a landing path to an entrepot object
Definition: html_entrepot_landing.hpp:55
static const std::string entrepot_only_changed
the use case is for the caller to know when to call get_entrepot()
Definition: html_entrepot_landing.hpp:62
static const std::string landing_path_only_changed
Definition: html_entrepot_landing.hpp:66
const std::string & get_landing_path() const
fetch current landing path for the entrepot
Definition: html_entrepot_landing.hpp:79
void set_to_webdar_defaults()
set the object to webdar defaults
Definition: html_entrepot_landing.cpp:261
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_entrepot_landing.cpp:268
virtual void clear_json() override
inherited from jsoner
Definition: html_entrepot_landing.cpp:237
virtual void signaled_inherited_cancel() override
inherited from libthreadar::thread
Definition: html_entrepot_landing.cpp:318
virtual void load_json(const json &source) override
inherited from jsoner
Definition: html_entrepot_landing.cpp:178
virtual json save_json() const override
inherited from jsoner
Definition: html_entrepot_landing.cpp:224
void set_event_landing_path(const std::string &name)
change landing_path_only_changed event name
Definition: html_entrepot_landing.cpp:172
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_entrepot_landing.cpp:285
virtual void css_classes_have_changed() override
inherited from body_builder
Definition: html_entrepot_landing.cpp:274
virtual void on_event(const std::string &event_name) override
inherited from actor parent class
Definition: html_entrepot_landing.cpp:124
std::shared_ptr< libdar::entrepot > & get_entrepot(std::shared_ptr< html_web_user_interaction > &webui) const
provide an libdar entrepot object build from Web fields values
Definition: html_entrepot_landing.cpp:103
void set_event_entrepot(const std::string &name)
change the change event name
Definition: html_entrepot_landing.cpp:166
virtual void bind_to_anchor(const std::string &val) override
inherited from body_builder
Definition: html_entrepot_landing.hpp:104
static const std::string changed
event triggered for any change (entrepot and / or landing_path)
Definition: html_entrepot_landing.hpp:59
virtual void inherited_run() override
inherited from libthreadar::thread
Definition: html_entrepot_landing.cpp:295
class html_entrepot let user define an entrepot parameters
Definition: html_entrepot.hpp:58
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