WRT::Download Class Reference

#include <mw/cwrt/download.h>

Link against: WrtDownloadMgr.lib

class WRT::Download : public QObject, public QObject

The public APIs for managing a Download.

Inherits from

  • WRT::Download
    Public Member Enumerations
    enumState { Created, Started, InProgress, Paused, ..., Cancelled }
    Public Member Functions
    QVariant attribute(DownloadAttribute)
    voidcancel()
    DownloadManager *downloadManager()
    intid()
    voidpause()
    voidsetAttribute(DownloadAttribute, const QVariant &)
    voidsetSslConfiguration(const QSslConfiguration &)
    voidstart()
    QList< Download * >subDownloads()
    Protected Member Functions
    Download()
    Download(DownloadManager *, IDownload *)
    ~Download()
    Public Signals
    voiddownloadError(Error)
    voiddownloadEvent(DownloadEvent *)
    voidsslError(const QList< QSslError > &)
    Inherited Attributes
    QObject::d_ptr
    QObject::objectName
    QObject::staticQtMetaObject
    Inherited Functions
    QObject::QObject(QObjectPrivate &,QObject *)
    QObject::blockSignals(bool)
    QObject::childEvent(QChildEvent *)
    QObject::children()const
    QObject::connect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const QObject *,const char *,Qt::ConnectionType)
    QObject::connect(const QObject *,const char *,const char *,Qt::ConnectionType)const
    QObject::connectNotify(const char *)
    QObject::customEvent(QEvent *)
    QObject::deleteLater
    QObject::destroyed
    QObject::disconnect(const QObject *,const QMetaMethod &,const QObject *,const QMetaMethod &)
    QObject::disconnect(const QObject *,const char *)
    QObject::disconnect(const QObject *,const char *,const QObject *,const char *)
    QObject::disconnect(const char *,const QObject *,const char *)
    QObject::disconnectNotify(const char *)
    QObject::dumpObjectInfo()
    QObject::dumpObjectTree()
    QObject::dynamicPropertyNames()const
    QObject::event(QEvent *)
    QObject::eventFilter(QObject *,QEvent *)
    QObject::findChild(const QString &)const
    QObject::findChildren(const QRegExp &)const
    QObject::findChildren(const QString &)const
    QObject::inherits(const char *)const
    QObject::installEventFilter(QObject *)
    QObject::isWidgetType()const
    QObject::killTimer(int)
    QObject::moveToThread(QThread *)
    QObject::objectName()const
    QObject::parent()const
    QObject::property(const char *)const
    QObject::receivers(const char *)const
    QObject::registerUserData()
    QObject::removeEventFilter(QObject *)
    QObject::sender()const
    QObject::senderSignalIndex()const
    QObject::setObjectName(const QString &)
    QObject::setParent(QObject *)
    QObject::setProperty(const char *,const QVariant &)
    QObject::setUserData(uint,QObjectUserData *)
    QObject::signalsBlocked()const
    QObject::startTimer(int)
    QObject::thread()const
    QObject::timerEvent(QTimerEvent *)
    QObject::userData(uint)const
    QObject::~QObject()

    Detailed Description

    This class has the public APIs for managing a single Download

    Member Enumeration Documentation

    Enum State

    Constructor & Destructor Documentation

    Download ( )

    Download()[protected]

    Download ( DownloadManager *, IDownload * )

    Download(DownloadManager *mgr,
    IDownload *dl
    )[protected]

    ~Download ( )

    ~Download()[protected]

    Member Function Documentation

    attribute ( DownloadAttribute )

    QVariant attribute(DownloadAttributeattr)

    fetches the attribute of the Download attr indicates Download attribute

    cancel ( )

    voidcancel()

    cancels the Download

    downloadError ( Error )

    voiddownloadError(Error)[signal]

    downloadEvent ( DownloadEvent * )

    voiddownloadEvent(DownloadEvent *)[signal]

    downloadManager ( )

    DownloadManager *downloadManager()

    returns Download manager

    id ( )

    intid()

    returns id of the Download

    pause ( )

    voidpause()

    pauses the Download

    setAttribute ( DownloadAttribute, const QVariant & )

    voidsetAttribute(DownloadAttributeattr,
    const QVariant &value
    )

    sets the attribute for the Download attr indicates attribute value indicates value for the Download

    setSslConfiguration ( const QSslConfiguration & )

    voidsetSslConfiguration(const QSslConfiguration &sslConfiguration)

    sslError ( const QList< QSslError > & )

    voidsslError(const QList< QSslError > &)[signal]

    start ( )

    voidstart()

    starts/resumes the Download

    subDownloads ( )

    QList< Download * >subDownloads()

    returns the child downloads i.e if Download has any media objects list indicates list of child downloads