1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Package.cc
12 #include "zypp/Package.h"
13 #include "zypp/source/SourceImpl.h"
14 #include "zypp/base/Exception.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 IMPL_PTR_TYPE(Package);
24 ///////////////////////////////////////////////////////////////////
26 // METHOD NAME : Package::Package
29 Package::Package( const NVRAD & nvrad_r )
30 : ResObject( TraitsType::kind, nvrad_r )
33 ///////////////////////////////////////////////////////////////////
35 // METHOD NAME : Package::~Package
41 ///////////////////////////////////////////////////////////////////
43 // Package interface forwarded to implementation
45 ///////////////////////////////////////////////////////////////////
47 Changelog Package::changelog() const
48 { return pimpl().changelog(); }
51 std::string Package::buildhost() const
52 { return pimpl().buildhost(); }
54 CheckSum Package::checksum() const
55 { return pimpl().checksum(); }
58 std::string Package::distribution() const
59 { return pimpl().distribution(); }
62 Label Package::license() const
63 { return pimpl().license(); }
66 std::string Package::packager() const
67 { return pimpl().packager(); }
70 PackageGroup Package::group() const
71 { return pimpl().group(); }
74 /** Don't ship it as class Url, because it might be
75 * in fact anything but a legal Url. */
76 std::string Package::url() const
77 { return pimpl().url(); }
80 std::string Package::os() const
81 { return pimpl().os(); }
84 Text Package::prein() const
85 { return pimpl().prein(); }
88 Text Package::postin() const
89 { return pimpl().postin(); }
92 Text Package::preun() const
93 { return pimpl().preun(); }
96 Text Package::postun() const
97 { return pimpl().postun(); }
100 ByteCount Package::sourcesize() const
101 { return pimpl().sourcesize(); }
103 DiskUsage Package::diskusage() const
104 { return pimpl().diskusage(); }
107 std::list<std::string> Package::authors() const
108 { return pimpl().authors(); }
111 std::list<std::string> Package::filenames() const
112 { return pimpl().filenames(); }
114 Pathname Package::location() const
115 { return pimpl().location(); }
117 /////////////////////////////////////////////////////////////////
119 ///////////////////////////////////////////////////////////////////