ZYpp.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #include <iostream>
00013 //#include "zypp/base/Logger.h"
00014 
00015 #include "zypp/ZYpp.h"
00016 #include "zypp/zypp_detail/ZYppImpl.h"
00017 
00018 using std::endl;
00019 
00021 namespace zypp
00022 { 
00023 
00025   //
00026   //    METHOD NAME : ZYpp::ZYpp
00027   //    METHOD TYPE : Ctor
00028   //
00029   ZYpp::ZYpp( const Impl_Ptr & impl_r )
00030   : _pimpl( impl_r )
00031   {}
00032 
00034   //
00035   //    METHOD NAME : ZYpp::~ZYpp
00036   //    METHOD TYPE : Dtor
00037   //
00038   ZYpp::~ZYpp()
00039   {}
00040 
00042   //
00043   //    METHOD NAME : ZYpp::dumpOn
00044   //    METHOD TYPE : std::ostream &
00045   //
00046   std::ostream & ZYpp::dumpOn( std::ostream & str ) const
00047   {
00048     return str << *_pimpl;
00049   }
00050 
00052   //
00053   // Forward to Impl:
00054   //
00056 
00057   ResPool ZYpp::pool() const
00058   { return _pimpl->pool(); }
00059 
00060   DiskUsageCounter::MountPointSet ZYpp::diskUsage()
00061   { return _pimpl->diskUsage(); }
00062 
00063   void ZYpp::setPartitions(const DiskUsageCounter::MountPointSet &mp)
00064   { return _pimpl->setPartitions(mp); }
00065 
00066   DiskUsageCounter::MountPointSet ZYpp::getPartitions() const
00067   { return _pimpl->getPartitions(); }
00068 
00069   ResPoolProxy ZYpp::poolProxy() const
00070   { return _pimpl->poolProxy(); }
00071 
00072   Resolver_Ptr ZYpp::resolver() const
00073   { return _pimpl->resolver(); }
00074 
00075   KeyRing_Ptr ZYpp::keyRing() const
00076   { return _pimpl->keyRing(); }
00077 
00079   //
00080   // Forward to Impl:
00081   //
00083 
00084   void ZYpp::addResolvables (const ResStore& store, bool installed)
00085   {
00086     _pimpl->addResolvables (store, installed);
00087   }
00088 
00089   void ZYpp::removeResolvables (const ResStore& store)
00090   {
00091     _pimpl->removeResolvables (store);
00092   }
00093 
00095 
00096   Target_Ptr ZYpp::target() const
00097   { return _pimpl->target(); }
00098 
00099   void ZYpp::initTarget(const Pathname & root, bool commit_only )
00100   { _pimpl->initTarget(root, commit_only); }
00101 
00102   void ZYpp::initializeTarget(const Pathname & root)
00103   { _pimpl->initializeTarget(root); }
00104 
00105   void ZYpp::finishTarget()
00106   { _pimpl->finishTarget(); }
00107 
00108   ZYppCommitResult ZYpp::commit( const ZYppCommitPolicy & policy_r )
00109   { return _pimpl->commit( policy_r ); }
00110 
00111   void ZYpp::installSrcPackage( const SrcPackage_constPtr & srcPackage_r )
00112   { _pimpl->installSrcPackage( srcPackage_r ); }
00113 
00115 
00116   void ZYpp::setTextLocale( const Locale & textLocale_r )
00117   { _pimpl->setTextLocale( textLocale_r ); }
00118 
00119   Locale ZYpp::getTextLocale() const
00120   { return _pimpl->getTextLocale(); }
00121 
00122   void ZYpp::setRequestedLocales( const LocaleSet & locales_r )
00123   { _pimpl->setRequestedLocales( locales_r ); }
00124 
00125   ZYpp::LocaleSet ZYpp::getRequestedLocales() const
00126   { return _pimpl->getRequestedLocales(); }
00127 
00128   ZYpp::LocaleSet ZYpp::getAvailableLocales() const
00129   { return _pimpl->getAvailableLocales(); }
00130 
00131   void ZYpp::availableLocale( const Locale & locale_r )
00132   { _pimpl->availableLocale( locale_r ); }
00133 
00134   Arch ZYpp::architecture() const
00135   { return _pimpl->architecture(); }
00136 
00137   void ZYpp::setArchitecture( const Arch & arch )
00138   { _pimpl->setArchitecture( arch ); }
00139 
00140   Pathname ZYpp::homePath() const
00141   { return _pimpl->homePath(); }
00142 
00143   Pathname ZYpp::tmpPath() const
00144   { return _pimpl->tmpPath(); }
00145 
00146   void ZYpp::setHomePath( const Pathname & path )
00147   { _pimpl->setHomePath(path); }
00148 
00149   int ZYpp::applyLocks()
00150   { return _pimpl->applyLocks(); }
00152 } // namespace zypp

Generated on Tue Sep 25 19:23:11 2007 for libzypp by  doxygen 1.5.3