#include <wxFlickrClient.h>
Inheritance diagram for wxFlickrAPI.wxFlickrClient:
Public Member Functions | |
wxFlickrClient (wxString sAPIKey, wxString sSharedSecret) | |
Create a wxFlickrClient object using a given flickr API key and shared secret. | |
virtual | ~wxFlickrClient () |
Appetite for destruction. | |
void | SetSocketEventHandler (wxEvtHandler &handler, int iId=-1, bool bDeleteOnDestruction=FALSE) |
Set the event handler for socket events. | |
AuthData * | GetAuthData () |
Get the current authentication data. | |
wxString | GetAPIKey () |
Get the API key. | |
void | SetAuthData (AuthData *pData, bool bCopy=FALSE) |
Set all authentication data. | |
void | SetFlickrHandler (wxEvtHandler *pFlHandler) |
Set the handler for wxFlickrEvent instances. | |
bool | IsReady () |
Check if the client is ready. | |
bool | IsSignedIn () |
Check if this client is signed in. | |
void | ForwardFlickrResponse (TiXmlNode *pFlickrTree, bool bIsErrorMsg) |
Forward a flickr.com response (from the socket event handler) to the current method object (m_pCurrentMethod). | |
Protected Member Functions | |
virtual bool | Connect (bool bWait=TRUE) |
Connect to flickr.com (same as calling Connect(m_FlickrURL, bWait) as inherited from wxSocketClient. | |
void | SetCurrentMethod (wxFlickrAPIMethod *pMethod) |
Set the api method to use. | |
virtual void | Send2Flickr (wxString sMethod, StrStrHashMap args, wxFlickrAPIMethod *pSender=NULL, bool bSigned=FALSE)=0 |
void | UploadPhoto (wxString sImage, StrStrHashMap args, wxFlickrAPIMethod *pSender) |
wxString | BuildSignature (wxArrayString aSortedArgs) |
Build signature from an alphabetically sorted list of arguments (using the MD5 sum). | |
wxEvtHandler * | GetFlickrHandler () |
Get the current handler for wxFlickrEvent instances. | |
void | SendWhileNotReadyErr (wxString sFullMethodName) |
Protected Attributes | |
wxEvtHandler * | m_pFlHandler |
The handler for wxFlickrEvent instances that were generated here. | |
wxFlickrAPIMethod * | m_pCurrentMethod |
The flickr API method currently being executed. | |
wxString | m_sAPIKey |
The API key of this app. | |
wxString | m_sSharedSecret |
The shared secret belonging to the API key. | |
wxIPV4address | m_FlickrURL |
The URL of flickr.com. | |
AuthData * | m_pAuthData |
Some authentication data (auth_token). | |
Friends | |
class | wxFlickrAPIMethod |
class | Upload |
Itself is abstract. Its concrete subclasses can speak REST, XML-RPC and SOAP.
|
Create a wxFlickrClient object using a given flickr API key and shared secret.
|
|
Build signature from an alphabetically sorted list of arguments (using the MD5 sum).
|
|
Forward a flickr.com response (from the socket event handler) to the current method object (m_pCurrentMethod).
|
|
Get the current authentication data.
|
|
Get the current handler for wxFlickrEvent instances.
|
|
Check if the client is ready. Always check this before calling API methods or deleting API objects.
|
|
Check if this client is signed in.
|
|
Set all authentication data. Note that the given pData pointer will be stored here and deleted upon destruction, unless bCopy is set true, then a deep copy of the AuthData will be stored here.
|
|
Set the api method to use. This has to be set before calling Send2Flickr.
|
|
Set the handler for wxFlickrEvent instances.
|
|
Set the event handler for socket events. Implicitly calls SetEventHandler of wxSocketBase.
|