Commit 1d56d86f authored by Paweł Wegner's avatar Paweł Wegner
Browse files

Dropbox: changed reauthorization policy.

parent b119aa9a
......@@ -42,6 +42,8 @@ IItem::Pointer Dropbox::rootDirectory() const {
return make_unique<Item>("/", "", IItem::FileType::Directory);
}
bool Dropbox::reauthorize(int code) const { return code == 400 || code == 401; }
ICloudProvider::GetItemDataRequest::Pointer Dropbox::getItemDataAsync(
const std::string& id, GetItemDataCallback callback) {
return make_unique<cloudstorage::GetItemDataRequest>(
......
......@@ -34,6 +34,7 @@ class Dropbox : public CloudProvider {
std::string name() const;
IItem::Pointer rootDirectory() const;
bool reauthorize(int code) const;
GetItemDataRequest::Pointer getItemDataAsync(const std::string& id,
GetItemDataCallback);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment