aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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-24GUI: Change 'OK' to 'Hide' on close button of DownloadDialogPeter Bozsó
2016-08-24CLOUD: Rename _files to _pendingFiles in FolderDownloadRequestPeter Bozsó
2016-08-24CLOUD: Add openUrl() for POSIXAlexander Tkachev
2016-08-24GUI: Fix StorageWizardDialogAlexander Tkachev
It now shows a MessageDialog (its message label is hidden in some cases).
2016-08-24GUI: Add "Open URL" button in StorageWizardDialogAlexander Tkachev
It uses Networking::Browser::openUrl().
2016-08-24CLOUD: Add Networking::Browser::openUrl() sketchAlexander Tkachev
Only Windows' shellExecute() now.
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 CurlJsonRequestAlexander Tkachev
Uses dynamically allocated buffer now.
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: Update NetworkReadStream and CurlRequestAlexander Tkachev
Now those support POST multipart/form upload.
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.
2016-08-24CLOUD: Add BoxListDirectoryRequestAlexander Tkachev
And used in it BoxResolveIdRequest. TODO: make some generic ResolveIdRequest and ListDirectoryRequest for id-based storages. It's really similar, I just had to change a few details in GoogleDrive ListDirectory and ResolveId requests.
2016-08-24CLOUD: Add BoxListDirectoryByIdRequestAlexander Tkachev
Similarly to Google Drive, Box uses only ids of files. That means id resolving would be slow.
2016-08-24CLOUD: Add BoxTokenRefresher and BoxStorage::info()Alexander Tkachev
BoxTokenRefresher does refresh if HTTP 401 is returned by the server. To test refresher, BoxStorage::info() was added.
2016-08-24CLOUD: Redirect to "/files" from "/"Alexander Tkachev
"/" is used to receive "?code", but when there is no such parameter passed, it's safe to redirect user to the "/files".
2016-08-24CLOUD: Add BoxStorage sketchAlexander Tkachev
2016-08-24GUI: Fix Options Cloud tab widgets visibilityAlexander Tkachev
As it's controlled by ScrollContainer also, we have to explicitly setVisible(true) for "always" visible widgets.
2016-08-24GUI: Fix DownloadDialog detectionAlexander Tkachev
Now it calls Launcher directly, so it updates games list on success.
2016-08-24CLOUD: Add LocalWebserver::resolveAddress()Alexander Tkachev
Works on Linux too. And, well, I'm bad in adding backends, so it's just #ifdefed there.
2016-08-24CLOUD: Add "directory" form for webserver "/upload"Alexander Tkachev
The attribute is Chrome-only.
2016-08-24CLOUD: Update "/files" hardcoded response templateAlexander Tkachev
2016-08-24GUI: Minor Container fixesAlexander Tkachev
I should've done these in PR, I guess.
2016-08-24GUI: Remove unnecessary DownloadDialog's flagAlexander Tkachev
2016-08-24GUI: Fix Container's visibility issueAlexander Tkachev
Now it respects outer code's decision to hide or move some widgets around. Outer code must be CommandReceiver which is set as ScrollContainer's target.
2016-08-24GUI: Use Container in the Cloud tabAlexander Tkachev
It has a visibility issue, but we're already working on it.
2016-08-24CLOUD: Add auto-detect for downloaded gameAlexander Tkachev
If that's the game, that is. Method is copy-pasted from Launcher, but fixed not to ask the directory and thus doesn't contain the loop.
2016-08-24CLOUD: Switch to "multiple" files uploadingAlexander Tkachev
Still doesn't support directories uploading.
2016-08-24CLOUD: Fix gradient on LocalWebserver's pagesAlexander Tkachev
It was starting over every 100vh (each screen).
2016-08-24CLOUD: Fix '\' encoding backAlexander Tkachev
2016-08-24CLOUD: Fix Client's bufferAlexander Tkachev
2016-08-24CLOUD: Cleanup in HandlersAlexander Tkachev
Simplified some stuff here and there by using HandlerUtils static methods.
2016-08-24CLOUD: Cleanup in LocalWebserverAlexander Tkachev
2016-08-24CLOUD: More cleanup in ClientAlexander Tkachev
2016-08-24CLOUD: Cleanup in Reader and ClientAlexander Tkachev
2016-08-24CLOUD: Cleanup in UploadFileClientHandlerAlexander Tkachev
Adds Client::noMoreContent() and Reader::noMoreContent(), which return true when whole client's request was read.
2016-08-24CLOUD: Cleanup in UploadFileHandlerAlexander Tkachev
2016-08-24CLOUD: Add UploadFileClientHandlerAlexander Tkachev
Now Client reads the first headers block, then LocalWebserver decides which Handler to use. In case of "/upload", UploadFileHandler is used. But now it only knows the "path" parameter. If that's valid, actual UploadFileClientHandler is created, which reads the contents of the request and, when finds there an "upload_file" field, starts saving it in the directory specified by "path". With that we don't need temp files approach from Reader class.
2016-08-24CLOUD: Fix quotes encodingAlexander Tkachev
2016-08-24CLOUD: Put "/upload" "path" parameter in the URLAlexander Tkachev
2016-08-24CLOUD: Add UploadFileHandlerAlexander Tkachev