|
libzypp
15.24.2
|
PackageProvider implementation. More...

Public Member Functions | |
| Impl (RepoMediaAccess &access_r, const Package::constPtr &package_r, const DeltaCandidates &deltas_r, const PackageProviderPolicy &policy_r) | |
| Ctor taking the Package to provide. More... | |
| virtual | ~Impl () |
| ManagedFile | providePackage () const |
| Provide the package. More... | |
| ManagedFile | providePackageFromCache () const |
| Provide the package if it is cached. More... | |
| bool | isCached () const |
| Whether the package is cached. More... | |
Static Public Member Functions | |
| static Impl * | factoryMake (RepoMediaAccess &access_r, const Package::constPtr &package_r, const DeltaCandidates &deltas_r, const PackageProviderPolicy &policy_r) |
| Factory method providing the appropriate implementation. More... | |
Protected Types | |
| typedef PackageProvider::Impl | Base |
| typedef callback::SendReport < repo::DownloadResolvableReport > | Report |
| typedef target::rpm::RpmDb | RpmDb |
Protected Member Functions | |
| virtual ManagedFile | doProvidePackageFromCache () const =0 |
| Lookup the final rpm in cache. More... | |
| virtual ManagedFile | doProvidePackage () const =0 |
| 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, 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 |
| Package::constPtr | _package |
| DeltaCandidates | _deltas |
| RepoMediaAccess & | _access |
Private Types | |
| 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 |
PackageProvider implementation.
Definition at line 60 of file PackageProvider.cc.
|
private |
Definition at line 62 of file PackageProvider.cc.
|
protected |
Definition at line 108 of file PackageProvider.cc.
|
protected |
Definition at line 109 of file PackageProvider.cc.
|
protected |
Definition at line 148 of file PackageProvider.cc.
|
private |
Definition at line 204 of file PackageProvider.cc.
|
inline |
Ctor taking the Package to provide.
Definition at line 65 of file PackageProvider.cc.
|
inlinevirtual |
Definition at line 76 of file PackageProvider.cc.
|
static |
Factory method providing the appropriate implementation.
Called by PackageProvider ctor. Returned pointer should be immediately wrapped into a smartpointer.
Definition at line 564 of file PackageProvider.cc.
| ManagedFile zypp::repo::PackageProvider::Impl::providePackage | ( | ) | const |
Provide the package.
The basic workflow.
| Exception. |
Definition at line 240 of file PackageProvider.cc.
|
inline |
Provide the package if it is cached.
Definition at line 95 of file PackageProvider.cc.
|
inline |
Whether the package is cached.
Definition at line 104 of file PackageProvider.cc.
|
protectedpure virtual |
Lookup the final rpm in cache.
Default implementation (cache miss).
A non empty ManagedFile will be returned to the caller.
Implemented in zypp::repo::RpmPackageProvider.
Definition at line 224 of file PackageProvider.cc.
|
protectedpure virtual |
Actually provide the final rpm.
Default implementation (provide full package)
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.
Implemented in zypp::repo::RpmPackageProvider.
Definition at line 228 of file PackageProvider.cc.
|
inlineprotected |
Access to the DownloadResolvableReport.
Definition at line 141 of file PackageProvider.cc.
|
inlineprotected |
Redirect ProvideFilePolicy package download progress to this.
Definition at line 145 of file PackageProvider.cc.
|
inlineprotected |
Definition at line 150 of file PackageProvider.cc.
|
inlineprotected |
React on signature verification error user action.
Definition at line 170 of file PackageProvider.cc.
|
inlineprotected |
Default signature verification error handling.
Definition at line 188 of file PackageProvider.cc.
|
inlineprivate |
Definition at line 206 of file PackageProvider.cc.
|
protected |
Definition at line 198 of file PackageProvider.cc.
|
protected |
Definition at line 199 of file PackageProvider.cc.
|
protected |
Definition at line 200 of file PackageProvider.cc.
|
protected |
Definition at line 201 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 217 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 218 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 219 of file PackageProvider.cc.