zypp::repo::cached::SrcPackageImpl Class Reference

#include <SrcPackageImpl.h>

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

List of all members.

Public Member Functions

 SrcPackageImpl (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 Repository repository () const
 Backlink to the source providing this.
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 const DiskUsagediskusage () const
 Disk usage per directory A common attribute, although mostly packages require noticeable disk space.
virtual bool installOnly () const
virtual Date buildtime () const
virtual Date installtime () const
 Time of installation, or 0.
virtual OnMediaLocation location () const

Private Attributes

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


Detailed Description

Definition at line 27 of file SrcPackageImpl.h.


Constructor & Destructor Documentation

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

Default ctor.

Definition at line 32 of file SrcPackageImpl.cc.


Member Function Documentation

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

Overloaded ResObjectImpl attribute.

Returns:
The location media number.

Reimplemented from zypp::detail::SrcPackageImplIf.

Definition at line 100 of file SrcPackageImpl.cc.

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

Overloaded ResObjectImpl attribute.

Returns:
The location downloadSize.

Reimplemented from zypp::detail::SrcPackageImplIf.

Definition at line 109 of file SrcPackageImpl.cc.

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

Backlink to the source providing this.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 37 of file SrcPackageImpl.cc.

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

Short label.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 46 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectSummary().

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

Long description.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 51 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectDescription().

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

Todo:
well define!

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 56 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectInsnotify().

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

Todo:
well define!

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 61 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectDelnotify().

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

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 66 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectLicenseToConfirm().

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

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 71 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectVendor().

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

Size.

Todo:
well define which size.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 76 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectInstalledSize().

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

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

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

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 81 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectInstallOnly().

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

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 86 of file SrcPackageImpl.cc.

References zypp::cache::attrResObjectBuildTime().

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

Time of installation, or 0.

Reimplemented from zypp::detail::ResObjectImplIf.

Definition at line 91 of file SrcPackageImpl.cc.

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

Reimplemented from zypp::detail::SrcPackageImplIf.

Definition at line 136 of file SrcPackageImpl.cc.

References queryOnMediaLocation.


Member Data Documentation

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

Definition at line 62 of file SrcPackageImpl.h.

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

Definition at line 63 of file SrcPackageImpl.h.

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

Definition at line 65 of file SrcPackageImpl.h.

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

Definition at line 66 of file SrcPackageImpl.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