From 6a99d9bf65aa5878cb409945ed2bdbdcb916d047 Mon Sep 17 00:00:00 2001 From: chenqiyang <1406175257@qq.com> Date: 星期五, 02 九月 2022 14:56:40 +0800 Subject: [PATCH] 更新linphone sdk --- Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-chat-message-cbs.h | 98 +++++++++++++++++++++++++++++++++++------------- 1 files changed, 71 insertions(+), 27 deletions(-) diff --git a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-chat-message-cbs.h b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-chat-message-cbs.h old mode 100644 new mode 100755 index dc8d71b..c693656 --- a/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-chat-message-cbs.h +++ b/Shared.IOS.HDLLinphoneSDK/Shared.IOS.HDLLinphoneSDK/Library/linphone.framework/Headers/api/c-chat-message-cbs.h @@ -37,103 +37,147 @@ LinphoneChatMessageCbs *linphone_chat_message_cbs_new (void); /** - * Acquire a reference to the chat room callbacks object. - * @param[in] cbs The chat room callbacks object - * @return The same chat room callbacks object + * Acquire a reference to the chat message callbacks object. + * @param cbs The #LinphoneChatMessageCbs object @notnil + * @return The same chat message callbacks object **/ LINPHONE_PUBLIC LinphoneChatMessageCbs * linphone_chat_message_cbs_ref (LinphoneChatMessageCbs *cbs); /** - * Release reference to the chat room callbacks object. - * @param[in] cr The chat room callbacks object + * Release reference to the chat message callbacks object. + * @param cbs The #LinphoneChatMessageCbs object @notnil **/ LINPHONE_PUBLIC void linphone_chat_message_cbs_unref (LinphoneChatMessageCbs *cbs); /** - * Retrieve the user pointer associated with the chat room callbacks object. - * @param[in] cr The chat room callbacks object - * @return The user pointer associated with the chat room callbacks object + * Retrieve the user pointer associated with the chat message callbacks object. + * @param cbs The #LinphoneChatMessageCbs object @notnil + * @return The user pointer associated with the chat message callbacks object. @maybenil **/ LINPHONE_PUBLIC void * linphone_chat_message_cbs_get_user_data (const LinphoneChatMessageCbs *cbs); /** - * Assign a user pointer to the chat room callbacks object. - * @param[in] cr The chat room callbacks object - * @param[in] ud The user pointer to associate with the chat room callbacks object + * Assign a user pointer to the chat message callbacks object. + * @param cbs The #LinphoneChatMessageCbs object @notnil + * @param user_data The user pointer to associate with the chat message callbacks object. @maybenil **/ -LINPHONE_PUBLIC void linphone_chat_message_cbs_set_user_data (LinphoneChatMessageCbs *cbs, void *ud); +LINPHONE_PUBLIC void linphone_chat_message_cbs_set_user_data (LinphoneChatMessageCbs *cbs, void *user_data); /** * Get the message state changed callback. - * @param[in] cbs #LinphoneChatMessageCbs object. + * @param cbs #LinphoneChatMessageCbs object. @notnil * @return The current message state changed callback. */ LINPHONE_PUBLIC LinphoneChatMessageCbsMsgStateChangedCb linphone_chat_message_cbs_get_msg_state_changed (const LinphoneChatMessageCbs *cbs); /** * Set the message state changed callback. - * @param[in] cbs LinphoneChatMessageCbs object. - * @param[in] cb The message state changed callback to be used. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The message state changed callback to be used. */ LINPHONE_PUBLIC void linphone_chat_message_cbs_set_msg_state_changed (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsMsgStateChangedCb cb); /** * Get the file transfer receive callback. - * @param[in] cbs LinphoneChatMessageCbs object. + * @param cbs LinphoneChatMessageCbs object. @notnil * @return The current file transfer receive callback. */ LINPHONE_PUBLIC LinphoneChatMessageCbsFileTransferRecvCb linphone_chat_message_cbs_get_file_transfer_recv (const LinphoneChatMessageCbs *cbs); /** * Set the file transfer receive callback. - * @param[in] cbs LinphoneChatMessageCbs object. - * @param[in] cb The file transfer receive callback to be used. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The file transfer receive callback to be used. */ LINPHONE_PUBLIC void linphone_chat_message_cbs_set_file_transfer_recv (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsFileTransferRecvCb cb); /** * Get the file transfer send callback. - * @param[in] cbs LinphoneChatMessageCbs object. + * @param cbs LinphoneChatMessageCbs object. @notnil * @return The current file transfer send callback. + * @deprecated 17/08/2020 Use #linphone_chat_message_cbs_get_file_transfer_send_chunk() instead. */ LINPHONE_PUBLIC LinphoneChatMessageCbsFileTransferSendCb linphone_chat_message_cbs_get_file_transfer_send (const LinphoneChatMessageCbs *cbs); /** * Set the file transfer send callback. - * @param[in] cbs LinphoneChatMessageCbs object. - * @param[in] cb The file transfer send callback to be used. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The file transfer send callback to be used. + * @deprecated 17/08/2020 Use #linphone_chat_message_cbs_set_file_transfer_send_chunk() instead. */ LINPHONE_PUBLIC void linphone_chat_message_cbs_set_file_transfer_send (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsFileTransferSendCb cb); /** + * Get the file transfer send callback. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @return The current file transfer send callback. + */ +LINPHONE_PUBLIC LinphoneChatMessageCbsFileTransferSendChunkCb linphone_chat_message_cbs_get_file_transfer_send_chunk (const LinphoneChatMessageCbs *cbs); + +/** + * Set the file transfer send callback. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The file transfer send callback to be used. + */ +LINPHONE_PUBLIC void linphone_chat_message_cbs_set_file_transfer_send_chunk (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsFileTransferSendChunkCb cb); + +/** * Get the file transfer progress indication callback. - * @param[in] cbs LinphoneChatMessageCbs object. + * @param cbs LinphoneChatMessageCbs object. @notnil * @return The current file transfer progress indication callback. */ LINPHONE_PUBLIC LinphoneChatMessageCbsFileTransferProgressIndicationCb linphone_chat_message_cbs_get_file_transfer_progress_indication (const LinphoneChatMessageCbs *cbs); /** * Set the file transfer progress indication callback. - * @param[in] cbs LinphoneChatMessageCbs object. - * @param[in] cb The file transfer progress indication callback to be used. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The file transfer progress indication callback to be used. */ LINPHONE_PUBLIC void linphone_chat_message_cbs_set_file_transfer_progress_indication (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsFileTransferProgressIndicationCb cb); /** * Get the participant IMDN state changed callback. - * @param[in] cbs #LinphoneChatMessageCbs object. + * @param cbs #LinphoneChatMessageCbs object. @notnil * @return The current participant IMDN state changed callback. */ LINPHONE_PUBLIC LinphoneChatMessageCbsParticipantImdnStateChangedCb linphone_chat_message_cbs_get_participant_imdn_state_changed (const LinphoneChatMessageCbs *cbs); /** * Set the participant IMDN state changed callback. - * @param[in] cbs LinphoneChatMessageCbs object. - * @param[in] cb The participant IMDN state changed callback to be used. + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The participant IMDN state changed callback to be used. */ LINPHONE_PUBLIC void linphone_chat_message_cbs_set_participant_imdn_state_changed (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsParticipantImdnStateChangedCb cb); /** + * Get the current "ephemeral message timer started" callback. This callback is called when the message deletion timer starts (the message has been viewed). + * @param cbs #LinphoneChatMessageCbs object. @notnil + * @return The current ephemeral message timer started callback. + */ +LINPHONE_PUBLIC LinphoneChatMessageCbsEphemeralMessageTimerStartedCb linphone_chat_message_cbs_get_ephemeral_message_timer_started (const LinphoneChatMessageCbs *cbs); + +/** + * Set the ephemeral message timer started callback. This callback will be used when new message deletion timer starts (the message has been viewed). + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The ephemeral message timer started callback to be used. + */ +LINPHONE_PUBLIC void linphone_chat_message_cbs_set_ephemeral_message_timer_started (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsEphemeralMessageTimerStartedCb cb); + +/** + * Get the ephemeral message deleted callback. This callback is used when a message deletion timer runs out (message is deleted). + * @param cbs #LinphoneChatMessageCbs object. @notnil + * @return The current ephemeral message deleted callback. + */ +LINPHONE_PUBLIC LinphoneChatMessageCbsEphemeralMessageDeletedCb linphone_chat_message_cbs_get_ephemeral_message_deleted (const LinphoneChatMessageCbs *cbs); + +/** + * Set the ephemeral message deleted callback. This callback is used when new message deletion timer runs out (message is deleted). + * @param cbs LinphoneChatMessageCbs object. @notnil + * @param cb The ephemeral message deleted callback to be used. + */ +LINPHONE_PUBLIC void linphone_chat_message_cbs_set_ephemeral_message_deleted (LinphoneChatMessageCbs *cbs, LinphoneChatMessageCbsEphemeralMessageDeletedCb cb); + +/** * @} */ -- Gitblit v1.8.0