Helper class for accessing details of file uploaders as model.
#include <GCF3/IGDriveLiteFileUploaderListModel>. More...
Public Types | |
enum | Field { UploadFolderId = GCF::JobListModel::Object+1, UploadFileName, Uploader, UploaderTitle, UploaderDescription, UploaderIcon, UploaderIconUrl, UploaderProgress, UploaderStatus, UploaderIsStarted, UploaderIsSuspended, UploaderIsComplete, UploaderIsRunning, UploaderHasError, UploaderError } |
Public Types inherited from GCF::JobListModel | |
enum | Field { Kind = Qt::UserRole+1, Title, Description, Icon, IconUrl, Progress, Status, IsStarted, IsSuspended, IsComplete, IsRunning, HasError, Error, Object } |
Public Member Functions | |
virtual GCF::IGDriveLiteFileUploader * | uploader (const QString &localFileName) const =0 |
virtual GCF::IGDriveLiteFileUploader * | uploaderAt (int index) const |
virtual Q_INVOKABLE int | uploaderCount () const =0 |
virtual Q_INVOKABLE bool | abortUploadAt (int index)=0 |
virtual Q_INVOKABLE bool | retryUploadAt (int index)=0 |
virtual Q_INVOKABLE bool | suspendUploadAt (int index)=0 |
virtual Q_INVOKABLE bool | resumeUploadAt (int index)=0 |
Public Member Functions inherited from GCF::JobListModel | |
JobListModel (QObject *parent=0) | |
~JobListModel () | |
virtual bool | addJob (AbstractJob *job) |
void | removeJob (AbstractJob *job) |
AbstractJob * | jobAt (int index) const |
Q_INVOKABLE bool | containsJob (GCF::AbstractJob *job) const |
Q_INVOKABLE int | indexOfJob (GCF::AbstractJob *job) const |
Q_INVOKABLE QObject * | jobObjectAt (int index) const |
void | setColumns (const QList< int > &columns) |
QList< int > | columns () const |
int | rowCount (const QModelIndex &parent=QModelIndex()) const |
int | columnCount (const QModelIndex &parent=QModelIndex()) const |
QVariant | data (const QModelIndex &index, int role) const |
QVariant | headerData (int section, Qt::Orientation orientation, int role) const |
QHash< int, QByteArray > | roleNames () const |
Q_INVOKABLE void | cancelAllJobs () |
Q_INVOKABLE void | clearCompletedJobs () |
Q_INVOKABLE bool | cancelJobAt (int index) |
Q_INVOKABLE bool | retryJobAt (int index) |
Q_INVOKABLE bool | suspendJobAt (int index) |
Q_INVOKABLE bool | resumeJobAt (int index) |
Public Member Functions inherited from GCF::ObjectListEventListener | |
ObjectListEventListener () | |
virtual | ~ObjectListEventListener () |
virtual QString | listenerType () const |
virtual void | objectAdded (int index, QObject *obj) |
virtual void | objectDeleted (int index, QObject *obj) |
Additional Inherited Members | |
Signals inherited from GCF::JobListModel | |
void | jobCountChanged () |
void | allJobsComplete () |
void | jobUpdated (GCF::AbstractJob *job) |
void | jobStarted (GCF::AbstractJob *job) |
void | jobSuspended (GCF::AbstractJob *job) |
void | jobResumed (GCF::AbstractJob *job) |
void | jobCompleted (GCF::AbstractJob *job) |
Properties inherited from GCF::JobListModel | |
int | jobCount |
Detailed Description
File uploader model helps to create and maintain list of file uploaders. It is users responsibility to delete the uploader created using GCF::IGDriveLite::createFileUploader().
You can access the details about a uploader at a specific index by using the enumeration values of GCF::IGDriveLiteFileUploaderListModel::Field. Also this model provides a list of helper functions to control the uploaders at specific indexes.
Downloaders and uploaders can be visualized in QML or a List-View. For example:
Member Enumeration Documentation
The enumeration values of Field represents details of GCF::IGDriveLiteUploader.
Member Function Documentation
|
pure virtual |
Returns uploader for the specified file name in the current list of uploaders.
- Parameters
-
localFileName file name to upload.
- Returns
- GCF::IGDriveLiteFileUploader
|
virtual |
Returns the uploader at the specified index.
- Parameters
-
index index of donwloader.
- Returns
- GCF::IGDriveLiteFileUploader
|
pure virtual |
Total number of uploaders in the model.
|
pure virtual |
Aborts upload of uploader at the specific index.
|
pure virtual |
Retries the upload of uploader at specified index.
|
pure virtual |
Suspends the upload of uploader at specified index.
|
pure virtual |
Resumes the upload of uploader at specified index.