rename the new initTarget to initializeTarget,
[platform/upstream/libzypp.git] / zypp / ZYpp.cc
1 /*---------------------------------------------------------------------\
2 |                          ____ _   __ __ ___                          |
3 |                         |__  / \ / / . \ . \                         |
4 |                           / / \ V /|  _/  _/                         |
5 |                          / /__ | | | | | |                           |
6 |                         /_____||_| |_| |_|                           |
7 |                                                                      |
8 \---------------------------------------------------------------------*/
9 /** \file       zypp/ZYpp.cc
10  *
11 */
12 #include <iostream>
13 //#include "zypp/base/Logger.h"
14
15 #include "zypp/ZYpp.h"
16 #include "zypp/zypp_detail/ZYppImpl.h"
17
18 using std::endl;
19
20 ///////////////////////////////////////////////////////////////////
21 namespace zypp
22 { /////////////////////////////////////////////////////////////////
23
24   ///////////////////////////////////////////////////////////////////
25   //
26   //    METHOD NAME : ZYpp::ZYpp
27   //    METHOD TYPE : Ctor
28   //
29   ZYpp::ZYpp( const Impl_Ptr & impl_r )
30   : _pimpl( impl_r )
31   {}
32
33   ///////////////////////////////////////////////////////////////////
34   //
35   //    METHOD NAME : ZYpp::~ZYpp
36   //    METHOD TYPE : Dtor
37   //
38   ZYpp::~ZYpp()
39   {}
40
41   ///////////////////////////////////////////////////////////////////
42   //
43   //    METHOD NAME : ZYpp::dumpOn
44   //    METHOD TYPE : std::ostream &
45   //
46   std::ostream & ZYpp::dumpOn( std::ostream & str ) const
47   {
48     return str << *_pimpl;
49   }
50
51   ///////////////////////////////////////////////////////////////////
52   //
53   // Forward to Impl:
54   //
55   ///////////////////////////////////////////////////////////////////
56
57   ResPool ZYpp::pool() const
58   { return _pimpl->pool(); }
59
60   DiskUsageCounter::MountPointSet ZYpp::diskUsage()
61   { return _pimpl->diskUsage(); }
62
63   void ZYpp::setPartitions(const DiskUsageCounter::MountPointSet &mp)
64   { return _pimpl->setPartitions(mp); }
65
66   ResPoolProxy ZYpp::poolProxy() const
67   { return _pimpl->poolProxy(); }
68
69   Resolver_Ptr ZYpp::resolver() const
70   { return _pimpl->resolver(); }
71
72   KeyRing_Ptr ZYpp::keyRing() const
73   { return _pimpl->keyRing(); }
74
75   ///////////////////////////////////////////////////////////////////
76   //
77   // Forward to Impl:
78   //
79   ///////////////////////////////////////////////////////////////////
80
81   //SourceFeed_Ref ZYpp::sourceFeed() const
82   //{ return _pimpl->sourceFeed(); }
83
84   void ZYpp::addResolvables (const ResStore& store, bool installed)
85   {
86     _pimpl->addResolvables (store, installed);
87   }
88
89   void ZYpp::removeResolvables (const ResStore& store)
90   {
91     _pimpl->removeResolvables (store);
92   }
93
94   ///////////////////////////////////////////////////////////////////
95
96   Target_Ptr ZYpp::target() const
97   { return _pimpl->target(); }
98
99   void ZYpp::initTarget(const Pathname & root, bool commit_only )
100   { _pimpl->initTarget(root, commit_only); }
101   
102   void ZYpp::initializeTarget(const Pathname & root)
103   { _pimpl->initializeTarget(root); }
104
105   void ZYpp::finishTarget()
106   { _pimpl->finishTarget(); }
107
108   ZYppCommitResult ZYpp::commit( const ZYppCommitPolicy & policy_r )
109   { return _pimpl->commit( policy_r ); }
110
111   ///////////////////////////////////////////////////////////////////
112
113   void ZYpp::setTextLocale( const Locale & textLocale_r )
114   { _pimpl->setTextLocale( textLocale_r ); }
115
116   Locale ZYpp::getTextLocale() const
117   { return _pimpl->getTextLocale(); }
118
119   void ZYpp::setRequestedLocales( const LocaleSet & locales_r )
120   { _pimpl->setRequestedLocales( locales_r ); }
121
122   ZYpp::LocaleSet ZYpp::getRequestedLocales() const
123   { return _pimpl->getRequestedLocales(); }
124
125   ZYpp::LocaleSet ZYpp::getAvailableLocales() const
126   { return _pimpl->getAvailableLocales(); }
127
128   void ZYpp::availableLocale( const Locale & locale_r )
129   { _pimpl->availableLocale( locale_r ); }
130
131   Arch ZYpp::architecture() const
132   { return _pimpl->architecture(); }
133
134   void ZYpp::setArchitecture( const Arch & arch )
135   { _pimpl->setArchitecture( arch ); }
136
137   Pathname ZYpp::homePath() const
138   { return _pimpl->homePath(); }
139
140   Pathname ZYpp::tmpPath() const
141   { return _pimpl->tmpPath(); }
142   
143   void ZYpp::setHomePath( const Pathname & path )
144   { _pimpl->setHomePath(path); }
145
146   /////////////////////////////////////////////////////////////////
147 } // namespace zypp
148 ///////////////////////////////////////////////////////////////////