QtfPhoto Struct Reference

#include <qtflickr.h>

List of all members.

Public Member Functions

 QtfPhoto ()
 QtfPhoto (const QString &file, const QString &photoId=QString())

Public Attributes

QString file
QString photoId
QMap< QString, QString > args

Detailed Description

This structure is used when uploading or replacing photos.

Parameters:
file File to be uploaded
photoId The ID of the photo to replace, do not set this value if you want just to upload photo
args Optional arguments, for example "title" Example:

 QtfPhoto photo;
 photo.file = "/home/user/picture.png";
 photo.args.insert("title", "Greatest pic of all time!");

 QtFlickr qtFlickr("apiKey","apiSecret");
 //uploading requires authentication
 ... (missing code here)

 qtFlickr.upload(photo);

Constructor & Destructor Documentation

QtfPhoto::QtfPhoto (  )  [inline]

Default constructor

QtfPhoto::QtfPhoto ( const QString &  file,
const QString &  photoId = QString() 
) [inline]

Constucts and initialize photo photo structure


The documentation for this struct was generated from the following file:

Generated on Tue Mar 2 16:37:30 2010 for QtFlickrAPI by Doxygen 1.6.1