#include <mw/cwrt/downloadmanager.h>
Link against: WrtDownloadMgr.lib
class WRT::DownloadManager : public QObject, public QObject |
The public APIs for managing the downloads.
Public Member Functions | |
---|---|
DownloadManager(const QString &) | |
virtual | ~DownloadManager() |
QVariant | attribute(DownloadManagerAttribute) |
Download * | createDownload(const QString &, DownloadType) |
Download * | createDownload(QNetworkReply *) |
QList< Download * > | currentDownloads() |
Download * | findDownload(int) |
QList< Download * > | findDownload(const QString &) |
int | initialize(bool) |
void | pauseAll() |
QNetworkProxy * | proxy() |
void | removeAll() |
void | removeOne(Download *) |
int | setAttribute(DownloadManagerAttribute, const QVariant &) |
void | setProxy(const QString &, int) |
void | startAll() |
Public Signals | |
---|---|
void | downloadManagerEvent(DownloadManagerEvent *) |
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() |
This class has the public APIs for managing the downloads
DownloadManager | ( | const QString & | clientName | ) |
creates an instance of download manager clientName indicates the name of the client
QVariant | attribute | ( | DownloadManagerAttribute | attr | ) |
fetches download manager attribute attr indicates download manager attribute whos value to be returned
Download * | createDownload | ( | const QString & | url, |
DownloadType | type = Parallel | |||
) |
returns new download url indicates download url type indicates whether it is sequential or parallel download
Download * | createDownload | ( | QNetworkReply * | reply | ) |
returns new download reply indicates network reply which is already initiated
void | downloadManagerEvent | ( | DownloadManagerEvent * | ) | [signal] |
Download * | findDownload | ( | int | dlId | ) |
finds a download provided id if exists id indicates identifier for download
QList< Download * > | findDownload | ( | const QString & | url | ) |
finds download with the matching URL url indicates url of the download
int | initialize | ( | bool | backgroundMode = false | ) |
initialises all the downloads which belongs to last download manager session
void | removeOne | ( | Download * | dl | ) |
cancels and removes the download dl indicates the download to be canceled and removed
int | setAttribute | ( | DownloadManagerAttribute | attr, |
const QVariant & | value | |||
) |
sets download manager attribute attr indicates download manager attribute value indicates value to be set