libzypp  13.10.6
zypp::zypp_detail::ZYppImpl Class Reference

#include <ZYppImpl.h>

Public Member Functions

 ZYppImpl ()
 Default ctor. More...
 
 ~ZYppImpl ()
 Dtor. More...
 
ResPool pool () const
 
ResPoolProxy poolProxy () const
 
KeyRing_Ptr keyRing () const
 
Resolver_Ptr resolver () const
 
Target_Ptr target () const
 
Target_Ptr getTarget () const
 Same as target but returns NULL if target is not initialized, instead of throwing. More...
 
void initializeTarget (const Pathname &root, bool doRebuild_r)
 
void finishTarget ()
 
ZYppCommitResult commit (const ZYppCommitPolicy &policy_r)
 Commit changes and transactions. More...
 
void installSrcPackage (const SrcPackage_constPtr &srcPackage_r)
 Install a source package on the Target. More...
 
ManagedFile provideSrcPackage (const SrcPackage_constPtr &srcPackage_r)
 Install a source package on the Target. More...
 
Pathname homePath () const
 Get the path where zypp related plugins store persistent data and caches. More...
 
Pathname tmpPath () const
 Get the path where zypp related plugins store tmp data. More...
 
void setHomePath (const Pathname &path)
 set the home, if you need to change it More...
 
DiskUsageCounter::MountPointSet diskUsage ()
 
void setPartitions (const DiskUsageCounter::MountPointSet &mp)
 
DiskUsageCounter::MountPointSet getPartitions () const
 

Private Attributes

Target_Ptr _target
 
Resolver_Ptr _resolver
 
KeyRing_Ptr _keyring
 
Pathname _home_path
 
shared_ptr< DiskUsageCounter_disk_usage
 defined mount points, used for disk usage counting More...
 

Friends

std::ostream & operator<< (std::ostream &str, const ZYppImpl &obj)
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &str, const ZYppImpl &obj)
 

Detailed Description

Definition at line 40 of file ZYppImpl.h.

Constructor & Destructor Documentation

zypp::zypp_detail::ZYppImpl::ZYppImpl ( )

Default ctor.

Definition at line 41 of file ZYppImpl.cc.

zypp::zypp_detail::ZYppImpl::~ZYppImpl ( )

Dtor.

Definition at line 55 of file ZYppImpl.cc.

Member Function Documentation

ResPool zypp::zypp_detail::ZYppImpl::pool ( void  ) const
inline

Definition at line 52 of file ZYppImpl.h.

ResPoolProxy zypp::zypp_detail::ZYppImpl::poolProxy ( ) const
inline

Definition at line 55 of file ZYppImpl.h.

KeyRing_Ptr zypp::zypp_detail::ZYppImpl::keyRing ( ) const
inline

Definition at line 59 of file ZYppImpl.h.

Resolver_Ptr zypp::zypp_detail::ZYppImpl::resolver ( ) const
inline

Definition at line 63 of file ZYppImpl.h.

Target_Ptr zypp::zypp_detail::ZYppImpl::target ( ) const
Todo:
Signal locale change.
Exceptions
Exception

Definition at line 87 of file ZYppImpl.cc.

Target_Ptr zypp::zypp_detail::ZYppImpl::getTarget ( ) const
inline

Same as target but returns NULL if target is not initialized, instead of throwing.

Definition at line 76 of file ZYppImpl.h.

void zypp::zypp_detail::ZYppImpl::initializeTarget ( const Pathname &  root,
bool  doRebuild_r 
)
Exceptions
Exceptiontrue, just init the target, dont populate store or pool

Definition at line 94 of file ZYppImpl.cc.

void zypp::zypp_detail::ZYppImpl::finishTarget ( )
Exceptions
Exception

Definition at line 110 of file ZYppImpl.cc.

ZYppCommitResult zypp::zypp_detail::ZYppImpl::commit ( const ZYppCommitPolicy policy_r)

Commit changes and transactions.

Todo:
Remove workflow from target, lot's of it could be done here, and target used for transact.

Definition at line 123 of file ZYppImpl.cc.

void zypp::zypp_detail::ZYppImpl::installSrcPackage ( const SrcPackage_constPtr &  srcPackage_r)

Install a source package on the Target.

Definition at line 158 of file ZYppImpl.cc.

ManagedFile zypp::zypp_detail::ZYppImpl::provideSrcPackage ( const SrcPackage_constPtr &  srcPackage_r)

Install a source package on the Target.

Definition at line 165 of file ZYppImpl.cc.

Pathname zypp::zypp_detail::ZYppImpl::homePath ( ) const

Get the path where zypp related plugins store persistent data and caches.

Definition at line 175 of file ZYppImpl.cc.

Pathname zypp::zypp_detail::ZYppImpl::tmpPath ( ) const

Get the path where zypp related plugins store tmp data.

Definition at line 181 of file ZYppImpl.cc.

void zypp::zypp_detail::ZYppImpl::setHomePath ( const Pathname &  path)

set the home, if you need to change it

Definition at line 178 of file ZYppImpl.cc.

DiskUsageCounter::MountPointSet zypp::zypp_detail::ZYppImpl::diskUsage ( )

Definition at line 61 of file ZYppImpl.cc.

void zypp::zypp_detail::ZYppImpl::setPartitions ( const DiskUsageCounter::MountPointSet mp)

Definition at line 70 of file ZYppImpl.cc.

DiskUsageCounter::MountPointSet zypp::zypp_detail::ZYppImpl::getPartitions ( ) const

Definition at line 76 of file ZYppImpl.cc.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  str,
const ZYppImpl obj 
)
friend

Definition at line 192 of file ZYppImpl.cc.

std::ostream & operator<< ( std::ostream &  str,
const ZYppImpl obj 
)
related

Stream output

Definition at line 192 of file ZYppImpl.cc.

Member Data Documentation

Target_Ptr zypp::zypp_detail::ZYppImpl::_target
private

Definition at line 116 of file ZYppImpl.h.

Resolver_Ptr zypp::zypp_detail::ZYppImpl::_resolver
private

Definition at line 118 of file ZYppImpl.h.

KeyRing_Ptr zypp::zypp_detail::ZYppImpl::_keyring
private

Definition at line 120 of file ZYppImpl.h.

Pathname zypp::zypp_detail::ZYppImpl::_home_path
private

Definition at line 122 of file ZYppImpl.h.

shared_ptr<DiskUsageCounter> zypp::zypp_detail::ZYppImpl::_disk_usage
private

defined mount points, used for disk usage counting

Definition at line 124 of file ZYppImpl.h.


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