libzypp
13.10.6
|
Provides files from different repos. More...
#include <RepoProvideFile.h>
Classes | |
class | Impl |
Public Member Functions | |
RepoMediaAccess (const ProvideFilePolicy &defaultPolicy_r=ProvideFilePolicy()) | |
Ctor taking the default ProvideFilePolicy. More... | |
~RepoMediaAccess () | |
ManagedFile | provideFile (RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r) |
Provide a file from a Repository. More... | |
ManagedFile | provideFile (RepoInfo repo_r, const OnMediaLocation &loc_r) |
void | setDefaultPolicy (const ProvideFilePolicy &policy_r) |
Set a new default ProvideFilePolicy. More... | |
const ProvideFilePolicy & | defaultPolicy () const |
Get the current default ProvideFilePolicy. More... | |
Private Attributes | |
RW_pointer< Impl > | _impl |
Provides files from different repos.
Class that allows to get files from repositories It handles automatically setting media verifiers if the repo is cached, and reuses media set access opened for repositories during its scope, so you can provide files from different repositories in different order without opening and closing medias all the time
Definition at line 60 of file RepoProvideFile.h.
zypp::repo::RepoMediaAccess::RepoMediaAccess | ( | const ProvideFilePolicy & | defaultPolicy_r = ProvideFilePolicy() | ) |
Ctor taking the default ProvideFilePolicy.
Definition at line 235 of file RepoProvideFile.cc.
zypp::repo::RepoMediaAccess::~RepoMediaAccess | ( | ) |
Definition at line 239 of file RepoProvideFile.cc.
ManagedFile zypp::repo::RepoMediaAccess::provideFile | ( | RepoInfo | repo_r, |
const OnMediaLocation & | loc_r, | ||
const ProvideFilePolicy & | policy_r | ||
) |
Provide a file from a Repository.
Let source_r provide the file described by loc_r. In case loc_r contains a checksum, the file is verified. policy_r provides callback hooks for download progress reporting and behaviour on failed checksum verification.
Exception |
Definition at line 248 of file RepoProvideFile.cc.
|
inline |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Definition at line 81 of file RepoProvideFile.h.
void zypp::repo::RepoMediaAccess::setDefaultPolicy | ( | const ProvideFilePolicy & | policy_r | ) |
Set a new default ProvideFilePolicy.
Definition at line 242 of file RepoProvideFile.cc.
const ProvideFilePolicy & zypp::repo::RepoMediaAccess::defaultPolicy | ( | ) | const |
Get the current default ProvideFilePolicy.
Definition at line 245 of file RepoProvideFile.cc.
|
private |
Definition at line 92 of file RepoProvideFile.h.