24#ifndef HTML_LIBDAR_RUNNING_PAGE_HPP
25#define HTML_LIBDAR_RUNNING_PAGE_HPP
37#include "html_page.hpp"
40#include "html_web_user_interaction.hpp"
61 virtual void on_event(
const std::string & event_name)
override;
64 void set_session_name(
const std::string & name) { sessname = name;
set_title(webdar_tools_get_title(sessname,
"Libdar is running")); };
89 std::shared_ptr<html_web_user_interaction> web_ui;
class of object that are pointed/triggered to by others
Definition: actor.hpp:55
class chemin definition
Definition: chemin.hpp:51
class events
Definition: events.hpp:52
html_libdar_running_page wraps up an html_web_user_interaction in a html_page
Definition: html_libdar_running_page.hpp:47
bool is_libdar_running() const
whether a libdar thread is running under "this" management
Definition: html_libdar_running_page.hpp:76
void run_and_control_thread(libthreadar::thread *arg)
propagate request to web_ui
Definition: html_libdar_running_page.hpp:70
void join_controlled_thread()
propagate request to web_ui
Definition: html_libdar_running_page.hpp:73
static const std::string libdar_has_finished
libdar execution has ended and user has acknoledged it
Definition: html_libdar_running_page.hpp:50
virtual std::string inherited_get_body_part(const chemin &path, const request &req) override
inherited from body_builder
Definition: html_libdar_running_page.cpp:63
virtual void on_event(const std::string &event_name) override
inherited from actor
Definition: html_libdar_running_page.cpp:76
bool has_libdar_been_aborted() const
whether libdar thread has been aborted (to be checked by the caller upon libdar_has_finished event)
Definition: html_libdar_running_page.hpp:79
void set_session_name(const std::string &name)
defines the name of the session
Definition: html_libdar_running_page.hpp:64
std::shared_ptr< html_web_user_interaction > get_html_user_interaction()
propagate request to web_ui
Definition: html_libdar_running_page.hpp:67
html page root component
Definition: html_page.hpp:45
void set_title(const std::string &title)
change page title
Definition: html_page.cpp:43
class holding fields of an HTTP request (method, URI, header, cookies, and so on)
Definition: request.hpp:45