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
21
Merge Requests
21
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
a36a3c55
Commit
a36a3c55
authored
Mar 15, 2018
by
Sylvain Berfini
🎩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Finished fake file transfer xml from external body url
parent
3fd55c4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
file-transfer-chat-message-modifier.cpp
src/chat/modifier/file-transfer-chat-message-modifier.cpp
+10
-1
No files found.
src/chat/modifier/file-transfer-chat-message-modifier.cpp
View file @
a36a3c55
...
...
@@ -969,7 +969,16 @@ void FileTransferChatMessageModifier::releaseHttpRequest () {
}
string
FileTransferChatMessageModifier
::
createFakeFileTransferFromUrl
(
const
string
&
url
)
{
return
""
;
//TODO
string
fileName
=
url
.
substr
(
url
.
find_last_of
(
"/"
)
+
1
);
stringstream
fakeXml
;
fakeXml
<<
"<?xml version=
\"
1.0
\"
encoding=
\"
UTF-8
\"
?><file xmlns=
\"
urn:gsma:params:xml:ns:rcs:rcs:fthttp
\"
>
\r\n
"
;
fakeXml
<<
"<file-info type=
\"
file
\"
>
\r\n
"
;
fakeXml
<<
"<file-name>"
<<
fileName
<<
"</file-name>
\r\n
"
;
fakeXml
<<
"<content-type>application/binary</content-type>
\r\n
"
;
fakeXml
<<
"<data url =
\"
"
<<
url
<<
"
\"
/>
\r\n
"
;
fakeXml
<<
"</file-info>
\r\n
"
;
fakeXml
<<
"</file>"
;
return
fakeXml
.
str
();
}
LINPHONE_END_NAMESPACE
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