Ring Daemon 16.0.0
|
Manages channels for syncing informations. More...
#include <auth_channel_handler.h>
Public Member Functions | |
AuthChannelHandler (const std::shared_ptr< JamiAccount > &acc, dhtnet::ConnectionManager &cm) | |
void | connect (const DeviceId &deviceId, const std::string &name, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false) override |
Ask for a new sync channel. | |
void | connect (const dht::InfoHash &infoHash, const std::string &, ConnectCallbackLegacy &&cb) override |
void | onReady (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name, std::shared_ptr< dhtnet::ChannelSocket > channel) override |
Launch sync process. | |
bool | onRequest (const std::shared_ptr< dht::crypto::Certificate > &peer, const std::string &name) override |
Determine if we accept or not the sync request. | |
~AuthChannelHandler () | |
![]() | |
virtual | ~ChannelHandlerInterface () |
Manages channels for syncing informations.
Definition at line 29 of file auth_channel_handler.h.
jami::AuthChannelHandler::AuthChannelHandler | ( | const std::shared_ptr< JamiAccount > & | acc, |
dhtnet::ConnectionManager & | cm | ||
) |
Definition at line 24 of file auth_channel_handler.cpp.
jami::AuthChannelHandler::~AuthChannelHandler | ( | ) |
Definition at line 31 of file auth_channel_handler.cpp.
|
overridevirtual |
Ask for a new sync channel.
deviceId | The device to connect |
name | (Unused, generated from deviceId) |
cb | The callback to call when connected (can be immediate if already connected) |
Implements jami::ChannelHandlerInterface.
Definition at line 35 of file auth_channel_handler.cpp.
References jami::emitSignal(), and JAMI_DEBUG.
Referenced by jami::ArchiveAccountManager::addDevice().
|
overridevirtual |
Reimplemented from jami::ChannelHandlerInterface.
Definition at line 46 of file auth_channel_handler.cpp.
References jami::emitSignal(), and JAMI_DEBUG.
|
overridevirtual |
Launch sync process.
deviceId | Device who asked |
name | Name asked |
channel | Channel used to sync |
Implements jami::ChannelHandlerInterface.
Definition at line 72 of file auth_channel_handler.cpp.
References jami::emitSignal(), and JAMI_DEBUG.
|
overridevirtual |
Determine if we accept or not the sync request.
deviceId | Device who asked |
name | Name asked |
Implements jami::ChannelHandlerInterface.
Definition at line 55 of file auth_channel_handler.cpp.
References jami::emitSignal(), and JAMI_DEBUG.