11#include <zypp/base/String.h>
12#include <zypp/base/Logger.h>
13#include <zypp/base/Function.h>
16#include <zypp-core/base/UserRequestException>
33 fetcher.
start( dest_dir, media, progressrcv );
Store and operate with byte count.
static const Unit MB
1000^2 Byte
This class allows to retrieve a group of files in a confortable way, providing some smartness that do...
void start(const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc())
start the transfer to a destination directory dest_dir The media has to be provides with setMediaSetA...
void reset()
Reset the transfer (jobs) list.
void enqueue(const OnMediaLocation &resource, const FileChecker &checker=FileChecker())
Enqueue a object for transferal, they will not be transferred until start() is called.
function< bool(const ProgressData &)> ReceiverFnc
Most simple version of progress reporting The percentage in most cases.
void downloadMediaInfo(const Pathname &dest_dir, MediaSetAccess &media, const ProgressData::ReceiverFnc &progressrcv)
Downloads the media info (/media.1) to a local directory.
Easy-to use interface to the ZYPP dependency resolver.