Ring Daemon
Loading...
Searching...
No Matches
jami::vCard::utils Namespace Reference

Typedefs

using VCardData = std::map< std::string, std::string, std::less<> >
 

Functions

VCardData initVcard ()
 
void removeByKey (VCardData &vCard, std::string_view key)
 
void save (const VCardData &vCard, const std::filesystem::path &path, const std::filesystem::path &pathLink)
 
VCardData toMap (std::string_view content)
 Payload to vCard.
 
std::string toString (const VCardData &vCard)
 

Typedef Documentation

◆ VCardData

using jami::vCard::utils::VCardData = typedef std::map<std::string, std::string, std::less<> >

Definition at line 89 of file vcard.h.

Function Documentation

◆ initVcard()

◆ removeByKey()

void jami::vCard::utils::removeByKey ( VCardData vCard,
std::string_view  key 
)

Definition at line 101 of file vcard.cpp.

References jami::emitSignal(), and jami::starts_with().

Referenced by jami::SIPAccount::updateProfile().

Here is the call graph for this function:

◆ save()

void jami::vCard::utils::save ( const VCardData vCard,
const std::filesystem::path &  path,
const std::filesystem::path &  pathLink 
)

Definition at line 87 of file vcard.cpp.

References jami::fileutils::createFileLink(), jami::emitSignal(), and toString().

Here is the call graph for this function:

◆ toMap()

VCardData jami::vCard::utils::toMap ( std::string_view  content)

Payload to vCard.

Parameters
contentpayload
Returns
the vCard representation

Definition at line 31 of file vcard.cpp.

References jami::emitSignal(), and jami::getline().

Referenced by jami::Account::getProfileVcard(), jami::ConversationRepository::infos(), and jami::ConversationModule::onTrustRequest().

Here is the call graph for this function:

◆ toString()

std::string jami::vCard::utils::toString ( const VCardData vCard)