19#ifndef LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
20#define LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
22#include <lomiri/transfers/visibility.h>
41class LOMIRI_TRANSFERS_PRIVATE DownloadManagerPCW :
public PendingCallWatcher {
45 DownloadManagerPCW(
const QDBusConnection& conn,
46 const QString& servicePath,
47 const QDBusPendingCall& call,
53 void onFinished(QDBusPendingCallWatcher* watcher);
61class LOMIRI_TRANSFERS_PRIVATE DownloadsListManagerPCW :
public PendingCallWatcher {
65 DownloadsListManagerPCW(
const QDBusConnection& conn,
66 const QString& servicePath,
67 const QDBusPendingCall& call,
69 DownloadsListCb errCb,
72 void onFinished(QDBusPendingCallWatcher* watcher);
79class LOMIRI_TRANSFERS_PRIVATE MetadataDownloadsListManagerPCW :
public PendingCallWatcher {
83 MetadataDownloadsListManagerPCW(
const QDBusConnection& conn,
84 const QString& servicePath,
85 const QDBusPendingCall& call,
88 MetadataDownloadsListCb cb,
89 MetadataDownloadsListCb errCb,
92 void onFinished(QDBusPendingCallWatcher* watcher);
96 const QString& _value;
101class LOMIRI_TRANSFERS_PRIVATE GroupManagerPCW :
public PendingCallWatcher {
105 GroupManagerPCW(
const QDBusConnection& conn,
106 const QString& servicePath,
107 const QDBusPendingCall& call,
110 QObject* parent = 0);
113 void onFinished(QDBusPendingCallWatcher* watcher);
The Download class allows to control a download that was created in the download manager.
The Error class is the base class that represents an error in the download manager API.
std::function< void(DownloadsList *)> DownloadsListCb
std::function< void(GroupDownload *)> GroupCb
std::function< void(const QString &, const QString &, DownloadsList *)> MetadataDownloadsListCb
std::function< void(Download *)> DownloadCb