10 #ifndef ZYPP_MediaSetAccess_H 11 #define ZYPP_MediaSetAccess_H 25 #include <zypp-core/OnMediaLocation> 106 MediaSetAccess( std::string label_r, std::vector<media::MediaUrl> urls,
Pathname prefered_attach_point =
"" );
124 const std::string & label()
const;
129 void setLabel(
const std::string & label_r );
136 PROVIDE_DEFAULT = 0x0,
137 PROVIDE_NON_INTERACTIVE = 0x1
151 void precacheFiles(
const std::vector<OnMediaLocation> &files);
216 Pathname provideOptionalFile(
const Pathname & file,
unsigned media_nr = 1 );
235 static ManagedFile provideFileFromUrl(
const Url & file_url, ProvideFileOptions options = PROVIDE_DEFAULT );
244 static ManagedFile provideOptionalFileFromUrl(
const Url & file_url );
262 void releaseFile(
const Pathname & file,
unsigned media_nr = 1 );
288 {
_media.releaseFile( _loc ); }
311 Pathname provideDir(
const Pathname & dir,
bool recursive,
unsigned media_nr = 1, ProvideFileOptions options = PROVIDE_DEFAULT );
327 bool doesFileExist(
const Pathname & file,
unsigned media_nr = 1 );
333 bool dots =
true,
unsigned media_nr = 1 );
381 std::ostream &
dumpOn( std::ostream &
str )
const override;
386 std::unique_ptr<Impl>
_pimpl;
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.