scummvm/backends/cloud
Alexander Tkachev e743a65636 CLOUD: Add Dropbox into CloudManager's configs
This commit adds:
* ConfMan's new "cloud" domain;
* CloudManager's init() method, where it loads keys from "cloud" configs
domain;
* CurlJsonRequest's addHeader() and addPostField() methods;
* temporary Storage's printInfo() method;
* DropboxStorage's implementation of printInfo(), which is using access
token and user id;
* DropboxStorage's loadFromConfig() static method to load access token
and user id from configs and create a Storage instance with those;
* temporary DropboxStorage's authThroughConsole() static method, which
guides user through auth process from the console.

So, in CloudManager's init() implementation ScummVM checks that there is
"current_storage_type" key in "cloud" domain of configs, and loads
corresponding storage if there is such key.

If there is no such key, ScummVM offers user to auth with Dropbox.
That's done through console, and thus it's temporary (it also requires
restarting ScummVM twice and manually editing config.ini file).
2016-08-24 16:07:55 +06:00
..
dropbox CLOUD: Add Dropbox into CloudManager's configs 2016-08-24 16:07:55 +06:00
manager.cpp CLOUD: Add Dropbox into CloudManager's configs 2016-08-24 16:07:55 +06:00
manager.h CLOUD: Add Dropbox into CloudManager's configs 2016-08-24 16:07:55 +06:00
request.h CLOUD: Rewrite NetworkReadStream 2016-08-24 16:07:55 +06:00
storage.cpp CLOUD: Add ConnectionManager and NetworkReadStream 2016-08-24 16:07:55 +06:00
storage.h CLOUD: Add Dropbox into CloudManager's configs 2016-08-24 16:07:55 +06:00