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);
190 Pathname provideFile(
const Pathname & file,
unsigned media_nr = 1, ProvideFileOptions options = PROVIDE_DEFAULT );
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>;
Base class for reference counted objects.
String related utilities and Regular expression matching.
boost::noncopyable NonCopyable
Ensure derived classes cannot be copied.
std::list< DirEntry > DirContent
Returned by readdir.
Easy-to use interface to the ZYPP dependency resolver.
std::ostream & dumpOn(std::ostream &str, const Capability &obj)
const Arch Arch_armv7hnl Arch_armv7nhl ZYPP_API
Wrapper for const correct access via Smart pointer types.
#define ZYPP_DEPRECATED
The ZYPP_DEPRECATED macro can be used to trigger compile-time warnings with gcc >= 3....
#define ZYPP_DECLARE_OPERATORS_FOR_FLAGS(Name)
#define DEFINE_PTR_TYPE(NAME)
Forward declaration of Ptr types.