libzypp 17.31.23
|
Provide a package from a Repo. More...
#include <repo/PackageProvider.h>
Classes | |
class | Impl |
PackageProvider implementation interface. More... | |
Public Member Functions | |
PackageProvider (RepoMediaAccess &access, const PoolItem &pi_r, const PackageProviderPolicy &policy_r=PackageProviderPolicy()) | |
Ctor taking the package to provide. | |
PackageProvider (RepoMediaAccess &access, const PoolItem &pi_r, const DeltaCandidates &deltas, const PackageProviderPolicy &policy_r=PackageProviderPolicy()) | |
PackageProvider (RepoMediaAccess &access, const Package::constPtr &package, const DeltaCandidates &deltas, const PackageProviderPolicy &policy_r=PackageProviderPolicy()) | |
Legacy Ctor taking a Package::constPtr to provide. | |
~PackageProvider () | |
ManagedFile | providePackage () const |
Provide the package. | |
ManagedFile | providePackageFromCache () const |
Provide the package if it is cached. | |
bool | isCached () const |
Whether the package is cached. | |
Private Attributes | |
RW_pointer< Impl > | _pimpl |
Implementation class. | |
Provide a package from a Repo.
Use available deltarpm if apropriate.
Definition at line 60 of file PackageProvider.h.
zypp::repo::PackageProvider::PackageProvider | ( | RepoMediaAccess & | access, |
const PoolItem & | pi_r, | ||
const PackageProviderPolicy & | policy_r = PackageProviderPolicy() |
||
) |
Ctor taking the package to provide.
Exception | If pi_r refers to neither a Package nor a SrcPackage . |
Definition at line 679 of file PackageProvider.cc.
zypp::repo::PackageProvider::PackageProvider | ( | RepoMediaAccess & | access, |
const PoolItem & | pi_r, | ||
const DeltaCandidates & | deltas, | ||
const PackageProviderPolicy & | policy_r = PackageProviderPolicy() |
||
) |
Definition at line 673 of file PackageProvider.cc.
zypp::repo::PackageProvider::PackageProvider | ( | RepoMediaAccess & | access, |
const Package::constPtr & | package, | ||
const DeltaCandidates & | deltas, | ||
const PackageProviderPolicy & | policy_r = PackageProviderPolicy() |
||
) |
Legacy Ctor taking a Package::constPtr
to provide.
Definition at line 685 of file PackageProvider.cc.
zypp::repo::PackageProvider::~PackageProvider | ( | ) |
Definition at line 692 of file PackageProvider.cc.
ManagedFile zypp::repo::PackageProvider::providePackage | ( | ) | const |
ManagedFile zypp::repo::PackageProvider::providePackageFromCache | ( | ) | const |
Provide the package if it is cached.
Definition at line 698 of file PackageProvider.cc.
bool zypp::repo::PackageProvider::isCached | ( | ) | const |
Whether the package is cached.
Definition at line 701 of file PackageProvider.cc.
|
private |