Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liblinphone
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
10
Issues
10
List
Board
Labels
Milestones
Merge Requests
22
Merge Requests
22
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
liblinphone
Commits
0684cedc
Commit
0684cedc
authored
Mar 06, 2018
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Renamed method as it is also true for uploads
parent
9092d887
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
c-chat-message.h
include/linphone/api/c-chat-message.h
+3
-3
c-chat-message.cpp
src/c-wrapper/api/c-chat-message.cpp
+2
-2
chat-message.cpp
src/chat/chat-message/chat-message.cpp
+1
-1
chat-message.h
src/chat/chat-message/chat-message.h
+1
-1
No files found.
include/linphone/api/c-chat-message.h
View file @
0684cedc
...
...
@@ -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 down
loaded
* Gets whether or not a
file is currently being downloaded or up
loaded
* @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
);
/**
* @}
...
...
src/c-wrapper/api/c-chat-message.cpp
View file @
0684cedc
...
...
@@ -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
)
->
is
Download
InProgress
();
bool_t
linphone_chat_message_is_
file_transfer
_in_progress
(
LinphoneChatMessage
*
msg
)
{
return
L_GET_CPP_PTR_FROM_C_OBJECT
(
msg
)
->
is
FileTransfer
InProgress
();
}
// =============================================================================
...
...
src/chat/chat-message/chat-message.cpp
View file @
0684cedc
...
...
@@ -1040,7 +1040,7 @@ bool ChatMessage::downloadFile(FileTransferContent &fileTransferContent) {
return
d
->
fileTransferChatMessageModifier
.
downloadFile
(
getSharedFromThis
(),
&
fileTransferContent
);
}
bool
ChatMessage
::
is
Download
InProgress
()
{
bool
ChatMessage
::
is
FileTransfer
InProgress
()
{
L_D
();
return
d
->
fileTransferChatMessageModifier
.
isFileTransferInProgressAndValid
();
}
...
...
src/chat/chat-message/chat-message.h
View file @
0684cedc
...
...
@@ -106,7 +106,7 @@ public:
void
removeCustomHeader
(
const
std
::
string
&
headerName
);
bool
downloadFile
(
FileTransferContent
&
content
);
bool
is
Download
InProgress
();
bool
is
FileTransfer
InProgress
();
private
:
ChatMessage
(
const
std
::
shared_ptr
<
AbstractChatRoom
>
&
chatRoom
,
ChatMessage
::
Direction
direction
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment