Ring Daemon 16.0.0
|
Manages Conversation's channels. More...
#include <conversation_channel_handler.h>
Public Member Functions | |
void | connect (const DeviceId &deviceId, const std::string &name, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false) override |
Ask for a new git channel. | |
ConversationChannelHandler (const std::shared_ptr< JamiAccount > &acc, dhtnet::ConnectionManager &cm) | |
void | onReady (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name, std::shared_ptr< dhtnet::ChannelSocket > channel) override |
TODO, this needs to extract gitservers from JamiAccount. | |
bool | onRequest (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name) override |
Determine if we accept or not the git request. | |
~ConversationChannelHandler () | |
![]() | |
virtual void | connect (const dht::InfoHash &, const std::string &, ConnectCallbackLegacy &&) |
virtual | ~ChannelHandlerInterface () |
Manages Conversation's channels.
Definition at line 28 of file conversation_channel_handler.h.
jami::ConversationChannelHandler::ConversationChannelHandler | ( | const std::shared_ptr< JamiAccount > & | acc, |
dhtnet::ConnectionManager & | cm | ||
) |
Definition at line 21 of file conversation_channel_handler.cpp.
jami::ConversationChannelHandler::~ConversationChannelHandler | ( | ) |
Definition at line 28 of file conversation_channel_handler.cpp.
|
overridevirtual |
Ask for a new git channel.
deviceId | The device to connect |
name | The name of the channel |
cb | The callback to call when connected (can be immediate if already connected) |
connectionType | The connection type used by iOS notifications (not used) |
forceNewConnection | If we want a new SIP connection (not used) |
Implements jami::ChannelHandlerInterface.
Definition at line 31 of file conversation_channel_handler.cpp.
References jami::emitSignal().
|
overridevirtual |
TODO, this needs to extract gitservers from JamiAccount.
Implements jami::ChannelHandlerInterface.
Definition at line 75 of file conversation_channel_handler.cpp.
|
overridevirtual |
Determine if we accept or not the git request.
deviceId | device who asked |
name | name asked |
Implements jami::ChannelHandlerInterface.
Definition at line 43 of file conversation_channel_handler.cpp.
References jami::emitSignal(), JAMI_ERROR, and JAMI_WARNING.