19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_H
23 #include <QVariantMap>
25 #include <ubuntu/download_manager/common.h>
29 namespace DownloadManager {
70 virtual void start() = 0;
78 virtual void pause() = 0;
148 virtual QString
id()
const = 0;
179 virtual bool isError()
const = 0;
223 void paused(
bool success);
247 void progress(qulonglong received, qulonglong total);
271 #endif // UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_H
The Error class is the base class that represents an error in the download manager API...
void paused(bool success)
void finished(const QString &path)
void canceled(bool success)
void resumed(bool success)
virtual void setDestinationDir(const QString &path)=0
virtual bool isError() const =0
virtual void setThrottle(qulonglong speed)=0
Download(QObject *parent=0)
virtual QVariantMap metadata()=0
The Download class allows to control a download that was created in the download manager.
virtual qulonglong totalSize()=0
virtual QString id() const =0
void processing(const QString &path)
void started(bool success)
virtual Error * error() const =0
virtual bool isMobileDownloadAllowed()=0
virtual qulonglong throttle()=0
virtual void allowMobileDownload(bool allowed)=0
virtual qulonglong progress()=0