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
Jamal Dahbur
libcloudstorage
Commits
4833cecc
Commit
4833cecc
authored
Feb 14, 2018
by
Paweł Wegner
Browse files
IAuth: use GenericCallback.
parent
348e5959
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/IAuth.h
View file @
4833cecc
...
...
@@ -29,13 +29,14 @@
#include
"ICloudProvider.h"
#include
"IHttpServer.h"
#include
"IRequest.h"
namespace
cloudstorage
{
class
IAuth
{
public:
using
Pointer
=
std
::
unique_ptr
<
IAuth
>
;
using
CodeReceived
=
std
::
function
<
void
(
EitherError
<
std
::
string
>
)
>
;
using
CodeReceived
=
GenericCallback
<
EitherError
<
std
::
string
>>
;
struct
Token
{
using
Pointer
=
std
::
unique_ptr
<
Token
>
;
...
...
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