Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SyncModule::Impl Class Reference
Inheritance diagram for jami::SyncModule::Impl:
Inheritance graph
Collaboration diagram for jami::SyncModule::Impl:
Collaboration graph

Public Member Functions

 Impl (std::weak_ptr< JamiAccount > &&account)
 
void onChannelShutdown (const std::shared_ptr< dhtnet::ChannelSocket > &socket, const DeviceId &device)
 
void syncInfos (const std::shared_ptr< dhtnet::ChannelSocket > &socket, const std::shared_ptr< SyncMsg > &syncMsg)
 Build SyncMsg and send it on socket.
 

Public Attributes

std::weak_ptr< JamiAccountaccount_
 
std::map< DeviceId, std::vector< std::shared_ptr< dhtnet::ChannelSocket > > > syncConnections_
 
std::recursive_mutex syncConnectionsMtx_
 

Detailed Description

Definition at line 26 of file sync_module.cpp.

Constructor & Destructor Documentation

◆ Impl()

jami::SyncModule::Impl::Impl ( std::weak_ptr< JamiAccount > &&  account)

Definition at line 48 of file sync_module.cpp.

Member Function Documentation

◆ onChannelShutdown()

void jami::SyncModule::Impl::onChannelShutdown ( const std::shared_ptr< dhtnet::ChannelSocket > &  socket,
const DeviceId device 
)

Definition at line 151 of file sync_module.cpp.

References jami::emitSignal(), syncConnections_, and syncConnectionsMtx_.

Here is the call graph for this function:

◆ syncInfos()

void jami::SyncModule::Impl::syncInfos ( const std::shared_ptr< dhtnet::ChannelSocket > &  socket,
const std::shared_ptr< SyncMsg > &  syncMsg 
)

Build SyncMsg and send it on socket.

Parameters
socket

Definition at line 53 of file sync_module.cpp.

References jami::SyncMsg::c, jami::ConversationModule::convInfos(), jami::ConversationModule::convRequests(), jami::SyncMsg::cr, jami::SyncMsg::ds, jami::emitSignal(), JAMI_ERROR, jami::SyncMsg::ms, and jami::SyncMsg::p.

Here is the call graph for this function:

Member Data Documentation

◆ account_

std::weak_ptr<JamiAccount> jami::SyncModule::Impl::account_

Definition at line 31 of file sync_module.cpp.

◆ syncConnections_

std::map<DeviceId , std::vector<std::shared_ptr<dhtnet::ChannelSocket> > > jami::SyncModule::Impl::syncConnections_

Definition at line 36 of file sync_module.cpp.

Referenced by onChannelShutdown().

◆ syncConnectionsMtx_

std::recursive_mutex jami::SyncModule::Impl::syncConnectionsMtx_

Definition at line 34 of file sync_module.cpp.

Referenced by onChannelShutdown().


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