zypp::zypp_detail::ZYppImpl Class Reference

#include <ZYppImpl.h>

List of all members.

Public Types

typedef std::set< LocaleLocaleSet

Public Member Functions

 ZYppImpl ()
 Default ctor.
 ~ZYppImpl ()
 Dtor.
ResPool pool () const
ResPoolProxy poolProxy () const
SourceFeed_Ref sourceFeed () const
KeyRing_Ptr keyRing () const
Resolver_Ptr resolver () const
void addResolvables (const ResStore &store, bool installed=false)
void removeResolvables (const ResStore &store)
Target_Ptr target () const
 
Exceptions:
Exception 

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)
void setTextLocale (const Locale &textLocale_r)
Locale getTextLocale () const
void setRequestedLocales (const LocaleSet &locales_r)
LocaleSet getRequestedLocales () const
LocaleSet getAvailableLocales () const
void availableLocale (const Locale &locale_r)
 internal use
Arch architecture () const
 Get the system architecture.
void setArchitecture (const Arch &arch)
 Set the system architecture.
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 tmp data.
void setHomePath (const Pathname &path)
 set the home, if you need to change it
DiskUsageCounter::MountPointSet diskUsage ()
void setPartitions (const DiskUsageCounter::MountPointSet &mp)

Private Member Functions

void removeInstalledResolvables ()

Private Attributes

Locale _textLocale
ResPoolManager _pool
SourceFeed_Ref _sourceFeed
Target_Ptr _target
Resolver_Ptr _resolver
KeyRing_Ptr _keyring
Arch _architecture
Pathname _home_path
DiskUsageCounter _disk_usage
 defined mount points, used for disk usage counting

Friends

std::ostream & operator<< (std::ostream &str, const ZYppImpl &obj)


Detailed Description

Definition at line 41 of file ZYppImpl.h.


Member Typedef Documentation

typedef std::set<Locale> zypp::zypp_detail::ZYppImpl::LocaleSet
 

Definition at line 110 of file ZYppImpl.h.


Constructor & Destructor Documentation

zypp::zypp_detail::ZYppImpl::ZYppImpl  ) 
 

Default ctor.

Definition at line 128 of file ZYppImpl.cc.

References _architecture, _keyring, _textLocale, MIL, and tmpPath().

zypp::zypp_detail::ZYppImpl::~ZYppImpl  ) 
 

Dtor.

Definition at line 150 of file ZYppImpl.cc.


Member Function Documentation

void zypp::zypp_detail::ZYppImpl::removeInstalledResolvables  )  [private]
 

Definition at line 169 of file ZYppImpl.cc.

References _pool, zypp::ResPool::end(), zypp::ResPoolManager::erase(), and pool().

Referenced by commit(), finishTarget(), and initTarget().

ResPool zypp::zypp_detail::ZYppImpl::pool void   )  const [inline]
 

Definition at line 56 of file ZYppImpl.h.

References _pool, and zypp::ResPoolManager::accessor().

Referenced by commit(), diskUsage(), getAvailableLocales(), getRequestedLocales(), removeInstalledResolvables(), and setRequestedLocales().

ResPoolProxy zypp::zypp_detail::ZYppImpl::poolProxy  )  const [inline]
 

Definition at line 59 of file ZYppImpl.h.

References _pool, and zypp::ResPoolManager::proxy().

SourceFeed_Ref zypp::zypp_detail::ZYppImpl::sourceFeed  )  const [inline]
 

Definition at line 63 of file ZYppImpl.h.

References _sourceFeed.

KeyRing_Ptr zypp::zypp_detail::ZYppImpl::keyRing  )  const [inline]
 

Definition at line 67 of file ZYppImpl.h.

References _keyring.

Resolver_Ptr zypp::zypp_detail::ZYppImpl::resolver  )  const [inline]
 

Definition at line 71 of file ZYppImpl.h.

References _resolver.

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

Definition at line 156 of file ZYppImpl.cc.

References _pool, zypp::ResStore::begin(), zypp::ResStore::end(), and zypp::ResPoolManager::insert().

Referenced by commit().

void zypp::zypp_detail::ZYppImpl::removeResolvables const ResStore store  ) 
 

Definition at line 161 of file ZYppImpl.cc.

References _pool, zypp::ResStore::begin(), zypp::ResStore::end(), and zypp::ResPoolManager::erase().

Target_Ptr zypp::zypp_detail::ZYppImpl::target  )  const
 

Exceptions:
Exception 

Definition at line 189 of file ZYppImpl.cc.

References _target, and ZYPP_THROW.

void zypp::zypp_detail::ZYppImpl::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 196 of file ZYppImpl.cc.

References _target, MIL, and removeInstalledResolvables().

void zypp::zypp_detail::ZYppImpl::finishTarget  ) 
 

Exceptions:
Exception 

Definition at line 214 of file ZYppImpl.cc.

References _target, and removeInstalledResolvables().

ZYppCommitResult zypp::zypp_detail::ZYppImpl::commit const ZYppCommitPolicy policy_r  ) 
 

Todo:
Remove workflow from target, lot's of it could be done here, and target used for transact.

Definition at line 226 of file ZYppImpl.cc.

References _target, addResolvables(), zypp::ZYppCommitPolicy::dryRun(), MIL, pool(), removeInstalledResolvables(), and ZYPP_THROW.

void zypp::zypp_detail::ZYppImpl::setTextLocale const Locale textLocale_r  )  [inline]
 

Todo:
Signal locale change.

Definition at line 101 of file ZYppImpl.h.

References _textLocale.

Locale zypp::zypp_detail::ZYppImpl::getTextLocale  )  const [inline]
 

Definition at line 104 of file ZYppImpl.h.

References _textLocale.

void zypp::zypp_detail::ZYppImpl::setRequestedLocales const LocaleSet locales_r  ) 
 

Definition at line 255 of file ZYppImpl.cc.

References _pool, zypp::Language::availableInstance(), zypp::ResPoolManager::insert(), and pool().

ZYppImpl::LocaleSet zypp::zypp_detail::ZYppImpl::getRequestedLocales  )  const
 

Definition at line 323 of file ZYppImpl.cc.

References zypp::NameKindProxy::availableBegin(), zypp::NameKindProxy::availableEmpty(), zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), zypp::NameKindProxy::installedBegin(), zypp::NameKindProxy::installedEmpty(), pool(), and zypp::ResStatus::TRANSACT.

ZYppImpl::LocaleSet zypp::zypp_detail::ZYppImpl::getAvailableLocales  )  const
 

Definition at line 309 of file ZYppImpl.cc.

References zypp::ResPool::byKindBegin(), zypp::ResPool::byKindEnd(), and pool().

void zypp::zypp_detail::ZYppImpl::availableLocale const Locale locale_r  ) 
 

internal use

Definition at line 341 of file ZYppImpl.cc.

References _pool, and zypp::ResPoolManager::insert().

Arch zypp::zypp_detail::ZYppImpl::architecture  )  const [inline]
 

Get the system architecture.

Definition at line 123 of file ZYppImpl.h.

References _architecture.

void zypp::zypp_detail::ZYppImpl::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 349 of file ZYppImpl.cc.

References _architecture, and _resolver.

Pathname zypp::zypp_detail::ZYppImpl::homePath  )  const
 

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

Definition at line 358 of file ZYppImpl.cc.

References _home_path, and zypp::filesystem::Pathname::empty().

Pathname zypp::zypp_detail::ZYppImpl::tmpPath  )  const
 

Get the path where zypp related plugins store tmp data.

Definition at line 364 of file ZYppImpl.cc.

References zypp::filesystem::TmpPath::path().

Referenced by ZYppImpl().

void zypp::zypp_detail::ZYppImpl::setHomePath const Pathname path  ) 
 

set the home, if you need to change it

Definition at line 361 of file ZYppImpl.cc.

References _home_path.

DiskUsageCounter::MountPointSet zypp::zypp_detail::ZYppImpl::diskUsage  ) 
 

Definition at line 180 of file ZYppImpl.cc.

References _disk_usage, zypp::DiskUsageCounter::disk_usage(), and pool().

void zypp::zypp_detail::ZYppImpl::setPartitions const DiskUsageCounter::MountPointSet mp  ) 
 

Definition at line 183 of file ZYppImpl.cc.

References _disk_usage, and zypp::DiskUsageCounter::setMountPoints().


Friends And Related Function Documentation

std::ostream & operator<< std::ostream &  str,
const ZYppImpl obj
[friend]
 

Stream output

Definition at line 375 of file ZYppImpl.cc.


Member Data Documentation

Locale zypp::zypp_detail::ZYppImpl::_textLocale [private]
 

Definition at line 107 of file ZYppImpl.h.

Referenced by getTextLocale(), setTextLocale(), and ZYppImpl().

ResPoolManager zypp::zypp_detail::ZYppImpl::_pool [private]
 

Definition at line 145 of file ZYppImpl.h.

Referenced by addResolvables(), availableLocale(), pool(), poolProxy(), removeInstalledResolvables(), removeResolvables(), and setRequestedLocales().

SourceFeed_Ref zypp::zypp_detail::ZYppImpl::_sourceFeed [private]
 

Definition at line 147 of file ZYppImpl.h.

Referenced by sourceFeed().

Target_Ptr zypp::zypp_detail::ZYppImpl::_target [private]
 

Definition at line 149 of file ZYppImpl.h.

Referenced by commit(), finishTarget(), initTarget(), and target().

Resolver_Ptr zypp::zypp_detail::ZYppImpl::_resolver [private]
 

Definition at line 151 of file ZYppImpl.h.

Referenced by resolver(), and setArchitecture().

KeyRing_Ptr zypp::zypp_detail::ZYppImpl::_keyring [private]
 

Definition at line 153 of file ZYppImpl.h.

Referenced by keyRing(), and ZYppImpl().

Arch zypp::zypp_detail::ZYppImpl::_architecture [private]
 

Definition at line 155 of file ZYppImpl.h.

Referenced by architecture(), setArchitecture(), and ZYppImpl().

Pathname zypp::zypp_detail::ZYppImpl::_home_path [private]
 

Definition at line 157 of file ZYppImpl.h.

Referenced by homePath(), and setHomePath().

DiskUsageCounter zypp::zypp_detail::ZYppImpl::_disk_usage [private]
 

defined mount points, used for disk usage counting

Definition at line 159 of file ZYppImpl.h.

Referenced by diskUsage(), and setPartitions().


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