10 #ifndef ZYPP_MediaSetAccess_H 11 #define ZYPP_MediaSetAccess_H 25 #include <zypp-core/OnMediaLocation> 112 { _label = label_r; }
119 PROVIDE_DEFAULT = 0x0,
120 PROVIDE_NON_INTERACTIVE = 0x1
134 void precacheFiles(
const std::vector<OnMediaLocation> &files);
199 Pathname provideOptionalFile(
const Pathname & file,
unsigned media_nr = 1 );
218 static ManagedFile provideFileFromUrl(
const Url & file_url, ProvideFileOptions options = PROVIDE_DEFAULT );
227 static ManagedFile provideOptionalFileFromUrl(
const Url & file_url );
245 void releaseFile(
const Pathname & file,
unsigned media_nr = 1 );
271 {
_media.releaseFile( _loc ); }
294 Pathname provideDir(
const Pathname & dir,
bool recursive,
unsigned media_nr = 1, ProvideFileOptions options = PROVIDE_DEFAULT );
310 bool doesFileExist(
const Pathname & file,
unsigned media_nr = 1 );
316 bool dots =
true,
unsigned media_nr = 1 );
364 std::ostream &
dumpOn( std::ostream &
str )
const override;
380 using MediaMap = std::map<media::MediaNr, media::MediaAccessId>;
381 using VerifierMap = std::map<media::MediaNr, media::MediaVerifierRef>;
398 #endif // ZYPP_SOURCE_MediaSetAccess_H
ZYPP_DECLARE_FLAGS(VendorSupportOptions, VendorSupportOption)
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
String related utilities and Regular expression matching.
std::ostream & operator<<(std::ostream &str, const SerialNumber &obj)
std::list< DirEntry > DirContent
Returned by readdir.
ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r)
Provide a file from a Repository.
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
DEFINE_PTR_TYPE(Application)
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
Base class for reference counted objects.
#define NON_MOVABLE(CLASS)
Delete move ctor and move assign.
Wrapper for const correct access via Smart pointer types.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
#define NON_COPYABLE(CLASS)
Delete copy ctor and copy assign.
Easy-to use interface to the ZYPP dependency resolver.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3...
bool provide(const Pathname &delta_r, const Pathname &new_r, const Progress &report_r)
Apply a binary delta to on-disk data to re-create a new rpm.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.