wxFlickrAPI.Auth Class Reference

A wrapper for flickr.auth. More...

#include <wxFlickrClient.h>

Inheritance diagram for wxFlickrAPI.Auth:

wxFlickrAPI.wxFlickrAPIMethod List of all members.

Public Types

enum  State { Idle, Waiting4Frob, Waiting4Token }

Public Member Functions

 Auth (wxFlickrClient *pClient, wxString sPerms)
 Create object for flickr.com authentication.
void CheckToken ()
 Call flickr.photos.search (see http://www.flickr.com/services/api/flickr.photos.checkToken.html).
void GetFrob ()
 Request a frob (see 3.
void GetToken ()
 Request a token (see 5.

Protected Member Functions

virtual void ProcessFlickrResponse (TiXmlNode *pResponse)
 Process the data received by OnFlickrResponse.
void ProcessFrob (TiXmlNode *pResponse)
void ProcessToken (TiXmlNode *pResponse)

Detailed Description

A wrapper for flickr.auth.


Constructor & Destructor Documentation

Auth::Auth wxFlickrClient pClient,
wxString  sPerms
 

Create object for flickr.com authentication.

Parameters:
pClient The wxFlickrClient instance to do the authentication.
sPerms The permissions this client should have (read,write,delete).


Member Function Documentation

void Auth::CheckToken  ) 
 

Call flickr.photos.search (see http://www.flickr.com/services/api/flickr.photos.checkToken.html).

Make sure to call SetArg for all arguments this call should use.

void Auth::GetFrob  ) 
 

Request a frob (see 3.

at http://www.flickr.com/services/api/auth.howto.desktop.html).

void Auth::GetToken  ) 
 

Request a token (see 5.

at http://www.flickr.com/services/api/auth.howto.desktop.html).

void Auth::ProcessFlickrResponse TiXmlNode *  pResponse  )  [protected, virtual]
 

Process the data received by OnFlickrResponse.

Subclasses define more meaningful behavior. Each method call handles its own responses.

Parameters:
pResponse The XML-payload to be handled.

Reimplemented from wxFlickrAPI.wxFlickrAPIMethod.


The documentation for this class was generated from the following files:
Generated on Mon Feb 20 11:06:42 2006 for wxFlickr by  doxygen 1.4.6-NO