#include <RpmPackageImpl.h>
Public Member Functions | |
| RPMPackageImpl (const RpmHeader::constPtr data) | |
| Default ctor. | |
| virtual TranslatedText | summary () const |
| Package summary. | |
| virtual TranslatedText | description () const |
| Package description. | |
| virtual ByteCount | size () const |
| Size. | |
| virtual Date | buildtime () const |
| virtual std::string | buildhost () const |
| virtual Date | installtime () const |
Time of installation, or 0. | |
| virtual std::string | distribution () const |
| virtual Vendor | vendor () const |
| virtual Label | license () const |
| virtual std::string | packager () const |
| virtual PackageGroup | group () const |
| virtual Changelog | changelog () const |
| virtual std::string | url () const |
| Don't ship it as class Url, because it might be in fact anything but a legal Url. | |
| virtual std::string | os () const |
| virtual Text | prein () const |
| virtual Text | postin () const |
| virtual Text | preun () const |
| virtual Text | postun () const |
| virtual ByteCount | sourcesize () const |
| virtual std::list < std::string > | filenames () const |
| virtual std::string | type () const |
| virtual const DiskUsage & | diskusage () const |
| Disk usage per directory A common attribute, although mostly packages require noticeable disk space. | |
| virtual Repository | repository () const |
| Backlink to the source providing this. | |
| void | setLocation (const OnMediaLocation &loc) |
| for 'local' RPMs | |
| OnMediaLocation | location () const |
| void | setRepository (Repository repo) |
Protected Attributes | |
| TranslatedText | _summary |
| TranslatedText | _description |
| Date | _buildtime |
| Date | _installtime |
| std::string | _buildhost |
| std::string | _url |
| Vendor | _vendor |
| Label | _license |
| std::string | _packager |
| PackageGroup | _group |
| Changelog | _changelog |
| std::string | _type |
| std::list< std::string > | _filenames |
| DiskUsage | _disk_usage |
| ByteCount | _size |
| Repository | _repository |
| OnMediaLocation | _location |
Definition at line 34 of file RpmPackageImpl.h.
| zypp::target::rpm::RPMPackageImpl::RPMPackageImpl | ( | const RpmHeader::constPtr | data | ) |
Default ctor.
Definition at line 38 of file RpmPackageImpl.cc.
References _description, _disk_usage, _location, zypp::OnMediaLocation::setDownloadSize(), and zypp::TranslatedText::setText().
| TranslatedText zypp::target::rpm::RPMPackageImpl::summary | ( | ) | const [virtual] |
Package summary.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 63 of file RpmPackageImpl.cc.
References _summary.
| TranslatedText zypp::target::rpm::RPMPackageImpl::description | ( | void | ) | const [virtual] |
Package description.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 69 of file RpmPackageImpl.cc.
References _description.
| ByteCount zypp::target::rpm::RPMPackageImpl::size | ( | void | ) | const [virtual] |
Size.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 74 of file RpmPackageImpl.cc.
References _size.
| Date zypp::target::rpm::RPMPackageImpl::buildtime | ( | ) | const [virtual] |
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 80 of file RpmPackageImpl.cc.
References _buildtime.
| std::string zypp::target::rpm::RPMPackageImpl::buildhost | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 86 of file RpmPackageImpl.cc.
References _buildhost.
| Date zypp::target::rpm::RPMPackageImpl::installtime | ( | ) | const [virtual] |
Time of installation, or 0.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 92 of file RpmPackageImpl.cc.
References _installtime.
| std::string zypp::target::rpm::RPMPackageImpl::distribution | ( | ) | const [virtual] |
| Vendor zypp::target::rpm::RPMPackageImpl::vendor | ( | ) | const [virtual] |
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 105 of file RpmPackageImpl.cc.
References _vendor.
| Label zypp::target::rpm::RPMPackageImpl::license | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 111 of file RpmPackageImpl.cc.
References _license.
| std::string zypp::target::rpm::RPMPackageImpl::packager | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 117 of file RpmPackageImpl.cc.
References _packager.
| PackageGroup zypp::target::rpm::RPMPackageImpl::group | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 123 of file RpmPackageImpl.cc.
References _group.
| Changelog zypp::target::rpm::RPMPackageImpl::changelog | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 129 of file RpmPackageImpl.cc.
References _changelog.
| std::string zypp::target::rpm::RPMPackageImpl::url | ( | ) | const [virtual] |
Don't ship it as class Url, because it might be in fact anything but a legal Url.
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 142 of file RpmPackageImpl.cc.
References _url.
| std::string zypp::target::rpm::RPMPackageImpl::os | ( | ) | const [virtual] |
| Text zypp::target::rpm::RPMPackageImpl::prein | ( | ) | const [virtual] |
| Text zypp::target::rpm::RPMPackageImpl::postin | ( | ) | const [virtual] |
| Text zypp::target::rpm::RPMPackageImpl::preun | ( | ) | const [virtual] |
| Text zypp::target::rpm::RPMPackageImpl::postun | ( | ) | const [virtual] |
| ByteCount zypp::target::rpm::RPMPackageImpl::sourcesize | ( | ) | const [virtual] |
| std::list< std::string > zypp::target::rpm::RPMPackageImpl::filenames | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 190 of file RpmPackageImpl.cc.
References _filenames.
| std::string zypp::target::rpm::RPMPackageImpl::type | ( | void | ) | const [virtual] |
| const DiskUsage & zypp::target::rpm::RPMPackageImpl::diskusage | ( | ) | const [virtual] |
Disk usage per directory A common attribute, although mostly packages require noticeable disk space.
An e.g product could try to reserve a certain ammount of diskspace by providing DiskUsage data.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 202 of file RpmPackageImpl.cc.
References _disk_usage.
| Repository zypp::target::rpm::RPMPackageImpl::repository | ( | ) | const [virtual] |
Backlink to the source providing this.
Reimplemented from zypp::detail::ResObjectImplIf.
Definition at line 208 of file RpmPackageImpl.cc.
References _repository.
| void zypp::target::rpm::RPMPackageImpl::setLocation | ( | const OnMediaLocation & | loc | ) | [inline] |
| OnMediaLocation zypp::target::rpm::RPMPackageImpl::location | ( | ) | const [virtual] |
Reimplemented from zypp::detail::PackageImplIf.
Definition at line 135 of file RpmPackageImpl.cc.
References _location.
| void zypp::target::rpm::RPMPackageImpl::setRepository | ( | Repository | repo | ) | [inline] |
Date zypp::target::rpm::RPMPackageImpl::_buildtime [protected] |
Date zypp::target::rpm::RPMPackageImpl::_installtime [protected] |
std::string zypp::target::rpm::RPMPackageImpl::_buildhost [protected] |
std::string zypp::target::rpm::RPMPackageImpl::_url [protected] |
Vendor zypp::target::rpm::RPMPackageImpl::_vendor [protected] |
Label zypp::target::rpm::RPMPackageImpl::_license [protected] |
std::string zypp::target::rpm::RPMPackageImpl::_packager [protected] |
std::string zypp::target::rpm::RPMPackageImpl::_type [protected] |
std::list<std::string> zypp::target::rpm::RPMPackageImpl::_filenames [protected] |
ByteCount zypp::target::rpm::RPMPackageImpl::_size [protected] |
Definition at line 122 of file RpmPackageImpl.h.
Referenced by location(), RPMPackageImpl(), and setLocation().
1.5.3