libzypp
10.5.0
|
#include <ZYpp.h>
Public Types | |
typedef intrusive_ptr< ZYpp > | Ptr |
typedef intrusive_ptr< const ZYpp > | constPtr |
typedef ZYppCommitResult | CommitResult |
Public Member Functions | |
ResPool | pool () const |
Access to the global resolvable pool. | |
ResPoolProxy | poolProxy () const |
Pool of ui::Selectable. | |
DiskUsageCounter::MountPointSet | diskUsage () |
void | setPartitions (const DiskUsageCounter::MountPointSet &mp) |
DiskUsageCounter::MountPointSet | getPartitions () 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=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 |
ZYPP_DEPRECATED void | setTextLocale (const Locale &textLocale_r) |
Set the preferred locale for translated labels, descriptions, etc. | |
ZYPP_DEPRECATED Locale | getTextLocale () const |
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 | |
ZYPP_DEPRECATED Arch | architecture () const |
Get the system architecture. | |
ZYPP_DEPRECATED void | setArchitecture (const Arch &arch) |
Set the system architecture. | |
ZYPP_DEPRECATED int | applyLocks () |
move to pool | |
| |
void | setRequestedLocales (const LocaleSet &locales_r) ZYPP_DEPRECATED |
Set the requested locales. | |
const LocaleSet & | getRequestedLocales () const ZYPP_DEPRECATED |
const LocaleSet & | getAvailableLocales () const ZYPP_DEPRECATED |
Get the set of available locales. | |
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. |
typedef intrusive_ptr<ZYpp> zypp::ZYpp::Ptr |
typedef intrusive_ptr<const ZYpp> zypp::ZYpp::constPtr |
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 global resolvable pool.
Same as zypp::ResPool::instance
ResPoolProxy zypp::ZYpp::poolProxy | ( | ) | const |
Pool of ui::Selectable.
Based on the ResPool, ui::Selectable groups ResObjetcs of same kind and name.
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 |
Target_Ptr zypp::ZYpp::getTarget | ( | ) | const |
void zypp::ZYpp::initializeTarget | ( | const Pathname & | root, |
bool | doRebuild_r = false |
||
) |
ZYppCommitResult zypp::ZYpp::commit | ( | const ZYppCommitPolicy & | policy_r | ) |
Commit changes and transactions.
\ref | CommitPolicy |
Exception |
void zypp::ZYpp::installSrcPackage | ( | const SrcPackage_constPtr & | srcPackage_r | ) |
ZYPP_DEPRECATED void zypp::ZYpp::setTextLocale | ( | const Locale & | textLocale_r | ) | [inline] |
Set the preferred locale for translated labels, descriptions, etc.
passed to the UI.
ZYPP_DEPRECATED Locale zypp::ZYpp::getTextLocale | ( | ) | const [inline] |
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.
const LocaleSet & zypp::ZYpp::getRequestedLocales | ( | ) | const |
const LocaleSet & zypp::ZYpp::getAvailableLocales | ( | ) | const |
Get the set of available locales.
This is computed from the package data so it actually represents all locales packages claim to support.
Pathname zypp::ZYpp::homePath | ( | ) | const |
Pathname zypp::ZYpp::tmpPath | ( | ) | const |
void zypp::ZYpp::setHomePath | ( | const Pathname & | path | ) |
ZYPP_DEPRECATED Arch zypp::ZYpp::architecture | ( | ) | const [inline] |
Get the system architecture.
ZYPP_DEPRECATED void zypp::ZYpp::setArchitecture | ( | const Arch & | arch | ) | [inline] |
Set the system architecture.
This should be used for testing/debugging only since the Target backend won't be able to install incompatible packages ;-)
ZYPP_DEPRECATED int zypp::ZYpp::applyLocks | ( | ) | [inline] |
ZConfig::apply_locks_file tells whether locks are applied or not.
std::ostream & zypp::ZYpp::dumpOn | ( | std::ostream & | str | ) | const [protected, virtual] |
Stream output.
Reimplemented from zypp::base::ReferenceCounted.
friend class ZYppFactory [friend] |
RW_pointer<Impl> zypp::ZYpp::_pimpl [private] |