zypp::target::rpm::RPMPackageImpl Class Reference

Class representing a package. More...

#include <RpmPackageImpl.h>

Inheritance diagram for zypp::target::rpm::RPMPackageImpl:
[legend]

List of all members.

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 DiskUsagediskusage () 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


Detailed Description

Class representing a package.

Definition at line 34 of file RpmPackageImpl.h.


Constructor & Destructor Documentation

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().


Member Function Documentation

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.

Todo:
well define which 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]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 98 of file RpmPackageImpl.cc.

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]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 148 of file RpmPackageImpl.cc.

Text zypp::target::rpm::RPMPackageImpl::prein (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 155 of file RpmPackageImpl.cc.

Text zypp::target::rpm::RPMPackageImpl::postin (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 162 of file RpmPackageImpl.cc.

Text zypp::target::rpm::RPMPackageImpl::preun (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 169 of file RpmPackageImpl.cc.

Text zypp::target::rpm::RPMPackageImpl::postun (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 176 of file RpmPackageImpl.cc.

ByteCount zypp::target::rpm::RPMPackageImpl::sourcesize (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 183 of file RpmPackageImpl.cc.

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]

Definition at line 196 of file RpmPackageImpl.cc.

References _type.

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]

for 'local' RPMs

Definition at line 93 of file RpmPackageImpl.h.

References _location.

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]

Definition at line 100 of file RpmPackageImpl.h.

References _repository.


Member Data Documentation

TranslatedText zypp::target::rpm::RPMPackageImpl::_summary [protected]

Definition at line 106 of file RpmPackageImpl.h.

Referenced by summary().

TranslatedText zypp::target::rpm::RPMPackageImpl::_description [protected]

Definition at line 107 of file RpmPackageImpl.h.

Referenced by description(), and RPMPackageImpl().

Date zypp::target::rpm::RPMPackageImpl::_buildtime [protected]

Definition at line 108 of file RpmPackageImpl.h.

Referenced by buildtime().

Date zypp::target::rpm::RPMPackageImpl::_installtime [protected]

Definition at line 109 of file RpmPackageImpl.h.

Referenced by installtime().

std::string zypp::target::rpm::RPMPackageImpl::_buildhost [protected]

Definition at line 110 of file RpmPackageImpl.h.

Referenced by buildhost().

std::string zypp::target::rpm::RPMPackageImpl::_url [protected]

Definition at line 111 of file RpmPackageImpl.h.

Referenced by url().

Vendor zypp::target::rpm::RPMPackageImpl::_vendor [protected]

Definition at line 112 of file RpmPackageImpl.h.

Referenced by vendor().

Label zypp::target::rpm::RPMPackageImpl::_license [protected]

Definition at line 113 of file RpmPackageImpl.h.

Referenced by license().

std::string zypp::target::rpm::RPMPackageImpl::_packager [protected]

Definition at line 114 of file RpmPackageImpl.h.

Referenced by packager().

PackageGroup zypp::target::rpm::RPMPackageImpl::_group [protected]

Definition at line 115 of file RpmPackageImpl.h.

Referenced by group().

Changelog zypp::target::rpm::RPMPackageImpl::_changelog [protected]

Definition at line 116 of file RpmPackageImpl.h.

Referenced by changelog().

std::string zypp::target::rpm::RPMPackageImpl::_type [protected]

Definition at line 117 of file RpmPackageImpl.h.

Referenced by type().

std::list<std::string> zypp::target::rpm::RPMPackageImpl::_filenames [protected]

Definition at line 118 of file RpmPackageImpl.h.

Referenced by filenames().

DiskUsage zypp::target::rpm::RPMPackageImpl::_disk_usage [protected]

Definition at line 119 of file RpmPackageImpl.h.

Referenced by diskusage(), and RPMPackageImpl().

ByteCount zypp::target::rpm::RPMPackageImpl::_size [protected]

Definition at line 120 of file RpmPackageImpl.h.

Referenced by size().

Repository zypp::target::rpm::RPMPackageImpl::_repository [protected]

Definition at line 121 of file RpmPackageImpl.h.

Referenced by repository(), and setRepository().

OnMediaLocation zypp::target::rpm::RPMPackageImpl::_location [protected]

Definition at line 122 of file RpmPackageImpl.h.

Referenced by location(), RPMPackageImpl(), and setLocation().


The documentation for this class was generated from the following files:
Generated on Tue Sep 25 19:23:29 2007 for libzypp by  doxygen 1.5.3