mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-20 04:28:10 +00:00
Actually this is not needed. The file name after file transfer is in a Content with the object type (ie image/jpeg)
This commit is contained in:
parent
adf574413b
commit
25ea1d7c69
2 changed files with 0 additions and 26 deletions
|
|
@ -361,13 +361,6 @@ LINPHONE_PUBLIC void linphone_chat_message_add_text_content(LinphoneChatMessage
|
|||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_chat_message_has_text_content(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* Returns true if the chat message has a file transfer content
|
||||
* @param[in] msg LinphoneChatMessage object
|
||||
* @return true if it has one, false otherwise
|
||||
*/
|
||||
LINPHONE_PUBLIC bool_t linphone_chat_message_has_file_transfer_content(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* Gets the text content if available as a string
|
||||
* @param[in] msg LinphoneChatMessage object
|
||||
|
|
@ -375,13 +368,6 @@ LINPHONE_PUBLIC bool_t linphone_chat_message_has_file_transfer_content(const Lin
|
|||
*/
|
||||
LINPHONE_PUBLIC const char* linphone_chat_message_get_text_content(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* Gets the file transfer content if available as a string
|
||||
* @param[in] msg LinphoneChatMessage object
|
||||
* @return the file name if available, null otherwise
|
||||
*/
|
||||
LINPHONE_PUBLIC const char* linphone_chat_message_get_file_transfer_content_file_name(const LinphoneChatMessage *msg);
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -309,10 +309,6 @@ bool_t linphone_chat_message_has_text_content(const LinphoneChatMessage *msg) {
|
|||
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->hasTextContent();
|
||||
}
|
||||
|
||||
bool_t linphone_chat_message_has_file_transfer_content(const LinphoneChatMessage *msg) {
|
||||
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->hasFileTransferContent();
|
||||
}
|
||||
|
||||
const char * linphone_chat_message_get_text_content(const LinphoneChatMessage *msg) {
|
||||
LinphonePrivate::Content content = L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getTextContent();
|
||||
if (content == LinphonePrivate::Content::Empty) {
|
||||
|
|
@ -321,14 +317,6 @@ const char * linphone_chat_message_get_text_content(const LinphoneChatMessage *m
|
|||
return L_STRING_TO_C(content.getBodyAsString());
|
||||
}
|
||||
|
||||
const char* linphone_chat_message_get_file_transfer_content_file_name(const LinphoneChatMessage *msg) {
|
||||
LinphonePrivate::Content content = L_GET_CPP_PTR_FROM_C_OBJECT(msg)->getFileTransferContent();
|
||||
if (content == LinphonePrivate::Content::Empty) {
|
||||
return NULL;
|
||||
}
|
||||
return L_STRING_TO_C(content.getContentDisposition());
|
||||
}
|
||||
|
||||
// =============================================================================
|
||||
// Old listener
|
||||
// =============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue