Liblinphone
5.3.0
|
Object that represents an event that must be stored in database. More...
#include <event_log.hh>
Public Member Functions | |
LINPHONECXX_PUBLIC | EventLog (void *ptr, bool takeRef=true) |
LINPHONECXX_PUBLIC _LinphoneEventLog * | cPtr () |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLog > | getCallLog () const |
Returns the call log of a conference call event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatMessage > | getChatMessage () const |
Returns the chat message of a conference chat message event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ConferenceInfo > | getConferenceInfo () const |
Returns the conference info of a conference call event. More... | |
LINPHONECXX_PUBLIC time_t | getCreationTime () const |
Returns the creation time of a event log. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getDeviceAddress () const |
Returns the device address of a conference participant device event. More... | |
LINPHONECXX_PUBLIC long | getEphemeralMessageLifetime () const |
Returns the ephemeral message lifetime of a conference ephemeral message event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getLocalAddress () const |
Returns the local address of a conference event. More... | |
LINPHONECXX_PUBLIC unsigned int | getNotifyId () const |
Returns the notify id of a conference notified event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getParticipantAddress () const |
Returns the participant address of a conference participant event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getPeerAddress () const |
Returns the peer address of a conference event. More... | |
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::Address > | getSecurityEventFaultyDeviceAddress () const |
Returns the faulty device address of a conference security event. More... | |
LINPHONECXX_PUBLIC SecurityEventType | getSecurityEventType () const |
Returns the type of security event. More... | |
LINPHONECXX_PUBLIC std::string | getSubject () const |
Returns the subject of a conference subject event. More... | |
LINPHONECXX_PUBLIC Type | getType () const |
Returns the type of a event log. More... | |
LINPHONECXX_PUBLIC void | deleteFromDatabase () |
Delete event log from database. | |
Object that represents an event that must be stored in database.
For example, all chat related events are wrapped in an EventLog, and many callbacks use this kind of type as parameter. Use getType() to get the Type it refers to, and then you can use one of the accessor methods to get the underlying object, for example getChatMessage() for a ChatMessage.
|
strong |
SecurityEventType is used to indicate the type of security event.
Enumerator | |
---|---|
None | Event is not a security event. |
SecurityLevelDowngraded | Chatroom security level downgraded event. |
ParticipantMaxDeviceCountExceeded | Participant has exceeded the maximum number of device event. |
EncryptionIdentityKeyChanged | Peer device instant messaging encryption identity key has changed event. |
ManInTheMiddleDetected | Man in the middle detected event. |
|
strong |
Type is used to indicate the type of an event.
Enumerator | |
---|---|
None | No defined event. |
ConferenceCreated | Conference (created) event. |
ConferenceTerminated | Conference (terminated) event. |
ConferenceCallStarted | Conference call (start) event. |
ConferenceConnected | Conference call (connected) event. |
ConferenceCallEnded | Conference call (end) event. |
ConferenceChatMessage | Conference chat message event. |
ConferenceParticipantAdded | Conference participant (added) event. |
ConferenceParticipantRemoved | Conference participant (removed) event. |
ConferenceParticipantRoleUnknown | Conference participant (role unknown) event. |
ConferenceParticipantRoleSpeaker | Conference participant (role speaker) event. |
ConferenceParticipantRoleListener | Conference participant (role listener) event. |
ConferenceParticipantSetAdmin | Conference participant (set admin) event. |
ConferenceParticipantUnsetAdmin | Conference participant (unset admin) event. |
ConferenceParticipantDeviceAdded | Conference participant device (added) event. |
ConferenceParticipantDeviceRemoved | Conference participant device (removed) event. |
ConferenceParticipantDeviceMediaCapabilityChanged | Conference participant device (media capability changed) event. |
ConferenceParticipantDeviceMediaAvailabilityChanged | Conference participant device (media availability changed) event. |
ConferenceParticipantDeviceStatusChanged | Conference participant device (left) event. |
ConferenceSubjectChanged | Conference subject event. |
ConferenceAvailableMediaChanged | Conference available media event. |
ConferenceSecurityEvent | Conference encryption security event. |
ConferenceEphemeralMessageLifetimeChanged | Conference ephemeral message (ephemeral message lifetime changed) event. |
ConferenceEphemeralMessageEnabled | Conference ephemeral message (ephemeral message enabled) event. |
ConferenceEphemeralMessageDisabled | Conference ephemeral message (ephemeral message disabled) event. |
ConferenceEphemeralMessageManagedByAdmin | Conference ephemeral message (ephemeral message settings managed by admin) event. |
ConferenceEphemeralMessageManagedByParticipants | Conference ephemeral message (ephemeral message settings managed by participants) event. |
ConferenceChatMessageReaction | Reaction event to a chat message. |
LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::EventLog::getCallLog | ( | ) | const |
Returns the call log of a conference call event.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ChatMessage> linphone::EventLog::getChatMessage | ( | ) | const |
Returns the chat message of a conference chat message event.
LINPHONECXX_PUBLIC std::shared_ptr<linphone::ConferenceInfo> linphone::EventLog::getConferenceInfo | ( | ) | const |
Returns the conference info of a conference call event.
LINPHONECXX_PUBLIC time_t linphone::EventLog::getCreationTime | ( | ) | const |
Returns the creation time of a event log.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getDeviceAddress | ( | ) | const |
Returns the device address of a conference participant device event.
LINPHONECXX_PUBLIC long linphone::EventLog::getEphemeralMessageLifetime | ( | ) | const |
Returns the ephemeral message lifetime of a conference ephemeral message event.
Ephemeral lifetime means the time before an ephemeral message which has been viewed gets deleted.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getLocalAddress | ( | ) | const |
Returns the local address of a conference event.
LINPHONECXX_PUBLIC unsigned int linphone::EventLog::getNotifyId | ( | ) | const |
Returns the notify id of a conference notified event.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getParticipantAddress | ( | ) | const |
Returns the participant address of a conference participant event.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getPeerAddress | ( | ) | const |
Returns the peer address of a conference event.
LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getSecurityEventFaultyDeviceAddress | ( | ) | const |
Returns the faulty device address of a conference security event.
LINPHONECXX_PUBLIC SecurityEventType linphone::EventLog::getSecurityEventType | ( | ) | const |
Returns the type of security event.
LINPHONECXX_PUBLIC std::string linphone::EventLog::getSubject | ( | ) | const |
Returns the subject of a conference subject event.
LINPHONECXX_PUBLIC Type linphone::EventLog::getType | ( | ) | const |
Returns the type of a event log.