19 #ifndef LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
20 #define LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
22 #include <lomiri/transfers/visibility.h>
28 namespace DownloadManager {
35 typedef std::function<void(Download*)>
DownloadCb;
38 typedef std::function<void(GroupDownload*)>
GroupCb;
41 class LOMIRI_TRANSFERS_PRIVATE DownloadManagerPCW :
public PendingCallWatcher {
45 DownloadManagerPCW(
const QDBusConnection& conn,
46 const QString& servicePath,
47 const QDBusPendingCall& call,
53 void onFinished(QDBusPendingCallWatcher* watcher);
61 class LOMIRI_TRANSFERS_PRIVATE DownloadsListManagerPCW :
public PendingCallWatcher {
65 DownloadsListManagerPCW(
const QDBusConnection& conn,
66 const QString& servicePath,
67 const QDBusPendingCall& call,
72 void onFinished(QDBusPendingCallWatcher* watcher);
79 class LOMIRI_TRANSFERS_PRIVATE MetadataDownloadsListManagerPCW :
public PendingCallWatcher {
83 MetadataDownloadsListManagerPCW(
const QDBusConnection& conn,
84 const QString& servicePath,
85 const QDBusPendingCall& call,
92 void onFinished(QDBusPendingCallWatcher* watcher);
96 const QString& _value;
101 class LOMIRI_TRANSFERS_PRIVATE GroupManagerPCW :
public PendingCallWatcher {
105 GroupManagerPCW(
const QDBusConnection& conn,
106 const QString& servicePath,
107 const QDBusPendingCall& call,
113 void onFinished(QDBusPendingCallWatcher* watcher);
std::function< void(DownloadsList *)> DownloadsListCb
std::function< void(GroupDownload *)> GroupCb
std::function< void(const QString &, const QString &, DownloadsList *)> MetadataDownloadsListCb
std::function< void(Download *)> DownloadCb