Ring Daemon
Loading...
Searching...
No Matches
jami::ConfProtocolParser Class Reference

Used to parse confOrder objects. More...

#include <conference_protocol.h>

Collaboration diagram for jami::ConfProtocolParser:
Collaboration graph

Public Member Functions

 ConfProtocolParser ()
 
void initData (Json::Value &&d, std::string_view peerId)
 Inject in the parser the data to parse.
 
void onCheckAuthorization (std::function< bool(std::string_view)> &&cb)
 Ask the caller to check if a peer is authorized (moderator of the conference)
 
void onHangupParticipant (std::function< void(const std::string &, const std::string &)> &&cb)
 
void onKickParticipant (std::function< void(const std::string &)> &&cb)
 
void onMuteParticipant (std::function< void(const std::string &, bool)> &&cb)
 
void onMuteStreamAudio (std::function< void(const std::string &, const std::string &, const std::string &, bool)> &&cb)
 
void onMuteStreamVideo (std::function< void(const std::string &, const std::string &, const std::string &, bool)> &&cb)
 
void onRaiseHand (std::function< void(const std::string &, bool)> &&cb)
 
void onRaiseHandUri (std::function< void(const std::string &, bool)> &&cb)
 
void onSetActiveParticipant (std::function< void(const std::string &)> &&cb)
 
void onSetActiveStream (std::function< void(const std::string &, bool)> &&cb)
 
void onSetLayout (std::function< void(int)> &&cb)
 
void onVersion (std::function< void(uint32_t)> &&cb)
 
void onVoiceActivity (std::function< void(const std::string &, bool)> &&cb)
 
void parse ()
 Parse the datas, this will call the methods injected if necessary.
 

Detailed Description

Used to parse confOrder objects.

Note
the user of this class must initialize the different lambdas.

Definition at line 33 of file conference_protocol.h.

Constructor & Destructor Documentation

◆ ConfProtocolParser()

jami::ConfProtocolParser::ConfProtocolParser ( )
inline

Definition at line 36 of file conference_protocol.h.

Member Function Documentation

◆ initData()

void jami::ConfProtocolParser::initData ( Json::Value &&  d,
std::string_view  peerId 
)
inline

Inject in the parser the data to parse.

Definition at line 70 of file conference_protocol.h.

References jami::emitSignal().

Referenced by jami::Conference::onConfOrder().

Here is the call graph for this function:

◆ onCheckAuthorization()

void jami::ConfProtocolParser::onCheckAuthorization ( std::function< bool(std::string_view)> &&  cb)
inline

Ask the caller to check if a peer is authorized (moderator of the conference)

Definition at line 42 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onHangupParticipant()

void jami::ConfProtocolParser::onHangupParticipant ( std::function< void(const std::string &, const std::string &)> &&  cb)
inline

Definition at line 44 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onKickParticipant()

void jami::ConfProtocolParser::onKickParticipant ( std::function< void(const std::string &)> &&  cb)
inline

Definition at line 61 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onMuteParticipant()

void jami::ConfProtocolParser::onMuteParticipant ( std::function< void(const std::string &, bool)> &&  cb)
inline

Definition at line 63 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onMuteStreamAudio()

void jami::ConfProtocolParser::onMuteStreamAudio ( std::function< void(const std::string &, const std::string &, const std::string &, bool)> &&  cb)
inline

Definition at line 50 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onMuteStreamVideo()

void jami::ConfProtocolParser::onMuteStreamVideo ( std::function< void(const std::string &, const std::string &, const std::string &, bool)> &&  cb)
inline

Definition at line 54 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onRaiseHand()

void jami::ConfProtocolParser::onRaiseHand ( std::function< void(const std::string &, bool)> &&  cb)
inline

Definition at line 48 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onRaiseHandUri()

void jami::ConfProtocolParser::onRaiseHandUri ( std::function< void(const std::string &, bool)> &&  cb)
inline

Definition at line 64 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onSetActiveParticipant()

void jami::ConfProtocolParser::onSetActiveParticipant ( std::function< void(const std::string &)> &&  cb)
inline

Definition at line 62 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onSetActiveStream()

void jami::ConfProtocolParser::onSetActiveStream ( std::function< void(const std::string &, bool)> &&  cb)
inline

Definition at line 49 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onSetLayout()

void jami::ConfProtocolParser::onSetLayout ( std::function< void(int)> &&  cb)
inline

Definition at line 58 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onVersion()

void jami::ConfProtocolParser::onVersion ( std::function< void(uint32_t)> &&  cb)
inline

Definition at line 38 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ onVoiceActivity()

void jami::ConfProtocolParser::onVoiceActivity ( std::function< void(const std::string &, bool)> &&  cb)
inline

Definition at line 65 of file conference_protocol.h.

References jami::emitSignal().

Here is the call graph for this function:

◆ parse()

void jami::ConfProtocolParser::parse ( )

Parse the datas, this will call the methods injected if necessary.

Definition at line 50 of file conference_protocol.cpp.

References jami::emitSignal(), JAMI_WARN, jami::ProtocolKeys::PROTOVERSION, and jami::swarm_protocol::version.

Referenced by jami::Conference::onConfOrder().

Here is the call graph for this function:

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