| Ubuntu Download Manager
    1.2.0
    A session-wide downloading service |  | 
 
 
 
Go to the documentation of this file.
   19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_H 
   20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_H 
   24 #include <ubuntu/download_manager/metatypes.h> 
   25 #include <ubuntu/download_manager/download_struct.h> 
   26 #include <ubuntu/download_manager/group_download_struct.h> 
   31 namespace DownloadManager {
 
  140                                 const QString& algorithm,
 
  142                                 const QVariantMap& metadata,
 
  143                                 StringMap headers) = 0;
 
  161                                 const QString& algorithm,
 
  163                                 const QVariantMap& metadata,
 
  212                                              const QString &value) = 0;
 
  226                                              const QString &value,
 
  335                                     const QString& value,
 
  352 #endif  // UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_H 
  
 
std::function< void(Download *)> DownloadCb
static Manager * createSystemManager(const QString &path="", QObject *parent=0)
virtual void allowMobileDataDownload(bool allowed)=0
virtual void getAllDownloadsWithMetadata(const QString &name, const QString &value)=0
virtual void getAllDownloads(const QString &appId, bool uncollected)=0
The Download class allows to control a download that was created in the download manager.
Manager(QObject *parent=0)
std::function< void(const QString &, const QString &, DownloadsList *)> MetadataDownloadsListCb
virtual void setDefaultThrottle(qulonglong speed)=0
void downloadCreated(Download *down)
virtual bool isMobileDataDownload()=0
virtual void createDownload(StructList downs, const QString &algorithm, bool allowed3G, const QVariantMap &metadata, StringMap headers, GroupCb cb, GroupCb errCb)=0
virtual void createDownload(DownloadStruct downStruct)=0
The Manager class is the entry point of the download manager API and allows the client to create down...
static Manager * createSessionManager(const QString &path="", QObject *parent=0)
virtual Download * getDownloadForId(const QString &id)=0
virtual void createDownload(DownloadStruct downStruct, DownloadCb cb, DownloadCb errCb)=0
virtual void getAllDownloads(const QString &appId, bool uncollected, DownloadsListCb cb, DownloadsListCb errCb)=0
std::function< void(GroupDownload *)> GroupCb
virtual void createDownload(StructList downs, const QString &algorithm, bool allowed3G, const QVariantMap &metadata, StringMap headers)=0
void downloadsFound(DownloadsList *downloads)
virtual qulonglong defaultThrottle()=0
The Error class is the base class that represents an error in the download manager API.
std::function< void(DownloadsList *)> DownloadsListCb
void downloadsWithMetadataFound(const QString &name, const QString &value, DownloadsList *downloads)
virtual void getAllDownloadsWithMetadata(const QString &name, const QString &value, MetadataDownloadsListCb cb, MetadataDownloadsListCb errCb)=0
virtual Error * lastError() const =0
void groupCreated(GroupDownload *down)
virtual bool isError() const =0