#include <ZYpp.h>
Public Types | ||||
| typedef intrusive_ptr< ZYpp > | Ptr | |||
| typedef intrusive_ptr< const ZYpp > | constPtr | |||
| typedef ZYppCommitResult | CommitResult | |||
| typedef std::set < Locale > | LocaleSet | |||
Public Member Functions | ||||
| ResPool | pool () const | |||
| Access to the main resolvable pool zypp::ResPool. | ||||
| ResPoolProxy | poolProxy () const | |||
| Pool of ui::Selectable. | ||||
| void | addResolvables (const ResStore &store, bool installed=false) | |||
| void | removeResolvables (const ResStore &store) | |||
| DiskUsageCounter::MountPointSet | diskUsage () | |||
| void | setPartitions (const DiskUsageCounter::MountPointSet &mp) | |||
| DiskUsageCounter::MountPointSet | getPartitions () const | |||
| Target_Ptr | target () const | |||
| ||||
| void | initializeTarget (const Pathname &root) | |||
|
| ||||
| ZYPP_DEPRECATED void | initTarget (const Pathname &root, bool commit_only=false) | |||
|
| ||||
| 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. | ||||
| Resolver_Ptr | resolver () const | |||
| KeyRing_Ptr | keyRing () const | |||
| void | setTextLocale (const Locale &textLocale_r) | |||
| Set the preferred locale for translated labels, descriptions, etc. | ||||
| Locale | getTextLocale () const | |||
| void | setRequestedLocales (const LocaleSet &locales_r) | |||
| Set the requested locales. | ||||
| LocaleSet | getRequestedLocales () const | |||
| LocaleSet | getAvailableLocales () const | |||
| Get the set of available locales. | ||||
| void | availableLocale (const Locale &locale_r) | |||
| internal use only | ||||
| 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 temp data. | ||||
| void | setHomePath (const Pathname &path) | |||
| set the home, if you need to change it | ||||
| Arch | architecture () const | |||
| Get the system architecture. | ||||
| void | setArchitecture (const Arch &arch) | |||
| Set the system architecture. | ||||
| int | applyLocks () | |||
Protected Member Functions | ||||
| virtual | ~ZYpp () | |||
| Dtor. | ||||
| virtual std::ostream & | dumpOn (std::ostream &str) const | |||
| Stream output. | ||||
Private Types | ||||
| typedef zypp_detail::ZYppImpl | Impl | |||
| typedef shared_ptr < Impl > | Impl_Ptr | |||
Private Member Functions | ||||
| ZYpp (const Impl_Ptr &impl_r) | ||||
| Factory ctor. | ||||
Private Attributes | ||||
| RW_pointer< Impl > | _pimpl | |||
| Pointer to implementation. | ||||
Friends | ||||
| class | ZYppFactory | |||
| Factory. | ||||
Definition at line 54 of file ZYpp.h.
| typedef intrusive_ptr<ZYpp> zypp::ZYpp::Ptr |
| typedef intrusive_ptr<const ZYpp> zypp::ZYpp::constPtr |
| typedef std::set<Locale> zypp::ZYpp::LocaleSet |
typedef zypp_detail::ZYppImpl zypp::ZYpp::Impl [private] |
typedef shared_ptr<Impl> zypp::ZYpp::Impl_Ptr [private] |
| zypp::ZYpp::ZYpp | ( | const Impl_Ptr & | impl_r | ) | [explicit, private] |
| ResPool zypp::ZYpp::pool | ( | void | ) | const |
Access to the main resolvable pool zypp::ResPool.
Definition at line 57 of file ZYpp.cc.
References _pimpl.
| ResPoolProxy zypp::ZYpp::poolProxy | ( | ) | const |
Pool of ui::Selectable.
Based on the ResPool, ui::Selectable groups ResObjetcs of same kind and name.
Definition at line 69 of file ZYpp.cc.
References _pimpl.
| void zypp::ZYpp::addResolvables | ( | const ResStore & | store, | |
| bool | installed = false | |||
| ) |
| void zypp::ZYpp::removeResolvables | ( | const ResStore & | store | ) |
| DiskUsageCounter::MountPointSet zypp::ZYpp::diskUsage | ( | ) |
| void zypp::ZYpp::setPartitions | ( | const DiskUsageCounter::MountPointSet & | mp | ) |
| DiskUsageCounter::MountPointSet zypp::ZYpp::getPartitions | ( | ) | const |
| Target_Ptr zypp::ZYpp::target | ( | ) | const |
| void zypp::ZYpp::initializeTarget | ( | const Pathname & | root | ) |
| void zypp::ZYpp::initTarget | ( | const Pathname & | root, | |
| bool | commit_only = false | |||
| ) |
| void zypp::ZYpp::finishTarget | ( | ) |
| ZYppCommitResult zypp::ZYpp::commit | ( | const ZYppCommitPolicy & | policy_r | ) |
Commit changes and transactions.
| \ref | CommitPolicy |
| Exception |
Definition at line 108 of file ZYpp.cc.
References _pimpl.
| void zypp::ZYpp::installSrcPackage | ( | const SrcPackage_constPtr & | srcPackage_r | ) |
| Resolver_Ptr zypp::ZYpp::resolver | ( | ) | const |
| void zypp::ZYpp::setTextLocale | ( | const Locale & | textLocale_r | ) |
| Locale zypp::ZYpp::getTextLocale | ( | ) | const |
| void zypp::ZYpp::setRequestedLocales | ( | const LocaleSet & | locales_r | ) |
Set the requested locales.
Languages to be supported by the system, e.g. language specific packages to be installed. This function operates on the pool, so only the locales that are available as resolvables are marked as requested. The rest is ignored.
Definition at line 122 of file ZYpp.cc.
References _pimpl.
| ZYpp::LocaleSet zypp::ZYpp::getRequestedLocales | ( | ) | const |
| ZYpp::LocaleSet zypp::ZYpp::getAvailableLocales | ( | ) | const |
| void zypp::ZYpp::availableLocale | ( | const Locale & | locale_r | ) |
| Pathname zypp::ZYpp::homePath | ( | ) | const |
| Pathname zypp::ZYpp::tmpPath | ( | ) | const |
| void zypp::ZYpp::setHomePath | ( | const Pathname & | path | ) |
| Arch zypp::ZYpp::architecture | ( | ) | const |
| void zypp::ZYpp::setArchitecture | ( | const Arch & | arch | ) |
| int zypp::ZYpp::applyLocks | ( | ) |
| std::ostream & zypp::ZYpp::dumpOn | ( | std::ostream & | str | ) | const [protected, virtual] |
Stream output.
Reimplemented from zypp::base::ReferenceCounted.
Definition at line 46 of file ZYpp.cc.
References _pimpl.
friend class ZYppFactory [friend] |
RW_pointer<Impl> zypp::ZYpp::_pimpl [private] |
Pointer to implementation.
Definition at line 204 of file ZYpp.h.
Referenced by addResolvables(), applyLocks(), architecture(), availableLocale(), commit(), diskUsage(), dumpOn(), finishTarget(), getAvailableLocales(), getPartitions(), getRequestedLocales(), getTextLocale(), homePath(), initializeTarget(), initTarget(), installSrcPackage(), keyRing(), pool(), poolProxy(), removeResolvables(), resolver(), setArchitecture(), setHomePath(), setPartitions(), setRequestedLocales(), setTextLocale(), target(), and tmpPath().
1.5.3