libzypp  13.10.6
zypp::repo::PackageProvider Class Reference

Provide a package from a Repo. More...

#include <PackageProvider.h>

Classes

class  Impl
 PackageProvider implementation. More...
 

Public Member Functions

 PackageProvider (RepoMediaAccess &access, const Package::constPtr &package, const DeltaCandidates &deltas, const PackageProviderPolicy &policy_r=PackageProviderPolicy())
 Ctor taking the Package to provide. More...
 
 ~PackageProvider ()
 
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...
 

Private Attributes

RW_pointer< Impl_pimpl
 Implementation class. More...
 

Detailed Description

Provide a package from a Repo.

Use available deltarpm if apropriate.

Definition at line 60 of file PackageProvider.h.

Constructor & Destructor Documentation

zypp::repo::PackageProvider::PackageProvider ( RepoMediaAccess access,
const Package::constPtr package,
const DeltaCandidates deltas,
const PackageProviderPolicy policy_r = PackageProviderPolicy() 
)

Ctor taking the Package to provide.

Definition at line 447 of file PackageProvider.cc.

zypp::repo::PackageProvider::~PackageProvider ( )

Definition at line 454 of file PackageProvider.cc.

Member Function Documentation

ManagedFile zypp::repo::PackageProvider::providePackage ( ) const

Provide the package.

Exceptions
Exception.

Definition at line 457 of file PackageProvider.cc.

ManagedFile zypp::repo::PackageProvider::providePackageFromCache ( ) const

Provide the package if it is cached.

Definition at line 460 of file PackageProvider.cc.

bool zypp::repo::PackageProvider::isCached ( ) const

Whether the package is cached.

Definition at line 463 of file PackageProvider.cc.

Member Data Documentation

RW_pointer<Impl> zypp::repo::PackageProvider::_pimpl
private

Implementation class.

Pointer to implementation.

Definition at line 83 of file PackageProvider.h.


The documentation for this class was generated from the following files: