19#ifndef LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
20#define LOMIRI_DOWNLOADMANAGER_CLIENT_MANAGER_PENDINGCALL_WATCHER_H
22#include <lomiri/transfers/visibility.h>
28namespace DownloadManager {
35typedef std::function<void(Download*)>
DownloadCb;
38typedef std::function<void(GroupDownload*)>
GroupCb;
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,
113 void onFinished(QDBusPendingCallWatcher* watcher);
std::function< void(DownloadsList *) DownloadsListCb)
std::function< void(Download *) DownloadCb)
std::function< void(GroupDownload *) GroupCb)
std::function< void(const QString &, const QString &, DownloadsList *) MetadataDownloadsListCb)