|
Ring Daemon
|
Manages channels for syncing information between devices of the same account. More...
#include <sync_channel_handler.h>


Public Member Functions | |
| void | connect (const DeviceId &deviceId, const std::string &, ConnectCb &&cb, const std::string &connectionType="", bool forceNewConnection=false) override |
| Ask for a new sync channel. | |
| 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. | |
| SyncChannelHandler (const std::shared_ptr< JamiAccount > &acc, dhtnet::ConnectionManager &cm) | |
| ~SyncChannelHandler () | |
Public Member Functions inherited from jami::ChannelHandlerInterface | |
| virtual void | connect (const dht::InfoHash &, const std::string &, ConnectCallbackLegacy &&) |
| virtual | ~ChannelHandlerInterface () |
Manages channels for syncing information between devices of the same account.
Definition at line 28 of file sync_channel_handler.h.
| jami::SyncChannelHandler::SyncChannelHandler | ( | const std::shared_ptr< JamiAccount > & | acc, |
| dhtnet::ConnectionManager & | cm | ||
| ) |
Definition at line 24 of file sync_channel_handler.cpp.
| jami::SyncChannelHandler::~SyncChannelHandler | ( | ) |
Definition at line 30 of file sync_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) |
| 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 33 of file sync_channel_handler.cpp.
References jami::emitSignal(), JAMI_LOG, and SYNC_SCHEME.

|
overridevirtual |
Launch sync process.
| deviceId | Device who asked |
| name | Name asked |
| channel | Channel used to sync |
Implements jami::ChannelHandlerInterface.
Definition at line 57 of file sync_channel_handler.cpp.
References jami::emitSignal().

|
overridevirtual |
Determine if we accept or not the sync request.
| deviceId | Device who asked |
| name | Name asked |
Implements jami::ChannelHandlerInterface.
Definition at line 48 of file sync_channel_handler.cpp.
References jami::emitSignal().
