32 e.Mime_ = std::move (
params.Mime_);
33 e.Additional_ = std::move (
params.Additional_);
35 auto res =
iem->DelegateEntity (
e);
39 <<
"delegation failed for"
52 if (!
file.open (QIODevice::ReadOnly))
55 <<
"unable to open downloaded file"
56 <<
file.errorString ();
Proxy to core entity manager.
static Either Left(const L &l)
static Either Right(R &&r)
Container< T > Filter(const Container< T > &c, F f)
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)