Ring Daemon 16.0.0
Loading...
Searching...
No Matches
jami::SyncedConversation Struct Reference
Collaboration diagram for jami::SyncedConversation:
Collaboration graph

Public Member Functions

std::vector< std::map< std::string, std::string > > getMembers (bool includeLeft, bool includeBanned) const
 
bool startFetch (const std::string &deviceId, bool checkIfConv=false)
 
void stopFetch (const std::string &deviceId)
 
 SyncedConversation (const ConvInfo &info)
 
 SyncedConversation (const std::string &convId)
 

Public Attributes

std::shared_ptr< Conversationconversation
 
std::unique_ptr< asio::steady_timer > fallbackClone
 
std::chrono::seconds fallbackTimer {5s}
 
ConvInfo info
 
std::mutex mtx
 
std::unique_ptr< PendingConversationFetchpending
 

Detailed Description

Definition at line 54 of file conversation_module.cpp.

Constructor & Destructor Documentation

◆ SyncedConversation() [1/2]

jami::SyncedConversation::SyncedConversation ( const std::string &  convId)
inline

Definition at line 63 of file conversation_module.cpp.

References fallbackClone, and jami::Manager::instance().

Here is the call graph for this function:

◆ SyncedConversation() [2/2]

jami::SyncedConversation::SyncedConversation ( const ConvInfo info)
inline

Definition at line 68 of file conversation_module.cpp.

References fallbackClone, and jami::Manager::instance().

Here is the call graph for this function:

Member Function Documentation

◆ getMembers()

std::vector< std::map< std::string, std::string > > jami::SyncedConversation::getMembers ( bool  includeLeft,
bool  includeBanned 
) const
inline

Definition at line 104 of file conversation_module.cpp.

References conversation, jami::emitSignal(), info, and jami::ConvInfo::members.

Here is the call graph for this function:

◆ startFetch()

bool jami::SyncedConversation::startFetch ( const std::string &  deviceId,
bool  checkIfConv = false 
)
inline

Definition at line 74 of file conversation_module.cpp.

References conversation, jami::emitSignal(), and pending.

Here is the call graph for this function:

◆ stopFetch()

void jami::SyncedConversation::stopFetch ( const std::string &  deviceId)
inline

Definition at line 94 of file conversation_module.cpp.

References pending.

Member Data Documentation

◆ conversation

std::shared_ptr<Conversation> jami::SyncedConversation::conversation

Definition at line 61 of file conversation_module.cpp.

Referenced by getMembers(), and startFetch().

◆ fallbackClone

std::unique_ptr<asio::steady_timer> jami::SyncedConversation::fallbackClone

Definition at line 57 of file conversation_module.cpp.

Referenced by SyncedConversation(), and SyncedConversation().

◆ fallbackTimer

std::chrono::seconds jami::SyncedConversation::fallbackTimer {5s}

Definition at line 58 of file conversation_module.cpp.

◆ info

ConvInfo jami::SyncedConversation::info

Definition at line 59 of file conversation_module.cpp.

Referenced by getMembers().

◆ mtx

std::mutex jami::SyncedConversation::mtx

Definition at line 56 of file conversation_module.cpp.

◆ pending

std::unique_ptr<PendingConversationFetch> jami::SyncedConversation::pending

Definition at line 60 of file conversation_module.cpp.

Referenced by startFetch(), and stopFetch().


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