AppChat  0.5.0
TCP client-server caht application with boost::asio library.
Public Member Functions | List of all members
IRoom Class Referenceabstract

Room interface. More...

#include <iroom.h>

Inheritance diagram for IRoom:
Inheritance graph
[legend]

Public Member Functions

virtual void join (subscriber_ptr subcriber)=0
 Join a user to channel. More...
 
virtual void leave (subscriber_ptr subscriber)=0
 Leave a user from channel. More...
 
virtual void notification (text_response_ptr subscriber)=0
 Notify all room's subscribers about new message. More...
 
virtual identifier_t get_room_id () const =0
 Get the room id object. More...
 
virtual ~IRoom ()=default
 Default virtual destructor.
 

Detailed Description

Room interface.

Member Function Documentation

virtual identifier_t IRoom::get_room_id ( ) const
pure virtual

Get the room id object.

Returns
identifier_t

Implemented in Channel.

virtual void IRoom::join ( subscriber_ptr  subcriber)
pure virtual

Join a user to channel.

Parameters
subcribersbscriber who is joining this room

Implemented in Channel.

virtual void IRoom::leave ( subscriber_ptr  subscriber)
pure virtual

Leave a user from channel.

Parameters
subscribersbscriber who is leaving this room

Implemented in Channel.

virtual void IRoom::notification ( text_response_ptr  subscriber)
pure virtual

Notify all room's subscribers about new message.

Parameters
subscriber

Implemented in Channel.


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