#include <ZYppImpl.h>
Public Types | ||||
| typedef std::set< Locale > | LocaleSet | |||
Public Member Functions | ||||
| ZYppImpl () | ||||
| Default ctor. | ||||
| ~ZYppImpl () | ||||
| Dtor. | ||||
| ResPool | pool () const | |||
| ResPoolProxy | poolProxy () const | |||
| SourceFeed_Ref | sourceFeed () const | |||
| KeyRing_Ptr | keyRing () const | |||
| Resolver_Ptr | resolver () const | |||
| void | addResolvables (const ResStore &store, bool installed=false) | |||
| void | removeResolvables (const ResStore &store) | |||
| Target_Ptr | target () const | |||
| ||||
| void | initializeTarget (const Pathname &root) | |||
| ||||
| ZYPP_DEPRECATED void | initTarget (const Pathname &root, bool commit_only) | |||
| ||||
| void | finishTarget () | |||
| ||||
| ZYppCommitResult | commit (const ZYppCommitPolicy &policy_r) | |||
| void | setTextLocale (const Locale &textLocale_r) | |||
| Locale | getTextLocale () const | |||
| void | setRequestedLocales (const LocaleSet &locales_r) | |||
| LocaleSet | getRequestedLocales () const | |||
| LocaleSet | getAvailableLocales () const | |||
| void | availableLocale (const Locale &locale_r) | |||
| internal use | ||||
| Arch | architecture () const | |||
| Get the system architecture. | ||||
| void | setArchitecture (const Arch &arch) | |||
| Set the system architecture. | ||||
| 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) | |||
Private Member Functions | ||||
| void | removeInstalledResolvables () | |||
Private Attributes | ||||
| Locale | _textLocale | |||
| ResPoolManager | _pool | |||
| SourceFeed_Ref | _sourceFeed | |||
| Target_Ptr | _target | |||
| Resolver_Ptr | _resolver | |||
| KeyRing_Ptr | _keyring | |||
| Arch | _architecture | |||
| Pathname | _home_path | |||
| DiskUsageCounter | _disk_usage | |||
| defined mount points, used for disk usage counting | ||||
Friends | ||||
| std::ostream & | operator<< (std::ostream &str, const ZYppImpl &obj) | |||
| Stream output. | ||||
Definition at line 41 of file ZYppImpl.h.
| typedef std::set<Locale> zypp::zypp_detail::ZYppImpl::LocaleSet |
Definition at line 116 of file ZYppImpl.h.
| zypp::zypp_detail::ZYppImpl::ZYppImpl | ( | ) |
Default ctor.
Definition at line 128 of file ZYppImpl.cc.
References _architecture, _keyring, _textLocale, MIL, and tmpPath().
| zypp::zypp_detail::ZYppImpl::~ZYppImpl | ( | ) |
| void zypp::zypp_detail::ZYppImpl::removeInstalledResolvables | ( | ) | [private] |
Definition at line 169 of file ZYppImpl.cc.
References _pool, zypp::ResPool::end(), zypp::ResPoolManager::erase(), and pool().
Referenced by commit(), finishTarget(), initializeTarget(), and initTarget().
| ResPool zypp::zypp_detail::ZYppImpl::pool | ( | void | ) | const [inline] |
Definition at line 56 of file ZYppImpl.h.
References _pool, and zypp::ResPoolManager::accessor().
Referenced by commit(), diskUsage(), getAvailableLocales(), getRequestedLocales(), removeInstalledResolvables(), and setRequestedLocales().
| ResPoolProxy zypp::zypp_detail::ZYppImpl::poolProxy | ( | ) | const [inline] |
| SourceFeed_Ref zypp::zypp_detail::ZYppImpl::sourceFeed | ( | ) | const [inline] |
| KeyRing_Ptr zypp::zypp_detail::ZYppImpl::keyRing | ( | ) | const [inline] |
| Resolver_Ptr zypp::zypp_detail::ZYppImpl::resolver | ( | ) | const [inline] |
| void zypp::zypp_detail::ZYppImpl::addResolvables | ( | const ResStore & | store, | |
| bool | installed = false | |||
| ) |
Definition at line 156 of file ZYppImpl.cc.
References _pool, zypp::ResStore::begin(), zypp::ResStore::end(), and zypp::ResPoolManager::insert().
Referenced by commit(), and initTarget().
| void zypp::zypp_detail::ZYppImpl::removeResolvables | ( | const ResStore & | store | ) |
Definition at line 161 of file ZYppImpl.cc.
References _pool, zypp::ResStore::begin(), zypp::ResStore::end(), and zypp::ResPoolManager::erase().
| Target_Ptr zypp::zypp_detail::ZYppImpl::target | ( | ) | const |
| Exception |
Definition at line 189 of file ZYppImpl.cc.
References _target, and ZYPP_THROW.
| void zypp::zypp_detail::ZYppImpl::initializeTarget | ( | const Pathname & | root | ) |
| Exception | true, just init the target, dont populate store or pool |
Definition at line 196 of file ZYppImpl.cc.
References _target, MIL, and removeInstalledResolvables().
| void zypp::zypp_detail::ZYppImpl::initTarget | ( | const Pathname & | root, | |
| bool | commit_only | |||
| ) |
| Exception | if commit_only == true, just init the target, dont populate store or pool |
Definition at line 210 of file ZYppImpl.cc.
References _target, addResolvables(), MIL, and removeInstalledResolvables().
| void zypp::zypp_detail::ZYppImpl::finishTarget | ( | ) |
| Exception |
Definition at line 229 of file ZYppImpl.cc.
References _target, and removeInstalledResolvables().
| ZYppCommitResult zypp::zypp_detail::ZYppImpl::commit | ( | const ZYppCommitPolicy & | policy_r | ) |
Definition at line 241 of file ZYppImpl.cc.
References _target, addResolvables(), zypp::ZYppCommitPolicy::dryRun(), MIL, pool(), removeInstalledResolvables(), zypp::ZYppCommitPolicy::syncPoolAfterCommit(), and ZYPP_THROW.
| void zypp::zypp_detail::ZYppImpl::setTextLocale | ( | const Locale & | textLocale_r | ) | [inline] |
| Locale zypp::zypp_detail::ZYppImpl::getTextLocale | ( | ) | const [inline] |
| void zypp::zypp_detail::ZYppImpl::setRequestedLocales | ( | const LocaleSet & | locales_r | ) |
Definition at line 277 of file ZYppImpl.cc.
References _pool, zypp::NameKindProxy::availableBegin(), zypp::NameKindProxy::availableEmpty(), zypp::Language::availableInstance(), zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), zypp::ResPoolManager::insert(), zypp::NameKindProxy::installedBegin(), zypp::NameKindProxy::installedEmpty(), zypp::ResStatus::KEEP_STATE, pool(), zypp::ResStatus::TRANSACT, and zypp::ResStatus::USER.
| ZYppImpl::LocaleSet zypp::zypp_detail::ZYppImpl::getRequestedLocales | ( | ) | const |
Definition at line 345 of file ZYppImpl.cc.
References zypp::NameKindProxy::availableBegin(), zypp::NameKindProxy::availableEmpty(), zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), zypp::NameKindProxy::installedBegin(), zypp::NameKindProxy::installedEmpty(), pool(), and zypp::ResStatus::TRANSACT.
| ZYppImpl::LocaleSet zypp::zypp_detail::ZYppImpl::getAvailableLocales | ( | ) | const |
Definition at line 331 of file ZYppImpl.cc.
References zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), and pool().
| void zypp::zypp_detail::ZYppImpl::availableLocale | ( | const Locale & | locale_r | ) |
internal use
Definition at line 363 of file ZYppImpl.cc.
References _pool, zypp::Language::availableInstance(), and zypp::ResPoolManager::insert().
| Arch zypp::zypp_detail::ZYppImpl::architecture | ( | ) | const [inline] |
| void zypp::zypp_detail::ZYppImpl::setArchitecture | ( | const Arch & | arch | ) |
Set the system architecture.
This should be used for testing/debugging only since the Target backend won't be able to install incompatible packages ;-)
Definition at line 371 of file ZYppImpl.cc.
References _architecture, and _resolver.
| Pathname zypp::zypp_detail::ZYppImpl::homePath | ( | ) | const |
Get the path where zypp related plugins store persistent data and caches.
Definition at line 380 of file ZYppImpl.cc.
References _home_path.
| Pathname zypp::zypp_detail::ZYppImpl::tmpPath | ( | ) | const |
Get the path where zypp related plugins store tmp data.
Definition at line 386 of file ZYppImpl.cc.
References zypp::filesystem::TmpPath::path().
Referenced by ZYppImpl().
| void zypp::zypp_detail::ZYppImpl::setHomePath | ( | const Pathname & | path | ) |
set the home, if you need to change it
Definition at line 383 of file ZYppImpl.cc.
References _home_path.
| DiskUsageCounter::MountPointSet zypp::zypp_detail::ZYppImpl::diskUsage | ( | ) |
Definition at line 180 of file ZYppImpl.cc.
References _disk_usage, zypp::DiskUsageCounter::disk_usage(), and pool().
| void zypp::zypp_detail::ZYppImpl::setPartitions | ( | const DiskUsageCounter::MountPointSet & | mp | ) |
Definition at line 183 of file ZYppImpl.cc.
References _disk_usage, and zypp::DiskUsageCounter::setMountPoints().
| std::ostream & operator<< | ( | std::ostream & | str, | |
| const ZYppImpl & | obj | |||
| ) | [friend] |
Definition at line 113 of file ZYppImpl.h.
Referenced by getTextLocale(), setTextLocale(), and ZYppImpl().
Definition at line 151 of file ZYppImpl.h.
Referenced by addResolvables(), availableLocale(), pool(), poolProxy(), removeInstalledResolvables(), removeResolvables(), and setRequestedLocales().
Target_Ptr zypp::zypp_detail::ZYppImpl::_target [private] |
Definition at line 155 of file ZYppImpl.h.
Referenced by commit(), finishTarget(), initializeTarget(), initTarget(), and target().
Resolver_Ptr zypp::zypp_detail::ZYppImpl::_resolver [private] |
KeyRing_Ptr zypp::zypp_detail::ZYppImpl::_keyring [private] |
Definition at line 161 of file ZYppImpl.h.
Referenced by architecture(), setArchitecture(), and ZYppImpl().
Pathname zypp::zypp_detail::ZYppImpl::_home_path [private] |
defined mount points, used for disk usage counting
Definition at line 165 of file ZYppImpl.h.
Referenced by diskUsage(), and setPartitions().
1.5.0