12 #ifndef ZYPP_REPO_PACKAGEPROVIDER_H
13 #define ZYPP_REPO_PACKAGEPROVIDER_H
38 typedef function<bool ( const std::string &, const Edition &, const Arch & )>
QueryInstalledCB;
47 const Arch & arch_r )
const;
93 #endif // ZYPP_SOURCE_PACKAGEPROVIDER_H
Candidate delta and patches for a package.
PackageProvider implementation.
PackageProviderPolicy & queryInstalledCB(QueryInstalledCB queryInstalledCB_r)
Set callback.
bool isCached() const
Whether the package is cached.
Policies and options for PackageProvider.
Edition represents [epoch:]version[-release]
QueryInstalledCB _queryInstalledCB
function< bool(const std::string &, const Edition &, const Arch &)> QueryInstalledCB
Get installed Editions callback signature.
RW_pointer< Impl > _pimpl
Implementation class.
PackageProvider(RepoMediaAccess &access, const Package::constPtr &package, const DeltaCandidates &deltas, const PackageProviderPolicy &policy_r=PackageProviderPolicy())
Ctor taking the Package to provide.
ManagedFile providePackageFromCache() const
Provide the package if it is cached.
Provide a package from a Repo.
ManagedFile providePackage() const
Provide the package.
Wrapper for const correct access via Smart pointer types.
Reference counted access to a _Tp object calling a custom Dispose function when the last AutoDispose ...
bool queryInstalled(const std::string &name_r, const Edition &ed_r, const Arch &arch_r) const
Evaluate callback.
TraitsType::constPtrType constPtr