1
#include <unity/storage/qt/client/internal/remote_client/CancelUploadHandler.h>
3
#include "ProviderInterface.h"
4
#include <unity/storage/internal/ItemMetadata.h>
5
#include <unity/storage/qt/client/Exceptions.h>
6
#include <unity/storage/qt/client/internal/remote_client/FileImpl.h>
20
namespace remote_client
23
CancelUploadHandler::CancelUploadHandler(QDBusPendingReply<void> const& reply)
24
: watcher_(reply, this)
26
connect(&watcher_, &QDBusPendingCallWatcher::finished, this, &CancelUploadHandler::finished);
30
QFuture<void> CancelUploadHandler::future()
35
void CancelUploadHandler::finished(QDBusPendingCallWatcher* call)
39
QDBusPendingReply<void> reply = *call;
42
qDebug() << reply.error().message(); // TODO, remove this
43
qf_.reportException(StorageException()); // TODO
48
} // namespace remote_client
49
} // namespace internal
52
} // namespace storage
55
#include "CancelUploadHandler.moc"