19 #ifndef UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
20 #define UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
27 namespace DownloadManager {
34 typedef std::function<void(Download*)>
DownloadCb;
37 typedef std::function<void(GroupDownload*)>
GroupCb;
40 class DownloadManagerPCW :
public PendingCallWatcher {
44 DownloadManagerPCW(
const QDBusConnection& conn,
45 const QString& servicePath,
46 const QDBusPendingCall& call,
52 void onFinished(QDBusPendingCallWatcher* watcher);
60 class DownloadsListManagerPCW :
public PendingCallWatcher {
64 DownloadsListManagerPCW(
const QDBusConnection& conn,
65 const QString& servicePath,
66 const QDBusPendingCall& call,
71 void onFinished(QDBusPendingCallWatcher* watcher);
78 class MetadataDownloadsListManagerPCW :
public PendingCallWatcher {
82 MetadataDownloadsListManagerPCW(
const QDBusConnection& conn,
83 const QString& servicePath,
84 const QDBusPendingCall& call,
91 void onFinished(QDBusPendingCallWatcher* watcher);
95 const QString& _value;
100 class GroupManagerPCW :
public PendingCallWatcher {
104 GroupManagerPCW(
const QDBusConnection& conn,
105 const QString& servicePath,
106 const QDBusPendingCall& call,
112 void onFinished(QDBusPendingCallWatcher* watcher);
123 #endif // UBUNTU_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
std::function< void(Download *)> DownloadCb
std::function< void(const QString &, const QString &, DownloadsList *)> MetadataDownloadsListCb
std::function< void(GroupDownload *)> GroupCb
std::function< void(DownloadsList *)> DownloadsListCb