24#ifndef HTML_SLICING_HPP
25#define HTML_SLICING_HPP
35#include <dar/libdar.hpp>
39#include "body_builder.hpp"
42#include "html_form.hpp"
43#include "html_form_fieldset.hpp"
44#include "html_form_input.hpp"
45#include "html_form_input_unit.hpp"
56 static const std::string changed;
65 void set_slicing(
const libdar::infinint & x_slice_size,
66 const libdar::infinint & x_first_slice_size);
67 void set_permission(
const std::string & perm);
68 void set_user_ownership(
const std::string & username);
69 void set_group_ownership(
const std::string & groupname);
70 void set_min_digits(
const libdar::infinint & val);
72 void get_slicing(libdar::infinint & x_slice_size,
73 libdar::infinint & x_first_slice_size)
const;
74 libdar::infinint get_min_digits()
const;
75 std::string get_permission()
const;
76 std::string get_user_ownership()
const;
77 std::string get_group_ownership()
const;
80 virtual void load_json(
const json & source)
override;
89 virtual void on_event(
const std::string & event_name)
override;
122 static constexpr const unsigned int format_version = 1;
123 static constexpr const char* myclass_id =
"html_slicing";
125 static constexpr const char* jlabel_slicing =
"slicing";
126 static constexpr const char* jlabel_diff_first =
"specific-first-slice";
127 static constexpr const char* jlabel_slice_size =
"slice-size";
128 static constexpr const char* jlabel_first_slice_size =
"first-slice-size";
129 static constexpr const char* jlabel_slice_permission =
"permission";
130 static constexpr const char* jlabel_user_owner =
"user-ownership";
131 static constexpr const char* jlabel_group_owner =
"group-ownership";
132 static constexpr const char* jlabel_min_digits =
"min-digits";
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
html component used for the user to define a has algorithm
Definition: html_slicing.hpp:54
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_slicing.cpp:300
virtual void bind_to_anchor(const std::string &val) override
inherited from body_builder
Definition: html_slicing.hpp:95
void set_to_webdar_defaults()
set the object to webdar defaults
Definition: html_slicing.cpp:295
virtual void new_css_library_available() override
inherited from body_builder
Definition: html_slicing.cpp:317
virtual void on_event(const std::string &event_name) override
inherited from class actor
Definition: html_slicing.cpp:268
virtual void clear_json() override
inherited from jsoner
Definition: html_slicing.cpp:253
virtual void css_classes_have_changed() override
inherited from body_builder
Definition: html_slicing.cpp:306
virtual void load_json(const json &source) override
inherited from jsoner
Definition: html_slicing.cpp:200
virtual json save_json() const override
inherited from jsoner
Definition: html_slicing.cpp:235
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