zypp::repo::cached::PackageImpl Class Reference

#include <PackageImpl.h>

Inheritance diagram for zypp::repo::cached::PackageImpl:
[legend]

List of all members.

Public Member Functions

 PackageImpl (const data::RecordId &id, repo::cached::RepoImpl::Ptr repository_r)
 Default ctor.
virtual unsigned mediaNr () const
 Overloaded ResObjectImpl attribute.
virtual ByteCount downloadSize () const
 Overloaded ResObjectImpl attribute.
virtual TranslatedText summary () const
 Short label.
virtual TranslatedText description () const
 Long description.
virtual TranslatedText insnotify () const
virtual TranslatedText delnotify () const
virtual TranslatedText licenseToConfirm () const
virtual Vendor vendor () const
virtual ByteCount size () const
 Size.
virtual bool installOnly () const
virtual Date buildtime () const
virtual Date installtime () const
 Time of installation, or 0.
virtual std::string buildhost () const
virtual std::string distribution () const
virtual Label license () const
virtual std::string packager () const
virtual PackageGroup group () const
virtual Keywords keywords () const
virtual Changelog changelog () const
virtual std::string url () const
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 const DiskUsagediskusage () const
 Disk usage per directory A common attribute, although mostly packages require noticeable disk space.
virtual std::list
< std::string > 
authors () const
virtual std::list
< std::string > 
filenames () const
virtual OnMediaLocation location () const
virtual std::string sourcePkgName () const
 Name of the source rpm this package was built from.
virtual Edition sourcePkgEdition () const
 Edition of the source rpm this package was built from.
virtual Repository repository () const
 Backlink to the source providing this.

Private Attributes

repo::cached::RepoImpl::Ptr _repository
data::RecordId _id
DefaultIntegral
< unsigned,(unsigned)-1 > 
_mnr
scoped_ptr< DiskUsage_diskusage


Detailed Description

Definition at line 28 of file PackageImpl.h.


Constructor & Destructor Documentation

zypp::repo::cached::PackageImpl::PackageImpl ( const data::RecordId id,
repo::cached::RepoImpl::Ptr  repository_r 
)

Default ctor.

Definition at line 35 of file PackageImpl.cc.


Member Function Documentation

unsigned zypp::repo::cached::PackageImpl::mediaNr (  )  const [virtual]

Overloaded ResObjectImpl attribute.

Returns:
The location media number.

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 137 of file PackageImpl.cc.

ByteCount zypp::repo::cached::PackageImpl::downloadSize (  )  const [virtual]

Overloaded ResObjectImpl attribute.

Returns:
The location downloadSize.

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 146 of file PackageImpl.cc.

TranslatedText zypp::repo::cached::PackageImpl::summary (  )  const [virtual]

Short label.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 50 of file PackageImpl.cc.

References zypp::cache::attrResObjectSummary().

TranslatedText zypp::repo::cached::PackageImpl::description (  )  const [virtual]

Long description.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 55 of file PackageImpl.cc.

References zypp::cache::attrResObjectDescription().

TranslatedText zypp::repo::cached::PackageImpl::insnotify (  )  const [virtual]

Todo:
well define!

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 60 of file PackageImpl.cc.

References zypp::cache::attrResObjectInsnotify().

TranslatedText zypp::repo::cached::PackageImpl::delnotify (  )  const [virtual]

Todo:
well define!

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 65 of file PackageImpl.cc.

References zypp::cache::attrResObjectDelnotify().

TranslatedText zypp::repo::cached::PackageImpl::licenseToConfirm (  )  const [virtual]

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 70 of file PackageImpl.cc.

References zypp::cache::attrResObjectLicenseToConfirm().

Vendor zypp::repo::cached::PackageImpl::vendor (  )  const [virtual]

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 75 of file PackageImpl.cc.

References zypp::cache::attrResObjectVendor().

ByteCount zypp::repo::cached::PackageImpl::size (  )  const [virtual]

Size.

Todo:
well define which size.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 80 of file PackageImpl.cc.

References zypp::cache::attrResObjectInstalledSize().

bool zypp::repo::cached::PackageImpl::installOnly (  )  const [virtual]

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 85 of file PackageImpl.cc.

References zypp::cache::attrResObjectInstallOnly().

Date zypp::repo::cached::PackageImpl::buildtime (  )  const [virtual]

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 90 of file PackageImpl.cc.

