Google APIs Client Library for C++
|
Manages callbacks for outstanding authorization code requests. More...
#include "client/auth/oauth2_pending_authorizations.h"
Public Member Functions | |
OAuth2PendingAuthorizations () | |
Standard constructor. | |
virtual | ~OAuth2PendingAuthorizations () |
Standard destructor. | |
void | CancelCallback (CALLBACK *callback) |
int | AddAuthorizationCodeHandler (CALLBACK *handler) LOCKS_EXCLUDED(mutex_) |
Adds a notification handler, returning the state value to associate with. | |
CALLBACK * | FindAndRemoveHandlerForKey (int key) LOCKS_EXCLUDED(mutex_) |
Looks up registered handler for key and removes it if found. |
Manages callbacks for outstanding authorization code requests.
This class is threadsafe.
OAuth2PendingAuthorizations | ( | ) | [inline] |
Standard constructor.
virtual ~OAuth2PendingAuthorizations | ( | ) | [inline, virtual] |
Standard destructor.
int AddAuthorizationCodeHandler | ( | CALLBACK * | handler | ) | [inline] |
Adds a notification handler, returning the state value to associate with.
[in] | handler | Will eventually be called exactly once |
find unused key
void CancelCallback | ( | CALLBACK * | callback | ) | [inline] |
CALLBACK* FindAndRemoveHandlerForKey | ( | int | key | ) | [inline] |
Looks up registered handler for key and removes it if found.
This will remove the handler if it was found so it is only returned once.
[in] | key | Returned by AddAuthorizationCodeHandler |