Google APIs Client Library for C++
OAuth2PendingAuthorizations< CALLBACK > Class Template Reference

Manages callbacks for outstanding authorization code requests. More...

#include "client/auth/oauth2_pending_authorizations.h"

List of all members.

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.

Detailed Description

template<class CALLBACK>
class googleapis::client::OAuth2PendingAuthorizations< CALLBACK >

Manages callbacks for outstanding authorization code requests.

This class is threadsafe.


Constructor & Destructor Documentation

Standard constructor.

virtual ~OAuth2PendingAuthorizations ( ) [inline, virtual]

Standard destructor.


Member Function Documentation

int AddAuthorizationCodeHandler ( CALLBACK *  handler) [inline]

Adds a notification handler, returning the state value to associate with.

Parameters:
[in]handlerWill eventually be called exactly once
Returns:
value to use for the state query parameter in the url. This will be used later as the key to retrieve the callback to invoke.

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.

Parameters:
[in]keyReturned by AddAuthorizationCodeHandler
Returns:
The handler added for the key or NULL.

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines