00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #include "zypp/ResObject.h" 00013 #include "zypp/Repository.h" 00014 #include "zypp/detail/ResObjectImplIf.h" 00015 00016 using namespace std; 00017 00019 namespace zypp 00020 { 00021 00022 IMPL_PTR_TYPE(ResObject); 00023 00025 // 00026 // METHOD NAME : ResObject::ResObject 00027 // METHOD TYPE : Ctor 00028 // 00029 ResObject::ResObject( const Kind & kind_r, 00030 const NVRAD & nvrad_r ) 00031 : Resolvable( kind_r, nvrad_r ) 00032 {} 00033 00035 // 00036 // METHOD NAME : ResObject::~ResObject 00037 // METHOD TYPE : Dtor 00038 // 00039 ResObject::~ResObject() 00040 {} 00041 00043 // 00044 // METHOD NAME : ResObject::dumpOn 00045 // METHOD TYPE : std::ostream & 00046 // 00047 std::ostream & ResObject::dumpOn( std::ostream & str ) const 00048 { 00049 str << "[S" << repository().numericId() << ":" << mediaNr() << "]"; 00050 return Resolvable::dumpOn( str ); 00051 } 00052 00054 // 00055 // ResObject interface forwarded to implementation 00056 // 00058 00059 Text ResObject::summary() const 00060 { return pimpl().summary().text(); } 00061 00062 Text ResObject::description() const 00063 { return pimpl().description().text(); } 00064 00065 Text ResObject::insnotify() const 00066 { return pimpl().insnotify().text(); } 00067 00068 Text ResObject::delnotify() const 00069 { return pimpl().delnotify().text(); } 00070 00071 License ResObject::licenseToConfirm() const 00072 { return pimpl().licenseToConfirm().text(); } 00073 00074 Vendor ResObject::vendor() const 00075 { return pimpl().vendor(); } 00076 00077 ByteCount ResObject::size() const 00078 { return pimpl().size(); } 00079 00080 Repository ResObject::repository() const 00081 { return pimpl().repository(); } 00082 00083 ByteCount ResObject::downloadSize() const 00084 { return pimpl().downloadSize(); } 00085 00086 unsigned ResObject::mediaNr() const 00087 { return pimpl().mediaNr(); } 00088 00089 bool ResObject::installOnly() const 00090 { return pimpl().installOnly(); } 00091 00092 Date ResObject::buildtime() const 00093 { return pimpl().buildtime(); } 00094 00095 Date ResObject::installtime() const 00096 { return pimpl().installtime(); } 00097 00098 const DiskUsage & ResObject::diskusage() const 00099 { return pimpl().diskusage(); } 00100 00102 } // namespace zypp
1.5.3