9#ifndef ZYPP_NG_MEDIASETFACADE_INCLUDED
10#define ZYPP_NG_MEDIASETFACADE_INCLUDED
15#include <zypp-media/ng/LazyMediaHandle>
36 const std::optional<zypp::Pathname> &
localPath()
const;
71 Disabled
for now so we hit
a compile error, since we currently have no way to get those values from the old
media backend.
139 return [ providerRef=std::move(provider), targetPath = targetPath ](
Res &&file ){
141 return providerRef->copyFile( std::move(file), targetPath );
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.
Manages a data source characterized by an authoritative URL and a list of mirror URLs.
Pathname dirname() const
Return all but the last component od this path.
const HeaderValueMap & headers() const
ProvideRes(ProvideMediaHandle hdl, zypp::ManagedFile file)
const zypp::Pathname file() const
ProvideMediaHandle _provideHandle
const ProvideMediaHandle & mediaHandle() const
const zypp::ManagedFile & asManagedFile() const
ZYPP_DECL_PRIVATE_CONSTR(Provide)
expected< zypp::CheckSum > checksumForFile(const zypp::Pathname &p, const std::string &algorithm)
expected< MediaHandle > attachMedia(const zypp::MirroredOrigin &origin, const ProvideMediaSpec &request)
expected< LazyMediaHandle > prepareMedia(const zypp::MirroredOrigin &origin, const ProvideMediaSpec &request)
friend class AttachedMediaInfo
expected< zypp::ManagedFile > copyFile(const zypp::Pathname &source, const zypp::Pathname &target)
expected< Res > provide(const zypp::MirroredOrigin &origin, const ProvideFileSpec &request)
static auto copyResultToDest(ProvideRef provider, const zypp::Pathname &targetPath)
::zyppng::LazyMediaHandle< Provide > LazyMediaHandle
std::vector< AttachedMediaInfo_Ptr > _attachedMedia
expected< MediaHandle > attachMediaIfNeeded(LazyMediaHandle lazyHandle)
ProvideMediaHandle MediaHandle
int assert_dir(const Pathname &path, unsigned mode)
Like 'mkdir -p'.
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
#define ZYPP_ADD_CREATE_FUNC(Class)
#define ZYPP_FWD_DECL_TYPE_WITH_REFS(T)