Renamed method as it is also true for uploads

This commit is contained in:
Sylvain Berfini 2018-03-06 18:00:05 +01:00
parent 9092d88775
commit 0684cedc21
4 changed files with 7 additions and 7 deletions

View file

@ -363,11 +363,11 @@ LINPHONE_PUBLIC bool_t linphone_chat_message_has_text_content(const LinphoneChat
LINPHONE_PUBLIC const char* linphone_chat_message_get_text_content(const LinphoneChatMessage *msg);
/**
* Gets whether or not a received file is currently being downloaded
* Gets whether or not a file is currently being downloaded or uploaded
* @param[in] msg LinphoneChatMessage object
* @return true if download is in progress, false otherwise
* @return true if download or upload is in progress, false otherwise
*/
LINPHONE_PUBLIC bool_t linphone_chat_message_is_download_in_progress(LinphoneChatMessage *msg);
LINPHONE_PUBLIC bool_t linphone_chat_message_is_file_transfer_in_progress(LinphoneChatMessage *msg);
/**
* @}

View file

@ -242,8 +242,8 @@ const char *linphone_chat_message_get_text_content(const LinphoneChatMessage *ms
return L_STRING_TO_C(msg->cache.textContentBody);
}
bool_t linphone_chat_message_is_download_in_progress(LinphoneChatMessage *msg) {
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->isDownloadInProgress();
bool_t linphone_chat_message_is_file_transfer_in_progress(LinphoneChatMessage *msg) {
return L_GET_CPP_PTR_FROM_C_OBJECT(msg)->isFileTransferInProgress();
}
// =============================================================================

View file

@ -1040,7 +1040,7 @@ bool ChatMessage::downloadFile(FileTransferContent &fileTransferContent) {
return d->fileTransferChatMessageModifier.downloadFile(getSharedFromThis(), &fileTransferContent);
}
bool ChatMessage::isDownloadInProgress() {
bool ChatMessage::isFileTransferInProgress() {
L_D();
return d->fileTransferChatMessageModifier.isFileTransferInProgressAndValid();
}

View file

@ -106,7 +106,7 @@ public:
void removeCustomHeader (const std::string &headerName);
bool downloadFile (FileTransferContent &content);
bool isDownloadInProgress();
bool isFileTransferInProgress();
private:
ChatMessage (const std::shared_ptr<AbstractChatRoom> &chatRoom, ChatMessage::Direction direction);