zypp::ZYpp Class Reference

#include <ZYpp.h>

Inheritance diagram for zypp::ZYpp:
[legend]

List of all members.

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
 
Exceptions:
Exception 

void initializeTarget (const Pathname &root)
 
Exceptions:
Exception just init the target, dont populate store or pool

ZYPP_DEPRECATED void initTarget (const Pathname &root, bool commit_only=false)
 
Exceptions:
Exception if commit_only == true, just init the target, dont populate store or pool

void finishTarget ()
 
Exceptions:
Exception 

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.


Detailed Description

Todo:
define Exceptions ZYpp API main interface

Definition at line 54 of file ZYpp.h.


Member Typedef Documentation

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

Definition at line 58 of file ZYpp.h.

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

Definition at line 59 of file ZYpp.h.

typedef ZYppCommitResult zypp::ZYpp::CommitResult

Definition at line 110 of file ZYpp.h.

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

Definition at line 137 of file ZYpp.h.

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

Definition at line 197 of file ZYpp.h.

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

Definition at line 198 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 ( 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 
)

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.

DiskUsageCounter::MountPointSet zypp::ZYpp::getPartitions (  )  const

Definition at line 66 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::initializeTarget ( const Pathname &  root  ) 

Exceptions:
Exception just init the target, dont populate store or pool

Definition at line 102 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 the target, dont populate store or pool

Definition at line 99 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::finishTarget (  ) 

Exceptions:
Exception 

Definition at line 105 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 108 of file ZYpp.cc.

References _pimpl.

void zypp::ZYpp::installSrcPackage ( const SrcPackage_constPtr &  srcPackage_r  ) 

Install a source package on the Target.

Exceptions:
Exception 

Definition at line 111 of file ZYpp.cc.

References _pimpl.

Resolver_Ptr zypp::ZYpp::resolver (  )  const

Definition at line 72 of file ZYpp.cc.

References _pimpl.

KeyRing_Ptr zypp::ZYpp::keyRing (  )  const

Definition at line 75 of file ZYpp.cc.

References _pimpl.

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

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

passed to the UI.

Definition at line 116 of file ZYpp.cc.

References _pimpl.

Locale zypp::ZYpp::getTextLocale (  )  const

Definition at line 119 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 122 of file ZYpp.cc.

References _pimpl.

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

Definition at line 125 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 128 of file ZYpp.cc.

References _pimpl.

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

internal use only

Definition at line 131 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 140 of file ZYpp.cc.

References _pimpl.

Pathname zypp::ZYpp::tmpPath (  )  const

Get the path where zypp related plugins store temp data.

Definition at line 143 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 146 of file ZYpp.cc.

References _pimpl.

Arch zypp::ZYpp::architecture (  )  const

Get the system architecture.

Definition at line 134 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 137 of file ZYpp.cc.

References _pimpl.

int zypp::ZYpp::applyLocks (  ) 

Apply persistant locks to current pool. Call this before solving

Returns:
Number of items locked

Definition at line 149 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 194 of file ZYpp.h.


Member Data Documentation

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().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:17 2007 for libzypp by  doxygen 1.5.3