|
libzypp
9.1.2
|
#include <ZYppImpl.h>
Public Member Functions | |
| ZYppImpl () | |
| Default ctor. | |
| ~ZYppImpl () | |
| Dtor. | |
| 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. | |
| void | initializeTarget (const Pathname &root, bool doRebuild_r) |
| void | finishTarget () |
| ZYppCommitResult | commit (const ZYppCommitPolicy &policy_r) |
| Commit changes and transactions. | |
| void | installSrcPackage (const SrcPackage_constPtr &srcPackage_r) |
| Install a source package on the Target. | |
| Pathname | homePath () const |
| Get the path where zypp related plugins store persistent data and caches. | |
| Pathname | tmpPath () const |
| Get the path where zypp related plugins store tmp data. | |
| void | setHomePath (const Pathname &path) |
| set the home, if you need to change it | |
| 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 | |
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) |
Definition at line 39 of file ZYppImpl.h.
Default ctor.
Definition at line 41 of file ZYppImpl.cc.
References _keyring, zypp::ZConfig::about(), zypp::ZConfig::instance(), MIL, and tmpPath().
Dtor.
Definition at line 55 of file ZYppImpl.cc.
| ResPool zypp::zypp_detail::ZYppImpl::pool | ( | void | ) | const [inline] |
Definition at line 51 of file ZYppImpl.h.
References zypp::ResPool::instance().
Referenced by commit(), diskUsage(), and zypp::ZYpp::pool().
| ResPoolProxy zypp::zypp_detail::ZYppImpl::poolProxy | ( | ) | const [inline] |
Definition at line 54 of file ZYppImpl.h.
References zypp::ResPool::instance(), and zypp::ResPool::proxy().
Referenced by zypp::ZYpp::poolProxy().
| KeyRing_Ptr zypp::zypp_detail::ZYppImpl::keyRing | ( | ) | const [inline] |
Definition at line 58 of file ZYppImpl.h.
Referenced by zypp::ZYpp::keyRing().
| Resolver_Ptr zypp::zypp_detail::ZYppImpl::resolver | ( | ) | const [inline] |
Definition at line 62 of file ZYppImpl.h.
Referenced by zypp::ZYpp::resolver().
| Target_Ptr zypp::zypp_detail::ZYppImpl::target | ( | ) | const |
| Exception |
Definition at line 87 of file ZYppImpl.cc.
References _target, and ZYPP_THROW.
Referenced by zypp::ZYpp::target().
| 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 75 of file ZYppImpl.h.
Referenced by zypp::ZYpp::getTarget().
| void zypp::zypp_detail::ZYppImpl::initializeTarget | ( | const Pathname & | root, |
| bool | doRebuild_r | ||
| ) |
| Exception | true, just init the target, dont populate store or pool |
Definition at line 94 of file ZYppImpl.cc.
Referenced by zypp::ZYpp::initializeTarget().
| Exception |
Definition at line 110 of file ZYppImpl.cc.
References _target.
Referenced by zypp::ZYpp::finishTarget().
| ZYppCommitResult zypp::zypp_detail::ZYppImpl::commit | ( | const ZYppCommitPolicy & | policy_r | ) |
Commit changes and transactions.
Definition at line 123 of file ZYppImpl.cc.
References _target, DBG, zypp::ZYppCommitPolicy::dryRun(), zypp::sat::Pool::instance(), MIL, pool(), zypp::ZYppCommitPolicy::syncPoolAfterCommit(), zypp::sat::Pool::systemRepoAlias(), and ZYPP_THROW.
Referenced by zypp::ZYpp::commit().
| void zypp::zypp_detail::ZYppImpl::installSrcPackage | ( | const SrcPackage_constPtr & | srcPackage_r | ) |
Install a source package on the Target.
Definition at line 156 of file ZYppImpl.cc.
References _target, and ZYPP_THROW.
Referenced by zypp::ZYpp::installSrcPackage().
| Pathname zypp::zypp_detail::ZYppImpl::homePath | ( | ) | const |
Get the path where zypp related plugins store persistent data and caches.
Definition at line 166 of file ZYppImpl.cc.
References _home_path.
Referenced by zypp::ZYpp::homePath().
| Pathname zypp::zypp_detail::ZYppImpl::tmpPath | ( | ) | const |
Get the path where zypp related plugins store tmp data.
Definition at line 172 of file ZYppImpl.cc.
References zypp::filesystem::TmpPath::path().
Referenced by zypp::ZYpp::tmpPath(), and ZYppImpl().
| void zypp::zypp_detail::ZYppImpl::setHomePath | ( | const Pathname & | path | ) |
set the home, if you need to change it
Definition at line 169 of file ZYppImpl.cc.
References _home_path.
Referenced by zypp::ZYpp::setHomePath().
Definition at line 61 of file ZYppImpl.cc.
References _disk_usage, zypp::DiskUsageCounter::detectMountPoints(), pool(), and setPartitions().
Referenced by zypp::ZYpp::diskUsage().
| void zypp::zypp_detail::ZYppImpl::setPartitions | ( | const DiskUsageCounter::MountPointSet & | mp | ) |
Definition at line 70 of file ZYppImpl.cc.
References _disk_usage.
Referenced by diskUsage(), and zypp::ZYpp::setPartitions().
Definition at line 76 of file ZYppImpl.cc.
References _disk_usage, and zypp::DiskUsageCounter::detectMountPoints().
Referenced by zypp::ZYpp::getPartitions().
| std::ostream& operator<< | ( | std::ostream & | str, |
| const ZYppImpl & | obj | ||
| ) | [friend] |
Definition at line 183 of file ZYppImpl.cc.
| std::ostream & operator<< | ( | std::ostream & | str, |
| const ZYppImpl & | obj | ||
| ) | [related] |
Stream output
Definition at line 183 of file ZYppImpl.cc.
Target_Ptr zypp::zypp_detail::ZYppImpl::_target [private] |
Definition at line 112 of file ZYppImpl.h.
Referenced by commit(), finishTarget(), initializeTarget(), installSrcPackage(), and target().
Resolver_Ptr zypp::zypp_detail::ZYppImpl::_resolver [private] |
Definition at line 114 of file ZYppImpl.h.
KeyRing_Ptr zypp::zypp_detail::ZYppImpl::_keyring [private] |
Definition at line 116 of file ZYppImpl.h.
Referenced by ZYppImpl().
Pathname zypp::zypp_detail::ZYppImpl::_home_path [private] |
Definition at line 118 of file ZYppImpl.h.
Referenced by homePath(), and setHomePath().
shared_ptr<DiskUsageCounter> zypp::zypp_detail::ZYppImpl::_disk_usage [private] |
defined mount points, used for disk usage counting
Definition at line 120 of file ZYppImpl.h.
Referenced by diskUsage(), getPartitions(), and setPartitions().
1.7.6.1