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 ResPoolProxy ZYpp::poolProxy() const 00067 { return _pimpl->poolProxy(); } 00068 00069 Resolver_Ptr ZYpp::resolver() const 00070 { return _pimpl->resolver(); } 00071 00072 KeyRing_Ptr ZYpp::keyRing() const 00073 { return _pimpl->keyRing(); } 00074 00076 // 00077 // Forward to Impl: 00078 // 00080 00081 //SourceFeed_Ref ZYpp::sourceFeed() const 00082 //{ return _pimpl->sourceFeed(); } 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::finishTarget() 00103 { _pimpl->finishTarget(); } 00104 00105 ZYppCommitResult ZYpp::commit( const ZYppCommitPolicy & policy_r ) 00106 { return _pimpl->commit( policy_r ); } 00107 00109 00110 void ZYpp::setTextLocale( const Locale & textLocale_r ) 00111 { _pimpl->setTextLocale( textLocale_r ); } 00112 00113 Locale ZYpp::getTextLocale() const 00114 { return _pimpl->getTextLocale(); } 00115 00116 void ZYpp::setRequestedLocales( const LocaleSet & locales_r ) 00117 { _pimpl->setRequestedLocales( locales_r ); } 00118 00119 ZYpp::LocaleSet ZYpp::getRequestedLocales() const 00120 { return _pimpl->getRequestedLocales(); } 00121 00122 ZYpp::LocaleSet ZYpp::getAvailableLocales() const 00123 { return _pimpl->getAvailableLocales(); } 00124 00125 void ZYpp::availableLocale( const Locale & locale_r ) 00126 { _pimpl->availableLocale( locale_r ); } 00127 00128 Arch ZYpp::architecture() const 00129 { return _pimpl->architecture(); } 00130 00131 void ZYpp::setArchitecture( const Arch & arch ) 00132 { _pimpl->setArchitecture( arch ); } 00133 00134 Pathname ZYpp::homePath() const 00135 { return _pimpl->homePath(); } 00136 00137 Pathname ZYpp::tmpPath() const 00138 { return _pimpl->tmpPath(); } 00139 00140 void ZYpp::setHomePath( const Pathname & path ) 00141 { _pimpl->setHomePath(path); } 00142 00144 } // namespace zypp