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