32 e.Mime_ = std::move (params.
Mime_);
38 qWarning () << Q_FUNC_INFO
39 <<
"delegation failed for"
44 return Util::Sequence (params.
Context_, res.DownloadResult_) >>
52 if (!file.open (QIODevice::ReadOnly))
54 qWarning () << Q_FUNC_INFO
55 <<
"unable to open downloaded file"
56 << file.errorString ();
Proxy to core entity manager.
virtual DelegationResult DelegateEntity(LC::Entity entity, QObject *desired=nullptr)=0
Delegates the given entity and returns the delegation result.
static Either Right(const R &r)
static Either Left(const L &l)
QString GetTemporaryName(const QString &pattern)
Returns a temporary filename.
std::optional< QFuture< TempResultType_t > > DownloadAsTemporary(IEntityManager *iem, const QUrl &url, DownloadParams params)
detail::ScopeGuard< F > MakeScopeGuard(const F &f)
Returns an object performing passed function on scope exit.
Entity MakeEntity(const QVariant &entity, const QString &location, TaskParameters tp, const QString &mime)