libzypp
11.13.5
|
#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. | |
![]() | |
ReferenceCounted () | |
Default ctor. | |
ReferenceCounted (const ReferenceCounted &rhs) | |
Copy ctor. | |
virtual | ~ReferenceCounted () |
Dtor. | |
ReferenceCounted & | operator= (const ReferenceCounted &) |
Assignment. | |
unsigned | refCount () const |
Return reference counter value. | |
void | ref () const |
Add a reference. | |
void | unref () const |
Release a reference. |
Protected Member Functions | |
virtual | ~ZYpp () |
Dtor. | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Stream output. | |
![]() | |
virtual void | ref_to (unsigned) const |
Trigger derived classes after refCount was increased. | |
virtual void | unref_to (unsigned) const |
Trigger derived classes after refCount was decreased. |
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. |
Additional Inherited Members | |
![]() | |
static void | add_ref (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
static void | release (const ReferenceCounted *ptr_r) |
Called by zypp::intrusive_ptr to add a reference. | |
![]() | |
void | intrusive_ptr_add_ref (const ReferenceCounted *ptr_r) |
void | intrusive_ptr_release (const ReferenceCounted *ptr_r) |
std::ostream & | operator<< (std::ostream &str, const ReferenceCounted &obj) |
typedef intrusive_ptr<ZYpp> zypp::ZYpp::Ptr |
typedef intrusive_ptr<const ZYpp> zypp::ZYpp::constPtr |
|
private |
|
private |
|
explicitprivate |
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 | ) |
|
inline |
Set the preferred locale for translated labels, descriptions, etc.
passed to the UI.
|
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 | ) |
|
inline |
Get the system architecture.
|
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 ;-)
|
inline |
ZConfig::apply_locks_file tells whether locks are applied or not.
|
protectedvirtual |
Stream output.
Reimplemented from zypp::base::ReferenceCounted.
|
friend |
|
private |