19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_DOWNLOAD_H
23 #include <QVariantMap>
28 namespace DownloadManager {
69 virtual void start() = 0;
77 virtual void pause() = 0;
147 virtual QString
id()
const = 0;
178 virtual bool isError()
const = 0;
222 void paused(
bool success);
246 void progress(qulonglong received, qulonglong total);
270 #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