zypp::ZYpp Class Reference

#include <ZYpp.h>

Inheritance diagram for zypp::ZYpp:

zypp::base::ReferenceCounted NonCopyable List of all members.

Public Types

typedef intrusive_ptr< ZYppPtr
typedef intrusive_ptr< const
ZYpp
constPtr
typedef ZYppCommitResult CommitResult
typedef std::set< LocaleLocaleSet

Public Member Functions

ResPool pool () const
 Pool of ResStatus for individual ResObjetcs.
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)
Target_Ptr target () const
 
Exceptions:
Exception 

void initTarget (const Pathname &root, bool commit_only=false)
 
Exceptions:
Exception if commit_only == true, just init, don't populate store or pool

void finishTarget ()
 
Exceptions:
Exception 

ZYppCommitResult commit (const ZYppCommitPolicy &policy_r)
 Commit changes and transactions.
Resolver_Ptr resolver () const
KeyRing_Ptr keyRing () const
void setTextLocale (const Locale &textLocale_r)
 Set the preferd 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.

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< ImplImpl_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.

Detailed Description

Todo:
define Exceptions

Definition at line 53 of file ZYpp.h.


Member Typedef Documentation

typedef intrusive_ptr<ZYpp> zypp::ZYpp::Ptr
 

Definition at line 57 of file ZYpp.h.

typedef intrusive_ptr<const ZYpp> zypp::ZYpp::constPtr
 

Definition at line 58 of file ZYpp.h.

typedef ZYppCommitResult zypp::ZYpp::CommitResult
 

Definition at line 101 of file ZYpp.h.

typedef std::set<Locale> zypp::ZYpp::LocaleSet
 

Definition at line 123 of file ZYpp.h.

typedef zypp_detail::ZYppImpl zypp::ZYpp::Impl [private]
 

Definition at line 173 of file ZYpp.h.

typedef shared_ptr<Impl> zypp::ZYpp::Impl_Ptr [private]
 

Definition at line 174 of file ZYpp.h.


Constructor & Destructor Documentation

zypp::ZYpp::~ZYpp  )  [protected, virtual]
 

Dtor.

Definition at line 38 of file ZYpp.cc.

zypp::ZYpp::ZYpp const Impl_Ptr impl_r  )  [explicit, private]
 

Factory ctor.

Definition at line 29 of file ZYpp.cc.


Member Function Documentation

ResPool zypp::ZYpp::pool  )  const
 

Pool of ResStatus for individual ResObjetcs.

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 66 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::addResolvables const ResStore store,
bool  installed = false
 

Definition at line 84 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::removeResolvables const ResStore store  ) 
 

Definition at line 89 of file ZYpp.cc.

References _pimpl.

DiskUsageCounter::MountPointSet zypp::ZYpp::diskUsage  ) 
 

Definition at line 60 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::setPartitions const DiskUsageCounter::MountPointSet mp  ) 
 

Definition at line 63 of file ZYpp.cc.

References _pimpl.

Target_Ptr zypp::ZYpp::target  )  const
 

Exceptions:
Exception 

Definition at line 96 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::initTarget const Pathname root,
bool  commit_only = false
 

Exceptions:
Exception if commit_only == true, just init, don't populate store or pool

Definition at line 99 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::finishTarget  ) 
 

Exceptions:
Exception 

Definition at line 102 of file ZYpp.cc.

References _pimpl.

ZYppCommitResult zypp::ZYpp::commit const ZYppCommitPolicy policy_r  ) 
 

Commit changes and transactions.

Parameters:
\ref CommitPolicy
Returns:
CommitResult
Exceptions:
Exception 

Definition at line 105 of file ZYpp.cc.

References _pimpl.

Resolver_Ptr zypp::ZYpp::resolver  )  const
 

Definition at line 69 of file ZYpp.cc.

References _pimpl.

KeyRing_Ptr zypp::ZYpp::keyRing  )  const
 

Definition at line 72 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::setTextLocale const Locale textLocale_r  ) 
 

Set the preferd locale for translated labels, descriptions, etc.

passed to the UI.

Definition at line 110 of file ZYpp.cc.

References _pimpl.

Locale zypp::ZYpp::getTextLocale  )  const
 

Definition at line 113 of file ZYpp.cc.

References _pimpl.

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 116 of file ZYpp.cc.

References _pimpl.

ZYpp::LocaleSet zypp::ZYpp::getRequestedLocales  )  const
 

Definition at line 119 of file ZYpp.cc.

References _pimpl.

ZYpp::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.

Definition at line 122 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::availableLocale const Locale locale_r  ) 
 

internal use only

Definition at line 125 of file ZYpp.cc.

References _pimpl.

Pathname zypp::ZYpp::homePath  )  const
 

Get the path where zypp related plugins store persistent data and caches.

Definition at line 134 of file ZYpp.cc.

References _pimpl.

Pathname zypp::ZYpp::tmpPath  )  const
 

Get the path where zypp related plugins store temp data.

Definition at line 137 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::setHomePath const Pathname path  ) 
 

set the home, if you need to change it

Definition at line 140 of file ZYpp.cc.

References _pimpl.

Arch zypp::ZYpp::architecture  )  const
 

Get the system architecture.

Definition at line 128 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::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 131 of file ZYpp.cc.

References _pimpl.

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.


Friends And Related Function Documentation

friend class ZYppFactory [friend]
 

Factory.

Definition at line 170 of file ZYpp.h.


Member Data Documentation

RW_pointer<Impl> zypp::ZYpp::_pimpl [private]
 

Pointer to implementation.

Definition at line 180 of file ZYpp.h.

Referenced by addResolvables(), architecture(), availableLocale(), commit(), diskUsage(), dumpOn(), finishTarget(), getAvailableLocales(), getRequestedLocales(), getTextLocale(), homePath(), initTarget(), keyRing(), pool(), poolProxy(), removeResolvables(), resolver(), setArchitecture(), setHomePath(), setPartitions(), setRequestedLocales(), setTextLocale(), target(), and tmpPath().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:31 2006 for zypp by  doxygen 1.4.6