![]() |
Webdar 1.0.0
Web user interface to libdar
|
main webdar html components that defines for a given session the type of output (config pages, libdar output, error, etc.) More...
#include <user_interface.hpp>
Public Member Functions | |
user_interface () | |
user_interface (const user_interface &ref)=delete | |
user_interface (user_interface &&ref) noexcept=delete | |
user_interface & | operator= (const user_interface &ref)=delete |
user_interface & | operator= (user_interface &&ref) noexcept=delete |
virtual answer | give_answer (const request &req) override |
inherited from responder More... | |
virtual void | on_event (const std::string &event_name) override |
inherited from actor More... | |
std::string | get_session_name () const |
provide the name of the session (given by the user); | |
void | set_session_name (const std::string &name) |
set the session name (customizable by user) | |
void | set_username (const std::string &username) |
define the username that the current session is owned by | |
bool | is_libdar_running () const |
whether a libdar thread is running | |
bool | disconnection_requested () const |
whether user has requested to disconnect | |
![]() | |
responder (const responder &ref)=default | |
responder (responder &&ref) noexcept=default | |
responder & | operator= (const responder &ref)=default |
responder & | operator= (responder &&ref) noexcept=default |
void | set_prefix (const chemin &chem) |
used for body_builder object for they have a proper prefix in path | |
const chemin & | get_prefix () const |
get the recorded URI path prefix for body_builder root hierarchy | |
virtual answer | give_answer (const request &req)=0 |
provides a standard mean for inherited class to provide answer to requests More... | |
![]() | |
events (const events &ref) | |
copy constructor More... | |
events (events &&ref) noexcept(false)=default | |
events & | operator= (const events &ref)=default |
events & | operator= (events &&ref) noexcept(false) |
void | record_actor_on_event (actor *ptr, const std::string &name) |
record an actor for an given event | |
![]() | |
reference () | |
usual constructor | |
reference (const reference &ref) | |
copy constructor More... | |
reference (reference &&ref) noexcept(false) | |
move constructor (only operational for objects without peering) More... | |
reference & | operator= (const reference &ref) |
assignment operator (only operational for objects without peering) More... | |
reference & | operator= (reference &&ref) noexcept(false) |
move assigment operator More... | |
virtual | ~reference () |
destructor | |
void | peer_with (reference *obj) |
method used to create a relation between two objects More... | |
void | break_peer_with (reference *obj) |
break the peering with the object given as argument | |
bool | is_peer (reference *obj) const |
whether a peering exists with that object | |
bool | is_empty () const |
whether the current object has peering | |
unsigned int | size () const |
the number of peers | |
![]() | |
actor (const actor &ref)=default | |
actor (actor &&ref) noexcept(false)=default | |
actor & | operator= (const actor &ref)=default |
actor & | operator= (actor &&ref) noexcept(false) |
virtual void | on_event (const std::string &event_name)=0 |
implementation in inherited class of the action triggered by the event given in argument More... | |
Static Public Attributes | |
static const std::string | closing = "user_interface_closing" |
available event for that class More... | |
Protected Member Functions | |
virtual void | prefix_has_changed () override |
inherited from responder More... | |
virtual void | prefix_has_changed () |
hook for inherited class, when the body builder object had its prefix changed More... | |
![]() | |
virtual void | broken_peering_from (reference *obj) override |
inherited from class reference More... | |
void | register_name (const std::string &name) |
add a new event for actors to register against | |
void | unregister_name (const std::string &name) |
remove an event and remove all actors that registed on it | |
void | rename_name (const std::string &old_name, const std::string &new_name) |
rename an event and keep all existing peering to this new event More... | |
void | act (const std::string &name) |
trigger a given event | |
![]() | |
virtual void | broken_peering_from (reference *obj) |
to be informed when a peer has broke the peering with me More... | |
void | reset_read_peers () const |
reset the peers reading | |
bool | read_next_peer (reference *&peer) const |
main webdar html components that defines for a given session the type of output (config pages, libdar output, error, etc.)
user_interface::user_interface | ( | ) |
messages receved from saisie object named parametrage
messages received from html_libdar_running object named in_action
messages received from html_error object named in_error;
messages received from html_listring_page object named in_list
create the events that this object is willing to generate
inherited from responder
Implements responder.
|
overridevirtual |
inherited from actor
Implements actor.
|
overrideprotectedvirtual |
inherited from responder
Reimplemented from responder.
|
static |
available event for that class
signal end of user session