Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paweł Wegner
libcloudstorage
Commits
1d56d86f
Commit
1d56d86f
authored
Jul 12, 2016
by
Paweł Wegner
Browse files
Dropbox: changed reauthorization policy.
parent
b119aa9a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CloudProvider/Dropbox.cpp
View file @
1d56d86f
...
...
@@ -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
>
(
...
...
src/CloudProvider/Dropbox.h
View file @
1d56d86f
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment