aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud
AgeCommit message (Collapse)Author
2016-08-24CLOUD: Update TokenRefreshersAlexander Tkachev
Box's, Google Drive's and OneDrive's token refreshing requests have more JSON checks now.
2016-08-24CLOUD: Add JSON-related checks in BoxStorageAlexander Tkachev
2016-08-24CLOUD: Minor TODO fixAlexander Tkachev
2016-08-24CLOUD: Add KEY/SECRET override codeAlexander Tkachev
The following constants must be defined if ENABLE_RELEASE is: * RELEASE_DROPBOX_KEY, * RELEASE_DROPBOX_SECRET, * RELEASE_ONEDRIVE_KEY, * RELEASE_ONEDRIVE_SECRET, * RELEASE_GOOGLE_DRIVE_KEY, * RELEASE_GOOGLE_DRIVE_SECRET, * RELEASE_BOX_KEY, * RELEASE_BOX_SECRET.
2016-08-24ALL: Fix debug, warning and error usageAlexander Tkachev
Added prefixes, used debug(9).
2016-08-24CLOUD: #define all OAuth2/API-related URLsAlexander Tkachev
2016-08-24CLOUD: Upload ListDirectory RequestsAlexander Tkachev
Lots of checks to avoid JSON-related segfaults added.
2016-08-24CLOUD: JANITORIAL: More whitespace fixesEugene Sandulenko
2016-08-24CLOUD: Fix warningEugene Sandulenko
2016-08-24CLOUD: JANITORIAL: Fix code formattingEugene Sandulenko
2016-08-24CLOUD: Update BoxListDirectoryByIdRequestAlexander Tkachev
It now uses special CurlJsonRequest static methods to check whether JSON is an object, has a string or integer parameter.
2016-08-24CLOUD: Updated BoxListDirectoryByIdRequestAlexander Tkachev
It now checks for all keys in JSON to avoid segfaults and prints warnings if passed keys are missing or have wrong types.
2016-08-24CLOUD: Fix format warningEugene Sandulenko
2016-08-24CLOUD: Fix FolderDownloadRequest TODOAlexander Tkachev
2016-08-24CLOUD: Update DownloadRequest's TODOAlexander Tkachev
We need a way to reopen DumpFile if we want DownloadRequest to support restarting.
2016-08-24CLOUD: Fix HTTP response code TODOsAlexander Tkachev
2016-08-24CLOUD: Fix some TODOs in CloudManagerAlexander Tkachev
"No Storage connected!" error message is passed to the error callback now when there is no Storage connected to the CloudManager.
2016-08-24CLOUD: Remove remove() from BoxStoragePeter Bozsó
2016-08-24CLOUD: Remove DropboxStorage::remove()Alexander Tkachev
2016-08-24CLOUD: Fix code formattingPeter Bozsó
2016-08-24CLOUD: Fix `redirect_uri` selection codeAlexander Tkachev
Now it's not hardcoded based on USE_SDL_NET, but one or another value is used depending on currently selected LocalWebserver's port.
2016-08-24JANITORIAL: Remove spaces at the end of the lineAlexander Tkachev
I knew there were some, but I wanted to fix them once, instead of doing it all the time.
2016-08-24CLOUD: Do some refactoring/cleanupAlexander Tkachev
Nothing really major.
2016-08-24CLOUD: Fix Cppcheck warningsAlexander Tkachev
2016-08-24CLOUD: Check whether Storage is working when replacing itAlexander Tkachev
We do that in CloudManager::replaceStorage(), but I've tried to eliminate such possibility by adding a check in the StorageWizardDialog.
2016-08-24CLOUD: Fix CloudManager::connectStorage() memory leakAlexander Tkachev
2016-08-24CLOUD: Fix Dropbox and Google Drive UploadRequestsAlexander Tkachev
Possible segfault there too.
2016-08-24CLOUD: Fix OneDriveUploadRequestAlexander Tkachev
Segfault when given stream is nullptr.
2016-08-24CLOUD: Add default SavesSync callbacksAlexander Tkachev
With OSD messages indicating whether saves sync is complete, cancelled or failed.
2016-08-24CLOUD: Fix OneDriveUploadRequestAlexander Tkachev
OneDrive doesn't accept empty files, so UploadRequest just skips such.
2016-08-24CLOUD: Fix DropboxCreateDirectoryRequestAlexander Tkachev
It now calls success callback with `false` on Dropbox's "path/conflict/folder", indicating that the directory already exists.
2016-08-24CLOUD: Move Dropbox to API v2Alexander Tkachev
We had a few places where their deprecated API v1 was used.
2016-08-24CLOUD: Calculate FolderDownload download speedAlexander Tkachev
2016-08-24CLOUD: Update FolderDownloadRequest::getProgress()Alexander Tkachev
It now is based on downloaded size, not number of files.
2016-08-24CLOUD: Fix IdDownloadRequestAlexander Tkachev
Wrong value was returned in getProgress() on nullptr there.
2016-08-24CLOUD: Update FolderDownloadRequestAlexander Tkachev
It now keeps track of downloaded bytes.
2016-08-24CLOUD: Fix FolderDownloadRequestAlexander Tkachev
It now sends kDownloadEndedCmd on success without waiting to be destructed.
2016-08-24CLOUD: Fix FolderDownloadRequest::getProgress()Alexander Tkachev
Now it doesn't stop on 100 % on last file and it ignores the directories, so it doesn't "jump" suddenly as there are no directories to skip.
2016-08-24CLOUD: Rename _files to _pendingFiles in FolderDownloadRequestPeter Bozsó
2016-08-24CLOUD: Upgrade FolderDownloadRequest::getProgress()Alexander Tkachev
Now NetworkReadStream, which is used in DownloadRequest, which is used in FolderDownloadRequest, returns progress information provided by libcurl.
2016-08-24CLOUD: Update DownloadRequestAlexander Tkachev
It now uses a dynamically allocated 1 MB buffer.
2016-08-24CLOUD: Cleanup in StoragesAlexander Tkachev
2016-08-24CLOUD: Update GoogleDriveStorageAlexander Tkachev
It now derives from IdStorage, so lots of GoogleDrive*Request classes are removed and replaced with generic IdStorage*Request ones.
2016-08-24CLOUD: Add Storage::uploadStreamSupported()Alexander Tkachev
Box uses POST multipart/form requests for uploading. Such requests could be sent with libcurl if we either have a file available or a buffer with this file's contents. SavesSyncRequest was using Storage::upload(ReadStream *), which couldn't be implemented in BoxStorage. Thus I've added a method to test whether such upload is supported and, if it's not, SavesSyncRequest uses the other.
2016-08-24CLOUD: Add BoxUploadRequestAlexander Tkachev
2016-08-24CLOUD: Remove BoxStorage::streamFileById debug() callAlexander Tkachev
2016-08-24CLOUD: Add IdDownloadRequest and IdStreamFileRequestAlexander Tkachev
Used for downloading files in Box.
2016-08-24CLOUD: Fix Storage::streamFile()Alexander Tkachev
2016-08-24CLOUD: Add IdCreateDirectoryRequestAlexander Tkachev
Box gets createDirectoryWithParentId(), so now creating directories works there.
2016-08-24CLOUD: Add IdStorageAlexander Tkachev
This is a special base class for Storages which are using ids instead of paths in their APIs, like Box or Google Drive. This commit makes Box derived from IdStorage.