Webdar 1.0.0
Web user interface to libdar
Public Member Functions | List of all members
html_form_dynamic_table_object_provider Class Referenceabstract

class html_form_dynamic_table_object_provider More...

#include <html_form_dynamic_table.hpp>

Inheritance diagram for html_form_dynamic_table_object_provider:
Inheritance graph
[legend]

Public Member Functions

virtual std::unique_ptr< body_builderprovide_object_of_type (unsigned int num, const std::string &context, std::string &changed_event) const =0
 method invoked by a html_form_dynamic_table when a new line has to be created More...
 

Detailed Description

class html_form_dynamic_table_object_provider

is an interface for objets using an html_form_dynamic_table. This component will call back the recorded provider object when a new entry is asked from web interface to be added in the table.

Note
most of the time this will be the owner of a html_form_dynamic_table that will register itself as html_form_dynamic_table_object_provider to his owned dynamic table object

Member Function Documentation

◆ provide_object_of_type()

virtual std::unique_ptr< body_builder > html_form_dynamic_table_object_provider::provide_object_of_type ( unsigned int  num,
const std::string &  context,
std::string &  changed_event 
) const
pure virtual

method invoked by a html_form_dynamic_table when a new line has to be created

Parameters
[in]numis the type number of the object to create
[in]contextis a arbitrary information provided by the table as defined by the set_obj_type_context() method of this table.
[out]changed_eventif not provided as an empty the dynamic_table will register for an event of that name on the provided object (which must thus inherit from events class), upon such event, the table will trigger its own html_form_dynamic_table::changed event propagating the change of any of its component (for those supporting the events interface and which event name has been provided here)

Implemented in html_form_gnupg_list, html_form_ignore_as_symlink, html_form_overwrite_chain_action, html_form_overwrite_combining_criterium, html_form_same_fs, html_mask_form_filename, and html_mask_form_path.


The documentation for this class was generated from the following file: