Alexander Tkachev
ddb1a6ccb6
GUI: Upgrade DownloadDialog
...
It now shows the remote and local directories and a progress bar.
Storage now shows OSD messages on download success and failure.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b8ee9d4e7d
CLOUD: Add FolderDownload-related methods in Storage
...
CloudManager's shortcuts are added too.
The idea is to keep FolderDownload request within Storage, and provide
necessary means to access it. The download is started and cancelled
through the DownloadDialog.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
f3a392359b
CLOUD: Fix finishSuccess() warning
2016-08-24 16:07:55 +06:00
Alexander Tkachev
60add0df1b
CLOUD: Update Requests to use StorageFile::id()
...
Only two places to update, as others still require id resolving.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
eb63b50b7f
CLOUD: Refactor Request
...
Added ErrorResponse and ErrorCallback. Each Request now has an
ErrorCallback, which should be called instead of usual callback in case
of failure.
2016-08-24 16:07:55 +06:00
Alexander Tkachev
aa987e5c52
CLOUD: Add ListDirectoryStatus struct
...
It contains flags to indicate whether Request was interrupted or failed,
so dependent Requests may see that list is incomplete.
2016-08-24 16:07:55 +06:00
Peter Bozsó and Alexander Tkachev
86d5b1b2e1
Remove some unnecessary blank lines
2016-08-24 16:07:55 +06:00
Peter Bozsó and Alexander Tkachev
81c34adaef
Fix comment formatting
2016-08-24 16:07:55 +06:00
Alexander Tkachev
b74d7a6861
CLOUD: Fix Requests destructors
...
I forgot to delete callbacks!
2016-08-24 16:07:55 +06:00
Alexander Tkachev
0ef1cda172
CLOUD: Add FolderDownloadRequest
...
Uses Storage's listDirectory() and download() methods to download
contents.
2016-08-24 16:07:55 +06:00