Liblinphone  5.3.0
Public Types | Public Member Functions | List of all members
linphone::EventLog Class Reference

Object that represents an event that must be stored in database. More...

#include <event_log.hh>

Inheritance diagram for linphone::EventLog:

Public Types

enum  SecurityEventType {
  SecurityEventType::None = 0,
  SecurityEventType::SecurityLevelDowngraded = 1,
  SecurityEventType::ParticipantMaxDeviceCountExceeded = 2,
  SecurityEventType::EncryptionIdentityKeyChanged = 3,
  SecurityEventType::ManInTheMiddleDetected = 4
}
 SecurityEventType is used to indicate the type of security event. More...
 
enum  Type {
  Type::None = 0,
  Type::ConferenceCreated = 1,
  Type::ConferenceTerminated = 2,
  Type::ConferenceCallStarted = 3,
  Type::ConferenceConnected = 21,
  Type::ConferenceCallEnded = 4,
  Type::ConferenceChatMessage = 5,
  Type::ConferenceParticipantAdded = 6,
  Type::ConferenceParticipantRemoved = 7,
  Type::ConferenceParticipantRoleUnknown = 25,
  Type::ConferenceParticipantRoleSpeaker = 26,
  Type::ConferenceParticipantRoleListener = 27,
  Type::ConferenceParticipantSetAdmin = 8,
  Type::ConferenceParticipantUnsetAdmin = 9,
  Type::ConferenceParticipantDeviceAdded = 10,
  Type::ConferenceParticipantDeviceRemoved = 11,
  Type::ConferenceParticipantDeviceMediaCapabilityChanged = 17,
  Type::ConferenceParticipantDeviceMediaAvailabilityChanged = 23,
  Type::ConferenceParticipantDeviceStatusChanged = 22,
  Type::ConferenceSubjectChanged = 12,
  Type::ConferenceAvailableMediaChanged = 18,
  Type::ConferenceSecurityEvent = 13,
  Type::ConferenceEphemeralMessageLifetimeChanged = 14,
  Type::ConferenceEphemeralMessageEnabled = 15,
  Type::ConferenceEphemeralMessageDisabled = 16,
  Type::ConferenceEphemeralMessageManagedByAdmin = 19,
  Type::ConferenceEphemeralMessageManagedByParticipants = 20,
  Type::ConferenceChatMessageReaction = 24
}
 Type is used to indicate the type of an event. More...
 

Public Member Functions

LINPHONECXX_PUBLIC EventLog (void *ptr, bool takeRef=true)
 
LINPHONECXX_PUBLIC _LinphoneEventLog * cPtr ()
 
LINPHONECXX_PUBLIC std::shared_ptr< linphone::CallLoggetCallLog () const
 Returns the call log of a conference call event. More...
 
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ChatMessagegetChatMessage () const
 Returns the chat message of a conference chat message event. More...
 
LINPHONECXX_PUBLIC std::shared_ptr< linphone::ConferenceInfogetConferenceInfo () 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::AddressgetDeviceAddress () 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::AddressgetLocalAddress () 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::AddressgetParticipantAddress () const
 Returns the participant address of a conference participant event. More...
 
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AddressgetPeerAddress () const
 Returns the peer address of a conference event. More...
 
LINPHONECXX_PUBLIC std::shared_ptr< const linphone::AddressgetSecurityEventFaultyDeviceAddress () 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.
 

Detailed Description

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.

Member Enumeration Documentation

◆ SecurityEventType

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.

◆ Type

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.

Member Function Documentation

◆ getCallLog()

LINPHONECXX_PUBLIC std::shared_ptr<linphone::CallLog> linphone::EventLog::getCallLog ( ) const

Returns the call log of a conference call event.

Returns
The conference CallLog.

◆ getChatMessage()

LINPHONECXX_PUBLIC std::shared_ptr<linphone::ChatMessage> linphone::EventLog::getChatMessage ( ) const

Returns the chat message of a conference chat message event.

Returns
The conference ChatMessage.

◆ getConferenceInfo()

LINPHONECXX_PUBLIC std::shared_ptr<linphone::ConferenceInfo> linphone::EventLog::getConferenceInfo ( ) const

Returns the conference info of a conference call event.

Returns
The conference ConferenceInfo.

◆ getCreationTime()

LINPHONECXX_PUBLIC time_t linphone::EventLog::getCreationTime ( ) const

Returns the creation time of a event log.

Returns
The event creation time

◆ getDeviceAddress()

LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getDeviceAddress ( ) const

Returns the device address of a conference participant device event.

Returns
The conference device Address.

◆ getEphemeralMessageLifetime()

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.

Returns
The ephemeral message lifetime.

◆ getLocalAddress()

LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getLocalAddress ( ) const

Returns the local address of a conference event.

Returns
The local Address.

◆ getNotifyId()

LINPHONECXX_PUBLIC unsigned int linphone::EventLog::getNotifyId ( ) const

Returns the notify id of a conference notified event.

Returns
The conference notify id.

◆ getParticipantAddress()

LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getParticipantAddress ( ) const

Returns the participant address of a conference participant event.

Returns
The conference participant Address.

◆ getPeerAddress()

LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getPeerAddress ( ) const

Returns the peer address of a conference event.

Returns
The peer Address.

◆ getSecurityEventFaultyDeviceAddress()

LINPHONECXX_PUBLIC std::shared_ptr<const linphone::Address> linphone::EventLog::getSecurityEventFaultyDeviceAddress ( ) const

Returns the faulty device address of a conference security event.

Returns
The Address of the faulty device.

◆ getSecurityEventType()

LINPHONECXX_PUBLIC SecurityEventType linphone::EventLog::getSecurityEventType ( ) const

Returns the type of security event.

Returns
The SecurityEventType type.

◆ getSubject()

LINPHONECXX_PUBLIC std::string linphone::EventLog::getSubject ( ) const

Returns the subject of a conference subject event.

Returns
The conference subject.

◆ getType()

LINPHONECXX_PUBLIC Type linphone::EventLog::getType ( ) const

Returns the type of a event log.

Returns
The Type type

The documentation for this class was generated from the following file: