1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
13 //#include "zypp/base/Logger.h"
15 #include "zypp/ZYpp.h"
16 #include "zypp/zypp_detail/ZYppImpl.h"
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////
26 // METHOD NAME : ZYpp::ZYpp
29 ZYpp::ZYpp( const Impl_Ptr & impl_r )
33 ///////////////////////////////////////////////////////////////////
35 // METHOD NAME : ZYpp::~ZYpp
41 ///////////////////////////////////////////////////////////////////
43 // METHOD NAME : ZYpp::dumpOn
44 // METHOD TYPE : std::ostream &
46 std::ostream & ZYpp::dumpOn( std::ostream & str ) const
48 return str << *_pimpl;
51 ///////////////////////////////////////////////////////////////////
55 ///////////////////////////////////////////////////////////////////
57 ResPool ZYpp::pool() const
58 { return _pimpl->pool(); }
60 DiskUsageCounter::MountPointSet ZYpp::diskUsage()
61 { return _pimpl->diskUsage(); }
63 void ZYpp::setPartitions(const DiskUsageCounter::MountPointSet &mp)
64 { return _pimpl->setPartitions(mp); }
66 ResPoolProxy ZYpp::poolProxy() const
67 { return _pimpl->poolProxy(); }
69 Resolver_Ptr ZYpp::resolver() const
70 { return _pimpl->resolver(); }
72 KeyRing_Ptr ZYpp::keyRing() const
73 { return _pimpl->keyRing(); }
75 ///////////////////////////////////////////////////////////////////
79 ///////////////////////////////////////////////////////////////////
81 //SourceFeed_Ref ZYpp::sourceFeed() const
82 //{ return _pimpl->sourceFeed(); }
84 void ZYpp::addResolvables (const ResStore& store, bool installed)
86 _pimpl->addResolvables (store, installed);
89 void ZYpp::removeResolvables (const ResStore& store)
91 _pimpl->removeResolvables (store);
94 ///////////////////////////////////////////////////////////////////
96 Target_Ptr ZYpp::target() const
97 { return _pimpl->target(); }
99 void ZYpp::initTarget(const Pathname & root, bool commit_only )
100 { _pimpl->initTarget(root, commit_only); }
102 void ZYpp::initializeTarget(const Pathname & root)
103 { _pimpl->initializeTarget(root); }
105 void ZYpp::finishTarget()
106 { _pimpl->finishTarget(); }
108 ZYppCommitResult ZYpp::commit( const ZYppCommitPolicy & policy_r )
109 { return _pimpl->commit( policy_r ); }
111 ///////////////////////////////////////////////////////////////////
113 void ZYpp::setTextLocale( const Locale & textLocale_r )
114 { _pimpl->setTextLocale( textLocale_r ); }
116 Locale ZYpp::getTextLocale() const
117 { return _pimpl->getTextLocale(); }
119 void ZYpp::setRequestedLocales( const LocaleSet & locales_r )
120 { _pimpl->setRequestedLocales( locales_r ); }
122 ZYpp::LocaleSet ZYpp::getRequestedLocales() const
123 { return _pimpl->getRequestedLocales(); }
125 ZYpp::LocaleSet ZYpp::getAvailableLocales() const
126 { return _pimpl->getAvailableLocales(); }
128 void ZYpp::availableLocale( const Locale & locale_r )
129 { _pimpl->availableLocale( locale_r ); }
131 Arch ZYpp::architecture() const
132 { return _pimpl->architecture(); }
134 void ZYpp::setArchitecture( const Arch & arch )
135 { _pimpl->setArchitecture( arch ); }
137 Pathname ZYpp::homePath() const
138 { return _pimpl->homePath(); }
140 Pathname ZYpp::tmpPath() const
141 { return _pimpl->tmpPath(); }
143 void ZYpp::setHomePath( const Pathname & path )
144 { _pimpl->setHomePath(path); }
146 /////////////////////////////////////////////////////////////////
148 ///////////////////////////////////////////////////////////////////