Liblinphone
5.3.0
|
Functions | |
LinphoneChatMessage * | linphone_chat_message_ref (LinphoneChatMessage *message) |
Acquire a reference to the chat message. More... | |
void | linphone_chat_message_unref (LinphoneChatMessage *message) |
Release reference to the chat message. More... | |
void * | linphone_chat_message_get_user_data (const LinphoneChatMessage *message) |
Retrieve the user pointer associated with the chat message. More... | |
void | linphone_chat_message_set_user_data (LinphoneChatMessage *message, void *user_data) |
Assign a user pointer to the chat message. More... | |
LinphoneCore * | linphone_chat_message_get_core (const LinphoneChatMessage *message) |
Returns back pointer to LinphoneCore object. More... | |
const char * | linphone_chat_message_get_external_body_url (const LinphoneChatMessage *message) |
Linphone message can carry external body as defined by rfc2017. More... | |
void | linphone_chat_message_set_external_body_url (LinphoneChatMessage *message, const char *external_body_url) |
Linphone message can carry external body as defined by rfc2017. More... | |
time_t | linphone_chat_message_get_time (const LinphoneChatMessage *message) |
Get the time the message was sent. More... | |
bool_t | linphone_chat_message_is_outgoing (const LinphoneChatMessage *message) |
Returns wehther the message has been sent or received. More... | |
const LinphoneAddress * | linphone_chat_message_get_from_address (const LinphoneChatMessage *message) |
Get origin of the message. More... | |
const LinphoneAddress * | linphone_chat_message_get_to_address (const LinphoneChatMessage *message) |
Get destination of the message. More... | |
const char * | linphone_chat_message_get_content_type (const LinphoneChatMessage *message) |
Get the content type of a chat message. More... | |
void | linphone_chat_message_set_content_type (LinphoneChatMessage *message, const char *content_type) |
Set the content type of a chat message. More... | |
const char * | linphone_chat_message_get_utf8_text (const LinphoneChatMessage *message) |
Get text part of this message. More... | |
int | linphone_chat_message_set_utf8_text (LinphoneChatMessage *message, const char *text) |
Set a chat message text to be sent by linphone_chat_room_send_message(). More... | |
const char * | linphone_chat_message_get_message_id (const LinphoneChatMessage *message) |
Get the message identifier. More... | |
const char * | linphone_chat_message_get_appdata (const LinphoneChatMessage *message) |
Linphone message has an app-specific field that can store a text. More... | |
void | linphone_chat_message_set_appdata (LinphoneChatMessage *message, const char *data) |
Linphone message has an app-specific field that can store a text. More... | |
LinphoneChatRoom * | linphone_chat_message_get_chat_room (const LinphoneChatMessage *message) |
Returns the chatroom this message belongs to. More... | |
bool_t | linphone_chat_message_get_to_be_stored (const LinphoneChatMessage *message) |
Get if a chat message is to be stored. More... | |
void | linphone_chat_message_set_to_be_stored (LinphoneChatMessage *message, bool_t to_be_stored) |
Set if a chat message is to be stored. More... | |
unsigned int | linphone_chat_message_store (LinphoneChatMessage *message) |
LinphoneChatMessageState | linphone_chat_message_get_state (const LinphoneChatMessage *message) |
Get the state of the message. More... | |
bool_t | linphone_chat_message_is_secured (const LinphoneChatMessage *message) |
Get if the message was encrypted when transfered. More... | |
LinphoneContent * | linphone_chat_message_get_file_transfer_information (const LinphoneChatMessage *message) |
Get the file_transfer_information (used by call backs to recover informations during a rcs file transfer) More... | |
bool_t | linphone_chat_message_download_content (LinphoneChatMessage *message, LinphoneContent *content) |
Start the download of the LinphoneContent referenced in the LinphoneChatMessage from remote server. More... | |
void | linphone_chat_message_cancel_file_transfer (LinphoneChatMessage *message) |
Cancel an ongoing file transfer attached to this message. More... | |
void | linphone_chat_message_send (LinphoneChatMessage *message) |
Send a chat message. More... | |
const LinphoneAddress * | linphone_chat_message_get_peer_address (const LinphoneChatMessage *message) |
const LinphoneAddress * | linphone_chat_message_get_local_address (const LinphoneChatMessage *message) |
Returns the local address the message was sent or received with. More... | |
void | linphone_chat_message_add_custom_header (LinphoneChatMessage *message, const char *header_name, const char *header_value) |
Add custom headers to the message. More... | |
const char * | linphone_chat_message_get_custom_header (const LinphoneChatMessage *message, const char *header_name) |
Retrieve a custom header value given its name. More... | |
void | linphone_chat_message_remove_custom_header (LinphoneChatMessage *message, const char *header_name) |
Removes a custom header from the message. More... | |
bool_t | linphone_chat_message_is_read (const LinphoneChatMessage *message) |
Returns wether the message has been read or not. More... | |
LinphoneReason | linphone_chat_message_get_reason (const LinphoneChatMessage *message) |
const LinphoneErrorInfo * | linphone_chat_message_get_error_info (const LinphoneChatMessage *message) |
Get full details about delivery error of a chat message. More... | |
bool_t | linphone_chat_message_is_forward (LinphoneChatMessage *message) |
Returns wether the chat message is a forward message or not. More... | |
const char * | linphone_chat_message_get_forward_info (const LinphoneChatMessage *message) |
Gets the forward info if available as a string. More... | |
bool_t | linphone_chat_message_is_reply (LinphoneChatMessage *message) |
Returns wether the chat message is a reply message or not. More... | |
const char * | linphone_chat_message_get_reply_message_id (LinphoneChatMessage *message) |
Returns the ID of the message this is a reply to. More... | |
const LinphoneAddress * | linphone_chat_message_get_reply_message_sender_address (LinphoneChatMessage *message) |
Returns the address of the sender of the message this is a reply to. More... | |
LinphoneChatMessage * | linphone_chat_message_get_reply_message (LinphoneChatMessage *message) |
Returns the LinphoneChatMessage this message is a reply to. More... | |
bool_t | linphone_chat_message_is_ephemeral (const LinphoneChatMessage *message) |
Returns wether the chat message is an ephemeral message or not. More... | |
long | linphone_chat_message_get_ephemeral_lifetime (const LinphoneChatMessage *message) |
Returns lifetime of an ephemeral message. More... | |
time_t | linphone_chat_message_get_ephemeral_expire_time (const LinphoneChatMessage *message) |
Returns the real time at which an ephemeral message expires and will be deleted. More... | |
LinphoneStatus | linphone_chat_message_put_char (LinphoneChatMessage *message, uint32_t character) |
Fulfill a chat message char by char. More... | |
void | linphone_chat_message_add_callbacks (LinphoneChatMessage *message, LinphoneChatMessageCbs *cbs) |
Add a listener in order to be notified of LinphoneChatMessage events. More... | |
void | linphone_chat_message_remove_callbacks (LinphoneChatMessage *message, LinphoneChatMessageCbs *cbs) |
Remove a listener from a LinphoneChatMessage. More... | |
LinphoneChatMessageCbs * | linphone_chat_message_get_current_callbacks (const LinphoneChatMessage *message) |
Gets the current LinphoneChatMessageCbs. More... | |
void | linphone_chat_message_add_file_content (LinphoneChatMessage *message, LinphoneContent *content) |
Adds a file content to the ChatMessage. More... | |
void | linphone_chat_message_add_utf8_text_content (LinphoneChatMessage *message, const char *text) |
Creates a LinphoneContent of type PlainText with the given text as body. More... | |
void | linphone_chat_message_add_content (LinphoneChatMessage *message, LinphoneContent *content) |
Adds a content to the ChatMessage. More... | |
void | linphone_chat_message_remove_content (LinphoneChatMessage *message, LinphoneContent *content) |
Removes a content from the ChatMessage. More... | |
const bctbx_list_t * | linphone_chat_message_get_contents (const LinphoneChatMessage *message) |
Returns the list of contents in the message. More... | |
bool_t | linphone_chat_message_is_file_transfer_in_progress (const LinphoneChatMessage *message) |
Gets whether or not a file is currently being downloaded or uploaded. More... | |
bctbx_list_t * | linphone_chat_message_get_participants_by_imdn_state (const LinphoneChatMessage *message, LinphoneChatMessageState state) |
Gets the list of participants for which the imdn state has reached the specified state and the time at which they did. More... | |
const char * | linphone_chat_message_get_call_id (const LinphoneChatMessage *message) |
Gets the callId accociated with the message. More... | |
bctbx_list_t * | linphone_chat_message_get_reactions (const LinphoneChatMessage *msg) |
Gets the list of reactions received for this chat message. More... | |
const LinphoneChatMessageReaction * | linphone_chat_message_get_own_reaction (const LinphoneChatMessage *msg) |
Returns our own reaction for a given chat message, if any. More... | |
bool_t | linphone_chat_message_has_conference_invitation_content (const LinphoneChatMessage *message) |
Returns wether the chat message has a conference invitation content or not. More... | |
LinphoneChatMessageReaction * | linphone_chat_message_create_reaction (LinphoneChatMessage *message, const char *utf8_reaction) |
Creates a emoji reaction for the given chat mesage. More... | |
bool_t | linphone_chat_message_has_text_content (const LinphoneChatMessage *message) |
Returns wether the chat message has a text content or not. More... | |
MS2_DEPRECATED const char * | linphone_chat_message_get_text (const LinphoneChatMessage *message) |
Get text part of this message. More... | |
MS2_DEPRECATED const char * | linphone_chat_message_get_file_transfer_filepath (const LinphoneChatMessage *message) |
Get the path to the file to read from or write to during the file transfer. More... | |
MS2_DEPRECATED void | linphone_chat_message_start_file_download (LinphoneChatMessage *message, LinphoneChatMessageStateChangedCb status_cb, void *user_data) |
Start the download of the file from remote server. More... | |
MS2_DEPRECATED bool_t | linphone_chat_message_download_file (LinphoneChatMessage *message) |
Start the download of the file referenced in a LinphoneChatMessage from remote server. More... | |
MS2_DEPRECATED void | linphone_chat_message_resend (LinphoneChatMessage *message) |
Resend a chat message if it is in the 'not delivered' state for whatever reason. More... | |
MS2_DEPRECATED void | linphone_chat_message_set_file_transfer_filepath (LinphoneChatMessage *message, const char *filepath) |
Set the path to the file to read from or write to during the file transfer. More... | |
MS2_DEPRECATED LinphoneChatMessageCbs * | linphone_chat_message_get_callbacks (const LinphoneChatMessage *message) |
Get the LinphoneChatMessageCbs object associated with the LinphoneChatMessage. More... | |
MS2_DEPRECATED int | linphone_chat_message_set_text (LinphoneChatMessage *message, const char *text) |
Set a chat message text to be sent by linphone_chat_room_send_message() More... | |
MS2_DEPRECATED const char * | linphone_chat_message_get_text_content (const LinphoneChatMessage *message) |
Gets the text content if available as a string. More... | |
MS2_DEPRECATED void | linphone_chat_message_add_text_content (LinphoneChatMessage *message, const char *text) |
Creates a LinphoneContent of type PlainText with the given text as body. More... | |
MS2_DEPRECATED bool_t | linphone_chat_message_is_file_transfer (const LinphoneChatMessage *message) |
Return whether or not a chat message is a file transfer. More... | |
MS2_DEPRECATED bool_t | linphone_chat_message_is_text (const LinphoneChatMessage *message) |
Return whether or not a chat message is a text. More... | |
void linphone_chat_message_add_callbacks | ( | LinphoneChatMessage * | message, |
LinphoneChatMessageCbs * | cbs | ||
) |
Add a listener in order to be notified of LinphoneChatMessage events.
message | LinphoneChatMessage object to monitor. |
cbs | A LinphoneChatMessageCbs object holding the callbacks you need. |
void linphone_chat_message_add_content | ( | LinphoneChatMessage * | message, |
LinphoneContent * | content | ||
) |
Adds a content to the ChatMessage.
message | LinphoneChatMessage object. |
content | the LinphoneContent object to add. |
void linphone_chat_message_add_custom_header | ( | LinphoneChatMessage * | message, |
const char * | header_name, | ||
const char * | header_value | ||
) |
Add custom headers to the message.
message | LinphoneChatMessage object. |
header_name | name of the header |
header_value | header value |
void linphone_chat_message_add_file_content | ( | LinphoneChatMessage * | message, |
LinphoneContent * | content | ||
) |
Adds a file content to the ChatMessage.
message | LinphoneChatMessage object. |
content | the LinphoneContent object to add. |
MS2_DEPRECATED void linphone_chat_message_add_text_content | ( | LinphoneChatMessage * | message, |
const char * | text | ||
) |
Creates a LinphoneContent of type PlainText with the given text as body.
message | LinphoneChatMessage object. |
text | The text in System Locale to add to the message. |
void linphone_chat_message_add_utf8_text_content | ( | LinphoneChatMessage * | message, |
const char * | text | ||
) |
Creates a LinphoneContent of type PlainText with the given text as body.
Introduced in 01/07/2020
message | LinphoneChatMessage object. |
text | The text in UTF8 to add to the message. |
void linphone_chat_message_cancel_file_transfer | ( | LinphoneChatMessage * | message | ) |
Cancel an ongoing file transfer attached to this message.
(upload or download)
message | LinphoneChatMessage object. |
LinphoneChatMessageReaction* linphone_chat_message_create_reaction | ( | LinphoneChatMessage * | message, |
const char * | utf8_reaction | ||
) |
Creates a emoji reaction for the given chat mesage.
To send it, use linphone_chat_message_reaction_send().
message | the message you want to react on |
utf8_reaction | the emoji character(s) as UTF-8. |
bool_t linphone_chat_message_download_content | ( | LinphoneChatMessage * | message, |
LinphoneContent * | content | ||
) |
Start the download of the LinphoneContent referenced in the LinphoneChatMessage from remote server.
message | LinphoneChatMessage object. |
content | the LinphoneContent object to download (must have the linphone_content_is_file_transfer() method return TRUE). |
MS2_DEPRECATED bool_t linphone_chat_message_download_file | ( | LinphoneChatMessage * | message | ) |
Start the download of the file referenced in a LinphoneChatMessage from remote server.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_appdata | ( | const LinphoneChatMessage * | message | ) |
Linphone message has an app-specific field that can store a text.
The application might want to use it for keeping data over restarts, like thumbnail image path.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_call_id | ( | const LinphoneChatMessage * | message | ) |
Gets the callId accociated with the message.
message | LinphoneChatMessage object. |
MS2_DEPRECATED LinphoneChatMessageCbs* linphone_chat_message_get_callbacks | ( | const LinphoneChatMessage * | message | ) |
Get the LinphoneChatMessageCbs object associated with the LinphoneChatMessage.
message | LinphoneChatMessage object. |
LinphoneChatRoom* linphone_chat_message_get_chat_room | ( | const LinphoneChatMessage * | message | ) |
Returns the chatroom this message belongs to.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_content_type | ( | const LinphoneChatMessage * | message | ) |
Get the content type of a chat message.
message | LinphoneChatMessage object. |
const bctbx_list_t* linphone_chat_message_get_contents | ( | const LinphoneChatMessage * | message | ) |
Returns the list of contents in the message.
message | LinphoneChatMessage object. |
LinphoneCore* linphone_chat_message_get_core | ( | const LinphoneChatMessage * | message | ) |
Returns back pointer to LinphoneCore object.
message | LinphoneChatMessage object. |
LinphoneChatMessageCbs* linphone_chat_message_get_current_callbacks | ( | const LinphoneChatMessage * | message | ) |
Gets the current LinphoneChatMessageCbs.
This is meant only to be called from a callback to be able to get the user_data associated with the LinphoneChatMessageCbs that is calling the callback.
message | LinphoneChatMessage object |
const char* linphone_chat_message_get_custom_header | ( | const LinphoneChatMessage * | message, |
const char * | header_name | ||
) |
Retrieve a custom header value given its name.
message | LinphoneChatMessage object. |
header_name | header name searched |
time_t linphone_chat_message_get_ephemeral_expire_time | ( | const LinphoneChatMessage * | message | ) |
Returns the real time at which an ephemeral message expires and will be deleted.
message | LinphoneChatMessage object. |
long linphone_chat_message_get_ephemeral_lifetime | ( | const LinphoneChatMessage * | message | ) |
Returns lifetime of an ephemeral message.
The lifetime is the duration after which the ephemeral message will disappear once viewed.
message | LinphoneChatMessage object. |
const LinphoneErrorInfo* linphone_chat_message_get_error_info | ( | const LinphoneChatMessage * | message | ) |
Get full details about delivery error of a chat message.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_external_body_url | ( | const LinphoneChatMessage * | message | ) |
Linphone message can carry external body as defined by rfc2017.
message | LinphoneChatMessage object. |
MS2_DEPRECATED const char* linphone_chat_message_get_file_transfer_filepath | ( | const LinphoneChatMessage * | message | ) |
Get the path to the file to read from or write to during the file transfer.
message | LinphoneChatMessage object |
LinphoneContent* linphone_chat_message_get_file_transfer_information | ( | const LinphoneChatMessage * | message | ) |
Get the file_transfer_information (used by call backs to recover informations during a rcs file transfer)
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_forward_info | ( | const LinphoneChatMessage * | message | ) |
Gets the forward info if available as a string.
message | LinphoneChatMessage object. |
const LinphoneAddress* linphone_chat_message_get_from_address | ( | const LinphoneChatMessage * | message | ) |
Get origin of the message.
message | LinphoneChatMessage object. |
const LinphoneAddress* linphone_chat_message_get_local_address | ( | const LinphoneChatMessage * | message | ) |
Returns the local address the message was sent or received with.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_message_id | ( | const LinphoneChatMessage * | message | ) |
Get the message identifier.
It is used to identify a message so that it can be notified as delivered and/or displayed.
message | LinphoneChatMessage object. |
const LinphoneChatMessageReaction* linphone_chat_message_get_own_reaction | ( | const LinphoneChatMessage * | msg | ) |
Returns our own reaction for a given chat message, if any.
message | LinphoneChatMessage object. |
bctbx_list_t* linphone_chat_message_get_participants_by_imdn_state | ( | const LinphoneChatMessage * | message, |
LinphoneChatMessageState | state | ||
) |
Gets the list of participants for which the imdn state has reached the specified state and the time at which they did.
message | LinphoneChatMessage object. |
state | The LinphoneChatMessageState the imdn have reached (only use LinphoneChatMessageStateDelivered, LinphoneChatMessageStateDeliveredToUser, LinphoneChatMessageStateDisplayed and LinphoneChatMessageStateNotDelivered) |
bctbx_list_t* linphone_chat_message_get_reactions | ( | const LinphoneChatMessage * | msg | ) |
Gets the list of reactions received for this chat message.
Warning: list is ordered by content of reaction message, not by received timestamp!
message | LinphoneChatMessage object. |
LinphoneChatMessage* linphone_chat_message_get_reply_message | ( | LinphoneChatMessage * | message | ) |
Returns the LinphoneChatMessage this message is a reply to.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_reply_message_id | ( | LinphoneChatMessage * | message | ) |
Returns the ID of the message this is a reply to.
message | LinphoneChatMessage object. |
const LinphoneAddress* linphone_chat_message_get_reply_message_sender_address | ( | LinphoneChatMessage * | message | ) |
Returns the address of the sender of the message this is a reply to.
message | LinphoneChatMessage object. |
LinphoneChatMessageState linphone_chat_message_get_state | ( | const LinphoneChatMessage * | message | ) |
Get the state of the message.
message | LinphoneChatMessage object. |
MS2_DEPRECATED const char* linphone_chat_message_get_text | ( | const LinphoneChatMessage * | message | ) |
Get text part of this message.
message | LinphoneChatMessage object. |
MS2_DEPRECATED const char* linphone_chat_message_get_text_content | ( | const LinphoneChatMessage * | message | ) |
Gets the text content if available as a string.
message | LinphoneChatMessage object. |
time_t linphone_chat_message_get_time | ( | const LinphoneChatMessage * | message | ) |
Get the time the message was sent.
message | LinphoneChatMessage object. |
const LinphoneAddress* linphone_chat_message_get_to_address | ( | const LinphoneChatMessage * | message | ) |
Get destination of the message.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_get_to_be_stored | ( | const LinphoneChatMessage * | message | ) |
Get if a chat message is to be stored.
message | LinphoneChatMessage object. |
void* linphone_chat_message_get_user_data | ( | const LinphoneChatMessage * | message | ) |
Retrieve the user pointer associated with the chat message.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_utf8_text | ( | const LinphoneChatMessage * | message | ) |
Get text part of this message.
Introduced in 01/07/2020
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_has_conference_invitation_content | ( | const LinphoneChatMessage * | message | ) |
Returns wether the chat message has a conference invitation content or not.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_has_text_content | ( | const LinphoneChatMessage * | message | ) |
Returns wether the chat message has a text content or not.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_ephemeral | ( | const LinphoneChatMessage * | message | ) |
Returns wether the chat message is an ephemeral message or not.
An ephemeral message will automatically disappear from the recipient's screen after the message has been viewed.
message | LinphoneChatMessage object. |
MS2_DEPRECATED bool_t linphone_chat_message_is_file_transfer | ( | const LinphoneChatMessage * | message | ) |
Return whether or not a chat message is a file transfer.
message | LinphoneChatMessage object |
bool_t linphone_chat_message_is_file_transfer_in_progress | ( | const LinphoneChatMessage * | message | ) |
Gets whether or not a file is currently being downloaded or uploaded.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_forward | ( | LinphoneChatMessage * | message | ) |
Returns wether the chat message is a forward message or not.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_outgoing | ( | const LinphoneChatMessage * | message | ) |
Returns wehther the message has been sent or received.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_read | ( | const LinphoneChatMessage * | message | ) |
Returns wether the message has been read or not.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_reply | ( | LinphoneChatMessage * | message | ) |
Returns wether the chat message is a reply message or not.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_is_secured | ( | const LinphoneChatMessage * | message | ) |
Get if the message was encrypted when transfered.
message | LinphoneChatMessage object. |
MS2_DEPRECATED bool_t linphone_chat_message_is_text | ( | const LinphoneChatMessage * | message | ) |
Return whether or not a chat message is a text.
message | LinphoneChatMessage object. |
LinphoneStatus linphone_chat_message_put_char | ( | LinphoneChatMessage * | message, |
uint32_t | character | ||
) |
Fulfill a chat message char by char.
Message linked to a Real Time Text Call send char in realtime following RFC 4103/T.140 To commit a message, use linphone_chat_room_send_message()
message | LinphoneChatMessage object. |
character | T.140 char |
LinphoneChatMessage* linphone_chat_message_ref | ( | LinphoneChatMessage * | message | ) |
Acquire a reference to the chat message.
message | LinphoneChatMessage object. |
void linphone_chat_message_remove_callbacks | ( | LinphoneChatMessage * | message, |
LinphoneChatMessageCbs * | cbs | ||
) |
Remove a listener from a LinphoneChatMessage.
message | LinphoneChatMessage object |
cbs | LinphoneChatMessageCbs object to remove. |
void linphone_chat_message_remove_content | ( | LinphoneChatMessage * | message, |
LinphoneContent * | content | ||
) |
Removes a content from the ChatMessage.
message | LinphoneChatMessage object. |
content | the LinphoneContent object to remove. |
void linphone_chat_message_remove_custom_header | ( | LinphoneChatMessage * | message, |
const char * | header_name | ||
) |
Removes a custom header from the message.
message | LinphoneChatMessage object. |
header_name | name of the header to remove |
MS2_DEPRECATED void linphone_chat_message_resend | ( | LinphoneChatMessage * | message | ) |
Resend a chat message if it is in the 'not delivered' state for whatever reason.
message | LinphoneChatMessage object. |
void linphone_chat_message_send | ( | LinphoneChatMessage * | message | ) |
Send a chat message.
message | LinphoneChatMessage object. |
void linphone_chat_message_set_appdata | ( | LinphoneChatMessage * | message, |
const char * | data | ||
) |
Linphone message has an app-specific field that can store a text.
The application might want to use it for keeping data over restarts, like thumbnail image path.
Invoking this function will attempt to update the message storage to reflect the change if it is enabled.
message | LinphoneChatMessage object. |
data | the data to store into the message. |
void linphone_chat_message_set_content_type | ( | LinphoneChatMessage * | message, |
const char * | content_type | ||
) |
Set the content type of a chat message.
This content type must match a content that is text representable, such as text/plain, text/html or image/svg+xml.
message | LinphoneChatMessage object. |
content_type | The new content type of the chat message |
void linphone_chat_message_set_external_body_url | ( | LinphoneChatMessage * | message, |
const char * | external_body_url | ||
) |
Linphone message can carry external body as defined by rfc2017.
message | LinphoneChatMessage object. |
external_body_url | ex: access-type=URL; URL="http://www.foo.com/file" |
MS2_DEPRECATED void linphone_chat_message_set_file_transfer_filepath | ( | LinphoneChatMessage * | message, |
const char * | filepath | ||
) |
Set the path to the file to read from or write to during the file transfer.
message | LinphoneChatMessage object. |
filepath | The path to the file to use for the file transfer. |
MS2_DEPRECATED int linphone_chat_message_set_text | ( | LinphoneChatMessage * | message, |
const char * | text | ||
) |
Set a chat message text to be sent by linphone_chat_room_send_message()
message | LinphoneChatMessage |
text | The text is in System Locale. |
void linphone_chat_message_set_to_be_stored | ( | LinphoneChatMessage * | message, |
bool_t | to_be_stored | ||
) |
Set if a chat message is to be stored.
This content type must match a content that is text representable, such as text/plain, text/html or image/svg+xml.
message | LinphoneChatMessage object. |
to_be_stored | Whether or not the chat message is to be stored |
void linphone_chat_message_set_user_data | ( | LinphoneChatMessage * | message, |
void * | user_data | ||
) |
Assign a user pointer to the chat message.
message | LinphoneChatMessage object. |
user_data | The user pointer to associate with the chat message. |
int linphone_chat_message_set_utf8_text | ( | LinphoneChatMessage * | message, |
const char * | text | ||
) |
Set a chat message text to be sent by linphone_chat_room_send_message().
Introduced in 01/07/2020
message | LinphoneChatMessage |
text | The text in UTF8 to set. |
MS2_DEPRECATED void linphone_chat_message_start_file_download | ( | LinphoneChatMessage * | message, |
LinphoneChatMessageStateChangedCb | status_cb, | ||
void * | user_data | ||
) |
Start the download of the file from remote server.
message | LinphoneChatMessage object. |
status_cb | #LinphoneChatMessageStateChangeCb status callback invoked when file is downloaded or could not be downloaded |
user_data | user data |
void linphone_chat_message_unref | ( | LinphoneChatMessage * | message | ) |
Release reference to the chat message.
message | LinphoneChatMessage object. |