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

Functions

std::map< std::string, std::string > initVcard ()
 
void removeByKey (std::map< std::string, std::string > &vCard, std::string_view key)
 
std::map< std::string, std::string > toMap (std::string_view content)
 Payload to vCard.
 
std::string toString (const std::map< std::string, std::string > &vCard)
 

Function Documentation

◆ initVcard()

std::map< std::string, std::string > vCard::utils::initVcard ( )

◆ removeByKey()

void vCard::utils::removeByKey ( std::map< std::string, std::string > &  vCard,
std::string_view  key 
)

Definition at line 80 of file vcard.cpp.

References jami::starts_with().

Referenced by jami::JamiAccount::updateProfile(), and jami::SIPAccount::updateProfile().

Here is the call graph for this function:

◆ toMap()

std::map< std::string, std::string > vCard::utils::toMap ( std::string_view  content)

Payload to vCard.

Parameters
contentpayload
Returns
the vCard representation

Definition at line 25 of file vcard.cpp.

References 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 vCard::utils::toString ( const std::map< std::string, std::string > &  vCard)