Ring Daemon 16.0.0
|
#include <jami_contact.h>
Public Member Functions | |
Contact ()=default | |
Contact (const Json::Value &json) | |
bool | hasDifferentState (const Contact &other) const |
bool | isActive () const |
True if the contact is an active contact (not banned nor removed) | |
bool | isBanned () const |
Json::Value | toJson () const |
std::map< std::string, std::string > | toMap () const |
bool | update (const Contact &c) |
Update this contact using other known contact information, return true if contact state was changed. | |
Public Attributes | |
time_t | added {0} |
Time of contact addition. | |
bool | banned {false} |
True if the contact is banned (if not active) | |
bool | confirmed {false} |
True if we got confirmation that this contact also added us. | |
std::string | conversationId {} |
Non empty if a swarm is linked. | |
time_t | removed {0} |
Time of contact removal. | |
Definition at line 35 of file jami_contact.h.
|
default |
|
inline |
Definition at line 57 of file jami_contact.h.
References added, banned, confirmed, conversationId, and removed.
Definition at line 93 of file jami_contact.h.
References confirmed, jami::emitSignal(), isActive(), and isBanned().
Referenced by update().
|
inline |
True if the contact is an active contact (not banned nor removed)
Definition at line 53 of file jami_contact.h.
References added, and removed.
Referenced by hasDifferentState(), isBanned(), toMap(), and update().
|
inline |
Definition at line 54 of file jami_contact.h.
References banned, jami::emitSignal(), and isActive().
Referenced by hasDifferentState(), and toMap().
|
inline |
Definition at line 99 of file jami_contact.h.
References added, banned, confirmed, conversationId, and removed.
|
inline |
Definition at line 114 of file jami_contact.h.
References added, confirmed, conversationId, jami::FALSE_STR, isActive(), isBanned(), removed, and jami::TRUE_STR.
Update this contact using other known contact information, return true if contact state was changed.
Definition at line 70 of file jami_contact.h.
References added, banned, confirmed, conversationId, jami::emitSignal(), hasDifferentState(), isActive(), and removed.
time_t jami::Contact::added {0} |
Time of contact addition.
Definition at line 38 of file jami_contact.h.
Referenced by Contact(), isActive(), toJson(), toMap(), and update().
True if the contact is banned (if not active)
Definition at line 47 of file jami_contact.h.
Referenced by Contact(), isBanned(), toJson(), and update().
True if we got confirmation that this contact also added us.
Definition at line 44 of file jami_contact.h.
Referenced by Contact(), hasDifferentState(), toJson(), toMap(), and update().
std::string jami::Contact::conversationId {} |
time_t jami::Contact::removed {0} |
Time of contact removal.
Definition at line 41 of file jami_contact.h.
Referenced by Contact(), isActive(), toJson(), toMap(), and update().