Go to the documentation of this file.
12 #ifndef ZYPP_FETCHER_H
13 #define ZYPP_FETCHER_H
251 bool recursive =
false,
295 bool recursive =
false,
336 #endif // ZYPP_FETCHER_H
RWCOW_pointer< Impl > _pimpl
Pointer to implementation.
friend std::ostream & operator<<(std::ostream &str, const Fetcher &obj)
void enqueueDigested(const OnMediaLocation &resource, const FileChecker &checker=FileChecker(), const Pathname &deltafile=Pathname())
Enqueue a object for transferal, they will not be transferred until start() is called.
void addCachePath(const Pathname &cache_dir)
adds a directory to the list of directories where to look for cached files
void setOptions(Options options)
Set the Fetcher options.
Options options() const
Get current options.
void enqueueDir(const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker())
Enqueue a directory.
@ AutoAddIndexes
If a content or CHECKSUMS file is found, it is downloaded and read.
@ AutoAddChecksumsIndexes
If a CHECKSUMS file is found, it is downloaded and read.
void addIndex(const OnMediaLocation &resource)
Adds an index containing metadata (for example checksums ) that will be retrieved and read before the...
ZYPP_DECLARE_FLAGS(Options, Option)
ZYPP_DECLARE_OPERATORS_FOR_FLAGS(DiskUsageCounter::MountPoint::HintFlags)
Easy-to use interface to the ZYPP dependency resolver.
void enqueueDigestedDir(const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker())
Enqueue a directory and always check for checksums.
void start(const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
start the transfer to a destination directory dest_dir You have to provde a media set access media to...
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
std::ostream & operator<<(std::ostream &str, const Exception &obj)
void reset()
Reset the transfer (jobs) list.
@ AutoAddContentFileIndexes
If a content file is found, it is downloaded and read.
function< void(const Pathname &file)> FileChecker
Functor signature used to check files.
void enqueue(const OnMediaLocation &resource, const FileChecker &checker=FileChecker())
Enqueue a object for transferal, they will not be transferred until start() is called.
String related utilities and Regular expression matching.
Option
Various option flags to change behavior.
This class allows to retrieve a group of files in a confortable way, providing some smartness that do...