Liblinphone
5.3.0
|
An object to handle the callbacks for the handling a ChatMessage objects. More...
#include <chat_message_listener.hh>
Public Member Functions | |
virtual LINPHONECXX_PUBLIC void | onMsgStateChanged (const std::shared_ptr< linphone::ChatMessage > &message, linphone::ChatMessage::State state) |
Call back used to notify message delivery status. More... | |
virtual LINPHONECXX_PUBLIC void | onNewMessageReaction (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< const linphone::ChatMessageReaction > &reaction) |
Callback used to notify a reaction has been received or sent for a given message. More... | |
virtual LINPHONECXX_PUBLIC void | onReactionRemoved (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< const linphone::Address > &address) |
Callback used to notify a reaction has been removed from a given message. More... | |
virtual LINPHONECXX_PUBLIC void | onFileTransferRecv (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< linphone::Content > &content, const std::shared_ptr< const linphone::Buffer > &buffer) |
File transfer receive callback prototype. More... | |
virtual LINPHONECXX_PUBLIC std::shared_ptr< linphone::Buffer > | onFileTransferSend (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< linphone::Content > &content, size_t offset, size_t size)=0 |
File transfer send callback prototype. More... | |
virtual LINPHONECXX_PUBLIC void | onFileTransferSendChunk (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< linphone::Content > &content, size_t offset, size_t size, const std::shared_ptr< linphone::Buffer > &buffer) |
File transfer send callback prototype. More... | |
virtual LINPHONECXX_PUBLIC void | onFileTransferProgressIndication (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< linphone::Content > &content, size_t offset, size_t total) |
File transfer progress indication callback prototype. More... | |
virtual LINPHONECXX_PUBLIC void | onParticipantImdnStateChanged (const std::shared_ptr< linphone::ChatMessage > &message, const std::shared_ptr< const linphone::ParticipantImdnState > &state) |
Call back used to notify participant IMDN state. More... | |
virtual LINPHONECXX_PUBLIC void | onEphemeralMessageTimerStarted (const std::shared_ptr< linphone::ChatMessage > &message) |
Callback used to notify an ephemeral message that its lifespan before disappearing has started to decrease. More... | |
virtual LINPHONECXX_PUBLIC void | onEphemeralMessageDeleted (const std::shared_ptr< linphone::ChatMessage > &message) |
Call back used to notify ephemeral message is deleted. More... | |
An object to handle the callbacks for the handling a ChatMessage objects.
|
inlinevirtual |
Call back used to notify ephemeral message is deleted.
message | LinphoneChatMessage object |
|
inlinevirtual |
Callback used to notify an ephemeral message that its lifespan before disappearing has started to decrease.
This callback is called when the ephemeral message is read by the receiver.
message | LinphoneChatMessage object |
|
inlinevirtual |
File transfer progress indication callback prototype.
message | ChatMessage message from which the body is received. |
content | Content incoming content information |
offset | The number of bytes sent/received since the beginning of the transfer. |
total | The total number of bytes to be sent/received. |
|
inlinevirtual |
File transfer receive callback prototype.
This function is called by the core upon an incoming File transfer is started. This function may be call several time for the same file in case of large file.
message | ChatMessage message from which the body is received. |
content | Content incoming content information |
buffer | Buffer holding the received data. Empty buffer means end of file. |
|
pure virtual |
File transfer send callback prototype.
This function is called by the core when an outgoing file transfer is started. This function is called until size is set to 0.
message | ChatMessage message from which the body is received. |
content | Content outgoing content |
offset | the offset in the file from where to get the data to be sent |
size | the number of bytes expected by the framework |
|
inlinevirtual |
File transfer send callback prototype.
This function is called by the core when an outgoing file transfer is started. This function is called until size is set to 0.
message | ChatMessage message from which the body is received. |
content | Content outgoing content |
offset | the offset in the file from where to get the data to be sent |
size | the number of bytes expected by the framework |
buffer | A Buffer to be filled. Leave it empty when end of file has been reached. |
|
inlinevirtual |
Call back used to notify message delivery status.
message | ChatMessage object |
state | ChatMessage::State |
|
inlinevirtual |
Callback used to notify a reaction has been received or sent for a given message.
message | LinphoneChatMessage object |
reaction | the LinphoneChatMessageReaction reaction that was sent or received |
|
inlinevirtual |
Call back used to notify participant IMDN state.
message | ChatMessage object |
state | ParticipantImdnState |
|
inlinevirtual |
Callback used to notify a reaction has been removed from a given message.
message | LinphoneChatMessage object |
address | the LinphoneAddress of the person that removed it's reaction |