References zypp::cache::attrResObjectBuildTime().

Date zypp::repo::cached::PackageImpl::installtime (  )  const [virtual]

Time of installation, or 0.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 95 of file PackageImpl.cc.

std::string zypp::repo::cached::PackageImpl::buildhost (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 100 of file PackageImpl.cc.

References zypp::cache::attrPackageBuildhost().

std::string zypp::repo::cached::PackageImpl::distribution (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 105 of file PackageImpl.cc.

References zypp::cache::attrPackageDistribution().

Label zypp::repo::cached::PackageImpl::license (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 110 of file PackageImpl.cc.

References zypp::cache::attrPackageLicense().

std::string zypp::repo::cached::PackageImpl::packager (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 115 of file PackageImpl.cc.

References zypp::cache::attrPackagePackager().

PackageGroup zypp::repo::cached::PackageImpl::group (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 120 of file PackageImpl.cc.

References zypp::cache::attrPackageGroup().

PackageImpl::Keywords zypp::repo::cached::PackageImpl::keywords (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 125 of file PackageImpl.cc.

References zypp::cache::attrPackageKeywords(), and zypp::detail::PackageImplIf::keywords().

Changelog zypp::repo::cached::PackageImpl::changelog (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 132 of file PackageImpl.cc.

std::string zypp::repo::cached::PackageImpl::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 158 of file PackageImpl.cc.

References zypp::cache::attrPackageUrl().

std::string zypp::repo::cached::PackageImpl::os (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 163 of file PackageImpl.cc.

References zypp::cache::attrPackageOperatingSystem().

Text zypp::repo::cached::PackageImpl::prein (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 168 of file PackageImpl.cc.

References zypp::cache::attrPackagePrein().

Text zypp::repo::cached::PackageImpl::postin (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 173 of file PackageImpl.cc.

References zypp::cache::attrPackagePostin().

Text zypp::repo::cached::PackageImpl::preun (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 178 of file PackageImpl.cc.

References zypp::cache::attrPackagePreun().

Text zypp::repo::cached::PackageImpl::postun (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 183 of file PackageImpl.cc.

References zypp::cache::attrPackagePostun().

ByteCount zypp::repo::cached::PackageImpl::sourcesize (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 188 of file PackageImpl.cc.

const DiskUsage & zypp::repo::cached::PackageImpl::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 193 of file PackageImpl.cc.

References zypp::ByteCount::blocks(), zypp::ByteCount::K, and zypp::detail::ResObjectImplIf::size().

list< string > zypp::repo::cached::PackageImpl::authors (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 218 of file PackageImpl.cc.

References zypp::cache::attrPackageAuthors(), and zypp::detail::PackageImplIf::authors().

std::list< std::string > zypp::repo::cached::PackageImpl::filenames (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 225 of file PackageImpl.cc.

OnMediaLocation zypp::repo::cached::PackageImpl::location (  )  const [virtual]

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 151 of file PackageImpl.cc.

References queryOnMediaLocation.

std::string zypp::repo::cached::PackageImpl::sourcePkgName (  )  const [virtual]

Name of the source rpm this package was built from.

Empty if unknown.

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 230 of file PackageImpl.cc.

References zypp::cache::attrPackageSourcePkgName().

Edition zypp::repo::cached::PackageImpl::sourcePkgEdition (  )  const [virtual]

Edition of the source rpm this package was built from.

Empty if unknown.

Reimplemented from zypp::detail::PackageImplIf.

Definition at line 235 of file PackageImpl.cc.

References zypp::cache::attrPackageSourcePkgEdition().

Repository zypp::repo::cached::PackageImpl::repository (  )  const [virtual]

Backlink to the source providing this.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 41 of file PackageImpl.cc.


Member Data Documentation

repo::cached::RepoImpl::Ptr zypp::repo::cached::PackageImpl::_repository [private]

Definition at line 83 of file PackageImpl.h.

data::RecordId zypp::repo::cached::PackageImpl::_id [private]

Definition at line 84 of file PackageImpl.h.

DefaultIntegral<unsigned,(unsigned)-1> zypp::repo::cached::PackageImpl::_mnr [mutable, private]

Definition at line 86 of file PackageImpl.h.

scoped_ptr<DiskUsage> zypp::repo::cached::PackageImpl::_diskusage [mutable, private]

Definition at line 87 of file PackageImpl.h.


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