Liblinphone
5.4.0
|
Functions | |
LinphoneChatMessage * | linphone_chat_message_ref (LinphoneChatMessage *message) |
Acquires a reference to the chat message. More... | |
void | linphone_chat_message_unref (LinphoneChatMessage *message) |
Releases reference to the chat message. More... | |
void * | linphone_chat_message_get_user_data (const LinphoneChatMessage *message) |
Retrieves the user pointer associated with the chat message. More... | |
void | linphone_chat_message_set_user_data (LinphoneChatMessage *message, void *user_data) |
Assigns 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) |
Messages can carry external body as defined by rfc2017. More... | |
void | linphone_chat_message_set_external_body_url (LinphoneChatMessage *message, const char *external_body_url) |
Messages can carry external body as defined by rfc2017. More... | |
time_t | linphone_chat_message_get_time (const LinphoneChatMessage *message) |
Gets 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) |
Gets origin of the message. More... | |
const LinphoneAddress * | linphone_chat_message_get_to_address (const LinphoneChatMessage *message) |
Gets destination of the message. More... | |
const char * | linphone_chat_message_get_content_type (const LinphoneChatMessage *message) |
Gets the content type of a chat message. More... | |
void | linphone_chat_message_set_content_type (LinphoneChatMessage *message, const char *content_type) |
Sets the content type of a chat message. More... | |
const char * | linphone_chat_message_get_utf8_text (const LinphoneChatMessage *message) |
Gets text part of this message. More... | |
int | linphone_chat_message_set_utf8_text (LinphoneChatMessage *message, const char *text) |
Sets a text to be sent, given as a string of UTF-8 characters. 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) |
Gets if a chat message is to be stored. More... | |
void | linphone_chat_message_set_to_be_stored (LinphoneChatMessage *message, bool_t to_be_stored) |
Sets 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) |
Gets the state of the message. More... | |
bool_t | linphone_chat_message_is_secured (const LinphoneChatMessage *message) |
Gets if the message was end-to-end encrypted when transferred. More... | |
LinphoneContent * | linphone_chat_message_get_file_transfer_information (const LinphoneChatMessage *message) |
Gets the file transfer information (used by callbacks to recover informations during a rcs file transfer) More... | |
bool_t | linphone_chat_message_download_content (LinphoneChatMessage *message, LinphoneContent *content) |
Starts the download of the LinphoneContent referenced in the LinphoneChatMessage from remote server. More... | |
bool_t | linphone_chat_message_download_contents (LinphoneChatMessage *message) |
Starts the download of all the LinphoneContent objects representing file transfers included in the message (linphone_content_is_file_transfer() method returns TRUE). More... | |
void | linphone_chat_message_cancel_file_transfer (LinphoneChatMessage *message) |
Cancels an ongoing file transfer attached to this message (upload or download). More... | |
void | linphone_chat_message_send (LinphoneChatMessage *message) |
Sends a chat message. More... | |
const LinphoneAddress * | linphone_chat_message_get_peer_address (const LinphoneChatMessage *message) |
Returns the peer (remote) address of the message. More... | |
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) |
Adds custom headers to the message. More... | |
const char * | linphone_chat_message_get_custom_header (const LinphoneChatMessage *message, const char *header_name) |
Retrieves 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... | |
void | linphone_chat_message_mark_as_read (LinphoneChatMessage *message) |
Marks the message as read. More... | |
LinphoneReason | linphone_chat_message_get_reason (const LinphoneChatMessage *message) |
const LinphoneErrorInfo * | linphone_chat_message_get_error_info (const LinphoneChatMessage *message) |
Gets 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) |
Fulfills a chat message character by character and send the character immediately as real-time text (RFC4103 / T.140) or as Baudot tones. More... | |
void | linphone_chat_message_add_callbacks (LinphoneChatMessage *message, LinphoneChatMessageCbs *cbs) |
Adds a listener in order to be notified of LinphoneChatMessage events. More... | |
void | linphone_chat_message_remove_callbacks (LinphoneChatMessage *message, LinphoneChatMessageCbs *cbs) |
Removes a listener from a LinphoneChatMessage. More... | |
LinphoneChatMessageCbs * | linphone_chat_message_get_current_callbacks (const LinphoneChatMessage *message) |
Gets the current LinphoneChatMessageCbs being invoked, if any. 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 text/plain with the provided string, and attach it to the message. 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 SIP call-id accociated with the message. More... | |
bctbx_list_t * | linphone_chat_message_get_reactions (const LinphoneChatMessage *message) |
Gets the list of reactions received for this chat message. More... | |
const LinphoneChatMessageReaction * | linphone_chat_message_get_own_reaction (const LinphoneChatMessage *message) |
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_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 | ||
) |
Adds 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 | ||
) |
Adds 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 text/plain with the provided string, and attach it to the message.
message | LinphoneChatMessage object. |
text | The text to add to the message. |
void linphone_chat_message_cancel_file_transfer | ( | LinphoneChatMessage * | message | ) |
Cancels 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 | ||
) |
Starts 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). |
bool_t linphone_chat_message_download_contents | ( | LinphoneChatMessage * | message | ) |
Starts the download of all the LinphoneContent objects representing file transfers included in the message (linphone_content_is_file_transfer() method returns TRUE).
message | LinphoneChatMessage object. |
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 SIP call-id 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 | ) |
Gets 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 being invoked, if any.
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 | ||
) |
Retrieves 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 | ) |
Gets full details about delivery error of a chat message.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_external_body_url | ( | const LinphoneChatMessage * | message | ) |
Messages 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 | ) |
Gets the file transfer information (used by callbacks 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 | ) |
Gets 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 * | message | ) |
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) |
const LinphoneAddress* linphone_chat_message_get_peer_address | ( | const LinphoneChatMessage * | message | ) |
Returns the peer (remote) address of the message.
message | the LinphoneChatMessage object |
bctbx_list_t* linphone_chat_message_get_reactions | ( | const LinphoneChatMessage * | message | ) |
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 | ) |
Gets 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 | ) |
Gets the time the message was sent.
message | LinphoneChatMessage object. |
const LinphoneAddress* linphone_chat_message_get_to_address | ( | const LinphoneChatMessage * | message | ) |
Gets destination of the message.
message | LinphoneChatMessage object. |
bool_t linphone_chat_message_get_to_be_stored | ( | const LinphoneChatMessage * | message | ) |
Gets if a chat message is to be stored.
message | LinphoneChatMessage object. |
void* linphone_chat_message_get_user_data | ( | const LinphoneChatMessage * | message | ) |
Retrieves the user pointer associated with the chat message.
message | LinphoneChatMessage object. |
const char* linphone_chat_message_get_utf8_text | ( | const LinphoneChatMessage * | message | ) |
Gets text part of this message.
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 | ) |
Gets if the message was end-to-end encrypted when transferred.
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. |
void linphone_chat_message_mark_as_read | ( | LinphoneChatMessage * | message | ) |
Marks the message as read.
Only triggers LinphoneChatRoomCbsChatRoomReadCb if it was the last unread message.
message | LinphoneChatMessage object to mark as read. |
LinphoneStatus linphone_chat_message_put_char | ( | LinphoneChatMessage * | message, |
uint32_t | character | ||
) |
Fulfills a chat message character by character and send the character immediately as real-time text (RFC4103 / T.140) or as Baudot tones.
The method used to send the character depends on if real-time text is enabled or not. If it is, real-time text is of course used, otherwise Baudot will be used if it is enabled in the LinphoneCore (see linphone_core_enable_baudot()). If real-time text is used, the LinphoneChatRoom the message was created from must be a real-time text capable chat room: it must be obtained by placing or receiving a call with real-time text capabilities (see linphone_call_params_enable_realtime_text() ), and getting the LinphoneChatRoom interface from the call with linphone_call_get_chat_room(). When the message is terminated (ie a new line needs to be started), use linphone_chat_message_send() in order to trigger the sending of the new line character and have the full message (comprising all characters sent so far) stored in local database.
message | LinphoneChatMessage object. |
character | The character to send (T.140 char for real-time text). |
LinphoneChatMessage* linphone_chat_message_ref | ( | LinphoneChatMessage * | message | ) |
Acquires a reference to the chat message.
message | LinphoneChatMessage object. |
void linphone_chat_message_remove_callbacks | ( | LinphoneChatMessage * | message, |
LinphoneChatMessageCbs * | cbs | ||
) |
Removes 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 |
void linphone_chat_message_send | ( | LinphoneChatMessage * | message | ) |
Sends 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 | ||
) |
Sets 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 | ||
) |
Messages 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 | ||
) |
Sets 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 | ||
) |
Assigns 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 | ||
) |
Sets a text to be sent, given as a string of UTF-8 characters.
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 | ) |
Releases reference to the chat message.
message | LinphoneChatMessage object. |