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;
107 #endif // ZYPP_SOURCE_PACKAGEPROVIDER_H
PackageProvider implementation interface.
Candidate delta and patches for a package.
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
PackageProvider(RepoMediaAccess &access, const PoolItem &pi_r, const PackageProviderPolicy &policy_r=PackageProviderPolicy())
Ctor taking the package to provide.
function< bool(const std::string &, const Edition &, const Arch &)> QueryInstalledCB
Get installed Editions callback signature.
RW_pointer< Impl > _pimpl
Implementation class.
ManagedFile providePackageFromCache() const
Provide the package if it is cached.
Provide a package from a Repo.
ManagedFile providePackage() const
Provide the package.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
bool queryInstalled(const std::string &name_r, const Edition &ed_r, const Arch &arch_r) const
Evaluate callback.
Combining sat::Solvable and ResStatus.
TraitsType::constPtrType constPtr