 |
LeechCraft
0.6.70-15082-g543737046d
Modular cross-platform feature rich live environment.
|
Go to the documentation of this file.
23 const QUrl& url, DownloadParams params)
32 e.Mime_ = std::move (params.Mime_);
33 e.Additional_ = std::move (params.Additional_);
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 ();
std::optional< QFuture< TempResultType_t > > DownloadAsTemporary(IEntityManager *iem, const QUrl &url, DownloadParams params)
static Either Right(const R &r)
Entity MakeEntity(const QVariant &entity, const QString &location, TaskParameters tp, const QString &mime)
static Either Left(const L &l)
detail::ScopeGuard< F > MakeScopeGuard(const F &f)
Returns an object performing passed function on scope exit.
virtual DelegationResult DelegateEntity(LC::Entity entity, QObject *desired=nullptr)=0
Delegates the given entity and returns the delegation result.
Proxy to core entity manager.
QString GetTemporaryName(const QString &pattern)
Returns a temporary filename.
Visitor(Args &&...) -> Visitor< Void, Args... >