|
Ring Daemon
|
#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 34 of file jami_contact.h.
|
default |
|
inline |
Definition at line 56 of file jami_contact.h.
References added, banned, confirmed, conversationId, and removed.
Definition at line 85 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 52 of file jami_contact.h.
References added, and removed.
Referenced by hasDifferentState(), isBanned(), toMap(), and update().
|
inline |
Definition at line 53 of file jami_contact.h.
References banned, jami::emitSignal(), and isActive().
Referenced by hasDifferentState(), and toMap().

|
inline |
Definition at line 90 of file jami_contact.h.
References added, banned, confirmed, conversationId, and removed.
|
inline |
Definition at line 105 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 69 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 37 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 46 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 43 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 40 of file jami_contact.h.
Referenced by Contact(), isActive(), toJson(), toMap(), and update().