aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/id
diff options
context:
space:
mode:
authorAlexander Tkachev2019-07-15 21:06:00 +0700
committerMatan Bareket2019-07-30 14:51:41 -0400
commit0ee0e2d537e6217278e75ec59c216936896bf6cb (patch)
tree223ac53d5aefd91766e03d369cfeee32a65dc5e7 /backends/cloud/id
parent8333cce498a0c600ff42e58d644f9dad7a10068b (diff)
downloadscummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.tar.gz
scummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.tar.bz2
scummvm-rg350-0ee0e2d537e6217278e75ec59c216936896bf6cb.zip
CLOUD: Update GoogleDriveStorage and BoxStorage to auth via cloud.scummvm.org
Diffstat (limited to 'backends/cloud/id')
-rw-r--r--backends/cloud/id/idstorage.cpp5
-rw-r--r--backends/cloud/id/idstorage.h6
2 files changed, 9 insertions, 2 deletions
diff --git a/backends/cloud/id/idstorage.cpp b/backends/cloud/id/idstorage.cpp
index 44427ac4d2..dd8805ea9b 100644
--- a/backends/cloud/id/idstorage.cpp
+++ b/backends/cloud/id/idstorage.cpp
@@ -33,6 +33,11 @@
namespace Cloud {
namespace Id {
+IdStorage::IdStorage() {}
+
+IdStorage::IdStorage(Common::String token, Common::String refreshToken):
+ BaseStorage(token, refreshToken) {}
+
IdStorage::~IdStorage() {}
void IdStorage::printFiles(FileArrayResponse response) {
diff --git a/backends/cloud/id/idstorage.h b/backends/cloud/id/idstorage.h
index 946a792b42..35a320284e 100644
--- a/backends/cloud/id/idstorage.h
+++ b/backends/cloud/id/idstorage.h
@@ -23,7 +23,7 @@
#ifndef BACKENDS_CLOUD_ID_IDSTORAGE_H
#define BACKENDS_CLOUD_ID_IDSTORAGE_H
-#include "backends/cloud/storage.h"
+#include "backends/cloud/basestorage.h"
#include "backends/networking/curl/curljsonrequest.h"
/*
@@ -43,7 +43,7 @@
namespace Cloud {
namespace Id {
-class IdStorage: public Cloud::Storage {
+class IdStorage: public Cloud::BaseStorage {
protected:
void printFiles(FileArrayResponse response);
void printBool(BoolResponse response);
@@ -52,6 +52,8 @@ protected:
ListDirectoryCallback getPrintFilesCallback();
public:
+ IdStorage();
+ IdStorage(Common::String token, Common::String refreshToken);
virtual ~IdStorage();
/** Public Cloud API comes down there. */