Commit 0684cedc authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Renamed method as it is also true for uploads

parent 9092d887
......@@ -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);
/**
* @}
......
......@@ -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();
}
// =============================================================================
......
......@@ -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();
}
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment