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
GSoC
GSoC2017
dbtdsilva
libcloudstorage
Commits
59ec9cb0
Commit
59ec9cb0
authored
Jul 07, 2017
by
Diogo Silva
Browse files
cloudprovider: renamed functions for serializing and unserializing
parent
721d60e5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/CloudProvider/CloudProvider.cpp
View file @
59ec9cb0
...
...
@@ -195,7 +195,7 @@ void CloudProvider::initialize(InitData&& data) {
auth
()
->
initialize
(
http
(),
httpd
());
}
std
::
string
ICloudProvider
::
s
erializ
eSession
(
const
std
::
string
&
token
,
std
::
string
ICloudProvider
::
s
tor
eSession
(
const
std
::
string
&
token
,
const
Hints
&
hints
)
{
Json
::
Value
root_json
;
Json
::
Value
hints_json
;
...
...
@@ -210,7 +210,7 @@ std::string ICloudProvider::serializeSession(const std::string& token,
return
fastWriter
.
write
(
root_json
);
}
bool
ICloudProvider
::
unserializ
eSession
(
const
std
::
string
&
serialized_data
,
bool
ICloudProvider
::
restor
eSession
(
const
std
::
string
&
serialized_data
,
std
::
string
&
token
,
Hints
&
hints
)
{
std
::
string
token_tmp
;
Hints
hints_tmp
;
...
...
src/ICloudProvider.h
View file @
59ec9cb0
...
...
@@ -163,8 +163,8 @@ class ICloudProvider {
* @param token token used to be serialized
* @return serialized session with json compact
*/
static
std
::
string
s
erializ
eSession
(
const
std
::
string
&
token
,
const
Hints
&
hints
);
static
std
::
string
s
tor
eSession
(
const
std
::
string
&
token
,
const
Hints
&
hints
);
/**
* Serializes token and hints in a compact json that are useful to be
...
...
@@ -176,8 +176,8 @@ class ICloudProvider {
* @param token pointer to the token unserialized
* @return returns false if fails to unserialized
*/
static
bool
unserializ
eSession
(
const
std
::
string
&
serialized_data
,
std
::
string
&
token
,
Hints
&
hints
);
static
bool
restor
eSession
(
const
std
::
string
&
serialized_data
,
std
::
string
&
token
,
Hints
&
hints
);
/**
* Token which should be saved and reused as a parameter to
...
...
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