Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SyncModule Class Reference

#include <sync_module.h>

Collaboration diagram for jami::SyncModule:
Collaboration graph

Classes

class  Impl
 

Public Member Functions

void cacheSyncConnection (std::shared_ptr< dhtnet::ChannelSocket > &&socket, const std::string &peerId, const DeviceId &deviceId)
 Store a new Sync connection.
 
bool isConnected (const DeviceId &deviceId) const
 
 SyncModule (std::weak_ptr< JamiAccount > &&account)
 
void syncWithConnected (const std::shared_ptr< SyncMsg > &syncMsg=nullptr, const DeviceId &deviceId={})
 Send sync to all connected devices.
 
 ~SyncModule ()=default
 

Detailed Description

Definition at line 23 of file sync_module.h.

Constructor & Destructor Documentation

◆ SyncModule()

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

Definition at line 146 of file sync_module.cpp.

◆ ~SyncModule()

jami::SyncModule::~SyncModule ( )
default

Member Function Documentation

◆ cacheSyncConnection()

void jami::SyncModule::cacheSyncConnection ( std::shared_ptr< dhtnet::ChannelSocket > &&  socket,
const std::string &  peerId,
const DeviceId deviceId 
)

Store a new Sync connection.

Parameters
socketThe new sync channel
peerIdThe contact who owns the device
deviceIdDevice linked to that transport

Definition at line 167 of file sync_module.cpp.

References jami::emitSignal(), and JAMI_WARNING.

Here is the call graph for this function:

◆ isConnected()

bool jami::SyncModule::isConnected ( const DeviceId deviceId) const

Definition at line 221 of file sync_module.cpp.

References jami::emitSignal().

Here is the call graph for this function:

◆ syncWithConnected()

void jami::SyncModule::syncWithConnected ( const std::shared_ptr< SyncMsg > &  syncMsg = nullptr,
const DeviceId deviceId = {} 
)

Send sync to all connected devices.

Parameters
syncMsgDefault message
deviceIdIf we need to filter on a device

Definition at line 231 of file sync_module.cpp.

References jami::emitSignal().

Here is the call graph for this function:

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