GCF LOGO VCL LOGO
GCF::IGDriveLiteFileUploader Class Referenceabstract

An interface to upload a file into google-drive

#include <GCF3/IGDriveLiteFileUploader>
. More...

Public Member Functions

 ~IGDriveLiteFileUploader ()
 
virtual void setUploadFolderId (const QString &uploadFolderId)=0
 
virtual QString uploadFolderId () const =0
 
virtual QString uploadFileName () const =0
 
virtual GCF::GDriveContent::Item uploadedItem () const =0
 
virtual Q_SIGNAL void uploadProgressChanged (int val)=0
 
- Public Member Functions inherited from GCF::AbstractJob
 AbstractJob (const QString &kind, QObject *parent=0)
 
 ~AbstractJob ()
 
bool isStarted () const
 
bool isSuspended () const
 
bool isComplete () const
 
GCF::Result start ()
 
GCF::Result cancel ()
 
GCF::Result suspend ()
 
GCF::Result resume ()
 
GCF::Result retry ()
 

Additional Inherited Members

- Protected Member Functions inherited from GCF::AbstractJob
virtual GCF::Result startJob ()=0
 
virtual GCF::Result cancelJob ()
 
virtual GCF::Result suspendJob ()
 
virtual GCF::Result resumeJob ()
 
void setTitle (const QString &title)
 
void setDescription (const QString &desc)
 
void setIconUrl (const QString &iconUrl)
 
void setIcon (const QVariant &icon)
 
void setStatus (const QString &statusMsg)
 
void setProgress (int val, const QString &msg=QString())
 
void setError (const QString &errMsg, bool abort=false)
 
void clearError ()
 
void abort (const QString &msg)
 
void done ()
 
- Properties inherited from GCF::AbstractJob
QString kind
 
QString title
 
QString description
 
QVariant icon
 
QString iconUrl
 
QString status
 
int progress
 
bool hasError
 
QString error
 

Detailed Description

Instances of objects that implement this interface are created using GCF::IGDriveLite::createFileUploader()

Constructor & Destructor Documentation

GCF::IGDriveLiteFileUploader::~IGDriveLiteFileUploader ( )

Destructor.

Member Function Documentation

GCF::IGDriveLiteFileUploader::setUploadFolderId ( const QString &  uploadFolderId)
pure virtual

Sets the upload folder Id of folder inside which the file will be uploaded.

Parameters
uploadFolderIdid of folder
GCF::IGDriveLiteFileUploader::uploadFolderId ( ) const
pure virtual

Returns upload folder id of folder inside which the file will be uploaded.

Returns
QString upload folder id.
GCF::IGDriveLiteFileUploader::uploadFileName ( ) const
pure virtual

Name of the file which is going to be uploaded.

GCF::IGDriveLiteFileUploader::uploadedItem ( ) const
pure virtual

Returns the item for the file that has been recently uploaded by the uploader. If no file has been uploaded then returns an invalid item.

GCF::IGDriveLiteFileUploader::uploadProgressChanged ( int  val)
pure virtual

This signal is emitted when the upload progress is changed.