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

display current existing user sessions and let user kill or change of session More...

#include <choose.hpp>

Inheritance diagram for choose:
Inheritance graph
[legend]
Collaboration diagram for choose:
Collaboration graph
[legend]

Public Member Functions

 choose ()
 
 choose (const choose &ref)=delete
 
 choose (choose &&ref) noexcept=delete
 
chooseoperator= (const choose &ref)=delete
 
chooseoperator= (choose &&ref) noexcept=delete
 
void set_owner (const std::string &user)
 mandatory call before using other methods (give_answer() in particular)
 
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...
 
bool disconnection_requested () const
 whether user has requested to disconnect
 
- Public Member Functions inherited from responder
 responder (const responder &ref)=default
 
 responder (responder &&ref) noexcept=default
 
responderoperator= (const responder &ref)=default
 
responderoperator= (responder &&ref) noexcept=default
 
void set_prefix (const chemin &chem)
 used for body_builder object for they have a proper prefix in path
 
const cheminget_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...
 
- Public Member Functions inherited from actor
 actor (const actor &ref)=default
 
 actor (actor &&ref) noexcept(false)=default
 
actoroperator= (const actor &ref)=default
 
actoroperator= (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...
 
- Public Member Functions inherited from reference
 reference ()
 usual constructor
 
 reference (const reference &ref)
 copy constructor More...
 
 reference (reference &&ref) noexcept(false)
 move constructor (only operational for objects without peering) More...
 
referenceoperator= (const reference &ref)
 assignment operator (only operational for objects without peering) More...
 
referenceoperator= (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
 

Additional Inherited Members

- Protected Member Functions inherited from responder
virtual void prefix_has_changed ()
 hook for inherited class, when the body builder object had its prefix changed More...
 
- Protected Member Functions inherited from reference
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
 

Detailed Description

display current existing user sessions and let user kill or change of session

Note
chooser object is a per user and list all sessions owned by that user but the creation if chooser object is managed by the class chooser, which exposes the static method give_answer_for() for that purpose

Constructor & Destructor Documentation

◆ choose()

choose::choose ( )

setup of session table page

Member Function Documentation

◆ give_answer()

answer choose::give_answer ( const request req)
overridevirtual

inherited from responder

Note
alsways shows the session table for the user

Implements responder.

◆ on_event()

void choose::on_event ( const std::string &  event_name)
overridevirtual

inherited from actor

Implements actor.


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