libzypp
16.15.6
|
Public Member Functions | |
PackageProviderImpl (RepoMediaAccess &access_r, const TPackagePtr &package_r, const PackageProviderPolicy &policy_r) | |
Ctor taking the Package to provide. More... | |
virtual | ~PackageProviderImpl () |
virtual ManagedFile | providePackage () const |
Provide the package. More... | |
virtual ManagedFile | providePackageFromCache () const |
Provide the package if it is cached. More... | |
virtual bool | isCached () const |
Whether the package is cached. More... | |
![]() | |
Impl () | |
virtual | ~Impl () |
Protected Types | |
typedef PackageProviderImpl< TPackage > | Base |
typedef callback::SendReport< repo::DownloadResolvableReport > | Report |
typedef target::rpm::RpmDb | RpmDb |
Protected Member Functions | |
ManagedFile | doProvidePackageFromCache () const |
Lookup the final rpm in cache. More... | |
virtual ManagedFile | doProvidePackage () const |
Actually provide the final rpm. More... | |
Report & | report () const |
Access to the DownloadResolvableReport. More... | |
bool | progressPackageDownload (int value) const |
Redirect ProvideFilePolicy package download progress to this. More... | |
RpmDb::CheckPackageResult | packageSigCheck (const Pathname &path_r, bool isMandatory_r, UserData &userData) const |
void | resolveSignatureErrorAction (repo::DownloadResolvableReport::Action action_r) const |
React on signature verification error user action. More... | |
void | defaultReportSignatureError (RpmDb::CheckPackageResult ret, const std::string &detail_r=std::string()) const |
Default signature verification error handling. More... | |
Protected Attributes | |
PackageProviderPolicy | _policy |
TPackagePtr | _package |
RepoMediaAccess & | _access |
Private Types | |
typedef TPackage::constPtr | TPackagePtr |
typedef callback::UserData | UserData |
typedef shared_ptr< void > | ScopedGuard |
Private Member Functions | |
ScopedGuard | newReport () const |
Private Attributes | |
bool | _retry |
shared_ptr< Report > | _report |
Target_Ptr | _target |
Definition at line 83 of file PackageProvider.cc.
|
private |
Definition at line 85 of file PackageProvider.cc.
|
private |
Definition at line 86 of file PackageProvider.cc.
|
protected |
Definition at line 120 of file PackageProvider.cc.
|
protected |
Definition at line 121 of file PackageProvider.cc.
|
protected |
Definition at line 166 of file PackageProvider.cc.
|
private |
Definition at line 228 of file PackageProvider.cc.
|
inline |
Ctor taking the Package to provide.
Definition at line 89 of file PackageProvider.cc.
|
inlinevirtual |
Definition at line 97 of file PackageProvider.cc.
|
virtual |
Provide the package.
The basic workflow.
Exception. |
Implements zypp::repo::PackageProvider::Impl.
Definition at line 248 of file PackageProvider.cc.
|
inlinevirtual |
Provide the package if it is cached.
Implements zypp::repo::PackageProvider::Impl.
Definition at line 107 of file PackageProvider.cc.
|
inlinevirtual |
Whether the package is cached.
Implements zypp::repo::PackageProvider::Impl.
Definition at line 116 of file PackageProvider.cc.
|
inlineprotected |
Lookup the final rpm in cache.
A cache hit will return a non empty ManagedFile and an empty one on cache miss.
Definition at line 130 of file PackageProvider.cc.
|
inlineprotectedvirtual |
Actually provide the final rpm.
Report start/problem/finish and retry loop are hadled by providePackage. Here you trigger just progress and delta/plugin callbacks as needed.
Proxy method for progressPackageDownload is provided here.
Reimplemented in zypp::repo::RpmPackageProvider.
Definition at line 147 of file PackageProvider.cc.
|
inlineprotected |
Access to the DownloadResolvableReport.
Definition at line 159 of file PackageProvider.cc.
|
inlineprotected |
Redirect ProvideFilePolicy package download progress to this.
Definition at line 163 of file PackageProvider.cc.
|
inlineprotected |
Definition at line 168 of file PackageProvider.cc.
|
inlineprotected |
React on signature verification error user action.
Definition at line 195 of file PackageProvider.cc.
|
inlineprotected |
Default signature verification error handling.
Definition at line 213 of file PackageProvider.cc.
|
inlineprivate |
Definition at line 230 of file PackageProvider.cc.
|
protected |
Definition at line 223 of file PackageProvider.cc.
|
protected |
Definition at line 224 of file PackageProvider.cc.
|
protected |
Definition at line 225 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 241 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 242 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 243 of file PackageProvider.cc.