Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
51ebe365
Commit
51ebe365
authored
Sep 25, 2012
by
Aleksei Kanash
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UBDownloadHttpFile "downloadFinished" signal changed to use new interface of boardController.
parent
385a1c8e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
UBDownloadManager.cpp
src/core/UBDownloadManager.cpp
+2
-2
UBDownloadManager.h
src/core/UBDownloadManager.h
+1
-1
No files found.
src/core/UBDownloadManager.cpp
View file @
51ebe365
...
...
@@ -367,7 +367,7 @@ void UBDownloadManager::startFileDownload(sDownloadFileDesc desc)
{
UBDownloadHttpFile
*
http
=
new
UBDownloadHttpFile
(
desc
.
id
,
this
);
connect
(
http
,
SIGNAL
(
downloadProgress
(
int
,
qint64
,
qint64
)),
this
,
SLOT
(
onDownloadProgress
(
int
,
qint64
,
qint64
)));
connect
(
http
,
SIGNAL
(
downloadFinished
(
int
,
bool
,
QUrl
,
Q
String
,
QByteArray
,
QPointF
,
QSize
,
bool
)),
this
,
SLOT
(
onDownloadFinished
(
int
,
boo
l
,
QUrl
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)));
connect
(
http
,
SIGNAL
(
downloadFinished
(
int
,
bool
,
QUrl
,
Q
Url
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)),
this
,
SLOT
(
onDownloadFinished
(
int
,
bool
,
QUr
l
,
QUrl
,
QString
,
QByteArray
,
QPointF
,
QSize
,
bool
)));
//the desc.srcUrl is encoded. So we have to decode it before.
QUrl
url
;
...
...
@@ -558,7 +558,7 @@ void UBDownloadHttpFile::onDownloadFinished(bool pSuccess, QUrl sourceUrl, QStri
if
(
pSuccess
)
{
// Notify the end of the download
emit
downloadFinished
(
mId
,
pSuccess
,
sourceUrl
,
pContentTypeHeader
,
pData
,
pPos
,
pSize
,
isBackground
);
emit
downloadFinished
(
mId
,
pSuccess
,
sourceUrl
,
sourceUrl
,
pContentTypeHeader
,
pData
,
pPos
,
pSize
,
isBackground
);
}
else
{
...
...
src/core/UBDownloadManager.h
View file @
51ebe365
...
...
@@ -76,7 +76,7 @@ public:
signals
:
void
downloadProgress
(
int
id
,
qint64
current
,
qint64
total
);
void
downloadFinished
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
QString
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
);
void
downloadFinished
(
int
id
,
bool
pSuccess
,
QUrl
sourceUrl
,
Q
Url
contentUrl
,
Q
String
pContentTypeHeader
,
QByteArray
pData
,
QPointF
pPos
,
QSize
pSize
,
bool
isBackground
);
void
downloadError
(
int
id
);
private
slots
:
...
...
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