|
| Downloader () |
| Constructor.
|
|
| Downloader (const RepoInfo &info) |
| C-tor associating the downloader with a RepoInfo.
|
|
virtual | ~Downloader () |
|
virtual void | download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
| Download metadata to a local directory.
|
|
virtual RepoStatus | status (MediaSetAccess &media) |
| Status of the remote repository.
|
|
const RepoInfo & | repoInfo () const |
|
void | setPluginRepoverification (std::optional< PluginRepoverification > pluginRepoverification_r) |
|
void | setNoPluginRepoverification () |
|
| ZYPP_DECLARE_FLAGS (Options, Option) |
|
| Fetcher () |
| Default ctor.
|
|
virtual | ~Fetcher () |
| Dtor.
|
|
void | setOptions (Options options) |
| Set the Fetcher options.
|
|
Options | options () const |
| Get current options.
|
|
void | addIndex (const OnMediaLocation &resource) |
| Adds an index containing metadata (for example checksums ) that will be retrieved and read before the job processing starts.
|
|
void | enqueue (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transferred until start() is called.
|
|
void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker=FileChecker()) |
| Enqueue a object for transferal, they will not be transferred until start() is called.
|
|
ZYPP_DEPRECATED void | enqueueDigested (const OnMediaLocation &resource, const FileChecker &checker, const Pathname &deltafile) |
|
void | enqueueDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory.
|
|
void | enqueueDigestedDir (const OnMediaLocation &resource, bool recursive=false, const FileChecker &checker=FileChecker()) |
| Enqueue a directory and always check for checksums.
|
|
void | addCachePath (const Pathname &cache_dir) |
| adds a directory to the list of directories where to look for cached files
|
|
void | reset () |
| Reset the transfer (jobs) list.
|
|
void | setMediaSetAccess (MediaSetAccess &media) |
| Sets the media set access that will be used to precache and to download the files when start is called.
|
|
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 setMediaSetAccess before calling this version of start.
|
|
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 get the files from The file tree will be replicated inside this directory
|
|
Downloader base class.
a Downloader encapsulates all the knowledge of which files have to be downloaded to the local disk.
Definition at line 37 of file Downloader.h.