CLOUD: Add GoogleDriveStorage

It has its own GoogleDriveTokenRefresher and knows how to do info().

This commit also contains JSON int -> long long int fix and
CurlJsonRequest '\n' -> ' ' fix.
This commit is contained in:
Alexander Tkachev 2016-06-03 15:14:12 +06:00
parent b02b16ab98
commit da3b7bd8d9
10 changed files with 660 additions and 14 deletions

View file

@ -300,7 +300,7 @@ JSONValue *JSONValue::parse(const char **data) {
bool neg = **data == '-';
if (neg) (*data)++;
int integer = 0;
long long int integer = 0;
double number = 0.0;
bool onlyInteger = true;
@ -568,7 +568,7 @@ JSONValue::JSONValue(double numberValue) {
*
* @param int numberValue The number to use as the value
*/
JSONValue::JSONValue(int numberValue) {
JSONValue::JSONValue(long long int numberValue) {
_type = JSONType_IntegerNumber;
_integerValue = numberValue;
}
@ -794,7 +794,7 @@ double JSONValue::asNumber() const {
*
* @return int Returns the number value
*/
int JSONValue::asIntegerNumber() const {
long long int JSONValue::asIntegerNumber() const {
return _integerValue;
}