1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/ResObject.cc
12 #include "zypp/ResObject.h"
13 #include "zypp/Repository.h"
14 #include "zypp/detail/ResObjectImplIf.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 IMPL_PTR_TYPE(ResObject);
24 ///////////////////////////////////////////////////////////////////
26 // METHOD NAME : ResObject::ResObject
29 ResObject::ResObject( const Kind & kind_r,
30 const NVRAD & nvrad_r )
31 : Resolvable( kind_r, nvrad_r )
34 ///////////////////////////////////////////////////////////////////
36 // METHOD NAME : ResObject::~ResObject
39 ResObject::~ResObject()
42 ///////////////////////////////////////////////////////////////////
44 // METHOD NAME : ResObject::dumpOn
45 // METHOD TYPE : std::ostream &
47 std::ostream & ResObject::dumpOn( std::ostream & str ) const
49 str << "[S" << repository().numericId() << ":" << mediaNr() << "]";
50 return Resolvable::dumpOn( str );
53 ///////////////////////////////////////////////////////////////////
55 // ResObject interface forwarded to implementation
57 ///////////////////////////////////////////////////////////////////
59 Text ResObject::summary() const
60 { return pimpl().summary().text(); }
62 Text ResObject::description() const
63 { return pimpl().description().text(); }
65 Text ResObject::insnotify() const
66 { return pimpl().insnotify().text(); }
68 Text ResObject::delnotify() const
69 { return pimpl().delnotify().text(); }
71 License ResObject::licenseToConfirm() const
72 { return pimpl().licenseToConfirm().text(); }
74 Vendor ResObject::vendor() const
75 { return pimpl().vendor(); }
77 ByteCount ResObject::size() const
78 { return pimpl().size(); }
80 Repository ResObject::repository() const
81 { return pimpl().repository(); }
83 ByteCount ResObject::downloadSize() const
84 { return pimpl().downloadSize(); }
86 unsigned ResObject::mediaNr() const
87 { return pimpl().mediaNr(); }
89 bool ResObject::installOnly() const
90 { return pimpl().installOnly(); }
92 Date ResObject::buildtime() const
93 { return pimpl().buildtime(); }
95 Date ResObject::installtime() const
96 { return pimpl().installtime(); }
98 const DiskUsage & ResObject::diskusage() const
99 { return pimpl().diskusage(); }
101 /////////////////////////////////////////////////////////////////
103 ///////////////////////////////////////////////////////////////////