zypp::ResObject Class Reference

Interface base for resolvable objects (common data). More...

#include <ResObject.h>

Inheritance diagram for zypp::ResObject:
[legend]

List of all members.

Public Types

typedef
detail::ResObjectImplIf 
Impl
typedef ResObject Self
typedef ResTraits< SelfTraitsType
typedef
TraitsType::PtrType 
Ptr
typedef
TraitsType::constPtrType 
constPtr

Public Member Functions

Text summary () const
Text description () const
Text insnotify () const
Text delnotify () const
Text licenseToConfirm () const
Vendor vendor () const
ByteCount size () const
 Installed size.
ByteCount downloadSize () const
 Size of the rpm package.
ZYPP_DEPRECATED ByteCount archivesize () const
Repository repository () const
 Source providing this resolvable.
unsigned mediaNr () const
 Media number where the resolvable is located 0 if no media access is required.
bool installOnly () const
 FIXME what is this?
Date buildtime () const
Date installtime () const
const DiskUsagediskusage () const

Protected Member Functions

 ResObject (const Kind &kind_r, const NVRAD &nvrad_r)
 Ctor.
virtual ~ResObject ()
 Dtor.
virtual std::ostream & dumpOn (std::ostream &str) const
 Helper for stream output.

Private Member Functions

virtual Implpimpl ()=0
 Access implementation.
virtual const Implpimpl () const =0
 Access implementation.

Friends

class detail::ImplConnect

Related Functions

(Note that these are not member functions.)

template<class _Res>
ResTraits< _Res >
::PtrType 
asKind (const ResObject::Ptr &p)
 Convert ResObject::Ptr into Ptr of a certain Kind.


Detailed Description

Interface base for resolvable objects (common data).

That is, all data not needed for solving, but common across all Resolvable kinds.

Definition at line 44 of file ResObject.h.


Member Typedef Documentation

typedef detail::ResObjectImplIf zypp::ResObject::Impl

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 47 of file ResObject.h.

typedef ResObject zypp::ResObject::Self

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 48 of file ResObject.h.

typedef ResTraits<Self> zypp::ResObject::TraitsType

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 49 of file ResObject.h.

typedef TraitsType::PtrType zypp::ResObject::Ptr

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 50 of file ResObject.h.

typedef TraitsType::constPtrType zypp::ResObject::constPtr

Reimplemented from zypp::Resolvable.

Reimplemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Definition at line 51 of file ResObject.h.


Constructor & Destructor Documentation

zypp::ResObject::ResObject ( const Kind kind_r,
const NVRAD nvrad_r 
) [protected]

Ctor.

Definition at line 29 of file ResObject.cc.

zypp::ResObject::~ResObject (  )  [protected, virtual]

Dtor.

Definition at line 39 of file ResObject.cc.


Member Function Documentation

Text zypp::ResObject::summary (  )  const

Short text describing the resolvable. This attribute is usually displayed in columns.

Definition at line 59 of file ResObject.cc.

References pimpl().

Referenced by zypp::Product::longName().

Text zypp::ResObject::description (  )  const

Long text describing the resolvable.

Definition at line 62 of file ResObject.cc.

References pimpl().

Text zypp::ResObject::insnotify (  )  const

Installation Notification This text can be used to tell the user some notes When he selects the resovable for installation.

Definition at line 65 of file ResObject.cc.

References pimpl().

Text zypp::ResObject::delnotify (  )  const

De-Installation Notification This text can be used to tell the user some notes When he selects the resovable for deinstall.

Definition at line 68 of file ResObject.cc.

References pimpl().

License zypp::ResObject::licenseToConfirm (  )  const

License or agreement to accept Agreement, warning or license the user should accept before installing the resolvable.

Definition at line 71 of file ResObject.cc.

References pimpl().

Vendor zypp::ResObject::vendor (  )  const

Vendor For Example "Novell Inc."

Reimplemented in zypp::Product.

Definition at line 74 of file ResObject.cc.

References pimpl().

ByteCount zypp::ResObject::size (  )  const

Installed size.

Definition at line 77 of file ResObject.cc.

References pimpl().

ByteCount zypp::ResObject::downloadSize (  )  const

Size of the rpm package.

Definition at line 83 of file ResObject.cc.

References pimpl().

Referenced by archivesize().

ZYPP_DEPRECATED ByteCount zypp::ResObject::archivesize (  )  const [inline]

Download size

Deprecated:
Use downloadSize()

Definition at line 106 of file ResObject.h.

References downloadSize().

Repository zypp::ResObject::repository (  )  const

Source providing this resolvable.

Definition at line 80 of file ResObject.cc.

References pimpl().

Referenced by zypp::repo::doProvideScript(), zypp::repo::doProvideSrcPackage(), and dumpOn().

unsigned zypp::ResObject::mediaNr (  )  const

Media number where the resolvable is located 0 if no media access is required.

Definition at line 86 of file ResObject.cc.

References pimpl().

Referenced by dumpOn().

bool zypp::ResObject::installOnly (  )  const

FIXME what is this?

Definition at line 89 of file ResObject.cc.

References pimpl().

Date zypp::ResObject::buildtime (  )  const

build time of the resolvable

Definition at line 92 of file ResObject.cc.

References pimpl().

Date zypp::ResObject::installtime (  )  const

Installation time 0 if the resolvable is not installed.

Definition at line 95 of file ResObject.cc.

References pimpl().

const DiskUsage & zypp::ResObject::diskusage (  )  const

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.

Definition at line 98 of file ResObject.cc.

References pimpl().

std::ostream & zypp::ResObject::dumpOn ( std::ostream &  str  )  const [protected, virtual]

Helper for stream output.

Reimplemented from zypp::Resolvable.

Definition at line 47 of file ResObject.cc.

References zypp::Resolvable::dumpOn(), mediaNr(), zypp::Repository::numericId(), and repository().

virtual Impl& zypp::ResObject::pimpl (  )  [private, pure virtual]

Access implementation.

Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.

Referenced by buildtime(), delnotify(), description(), diskusage(), downloadSize(), insnotify(), installOnly(), installtime(), licenseToConfirm(), mediaNr(), repository(), size(), summary(), and vendor().

virtual const Impl& zypp::ResObject::pimpl (  )  const [private, pure virtual]

Access implementation.

Implemented in zypp::Atom, zypp::Language, zypp::Message, zypp::Package, zypp::Patch, zypp::Pattern, zypp::Product, zypp::Script, zypp::Selection, zypp::SrcPackage, and zypp::SystemResObject.


Friends And Related Function Documentation

friend class detail::ImplConnect [friend]

Definition at line 155 of file ResObject.h.

template<class _Res>
ResTraits< _Res >::PtrType asKind ( const ResObject::Ptr p  )  [related]

Convert ResObject::Ptr into Ptr of a certain Kind.

Convert Resolvable::Ptr into Ptr of a certain Kind.

Returns:
NULL iff p is NULL or points to a Resolvable not of the specified Kind.
 asKind<Package>(resPtr);

Definition at line 172 of file ResObject.h.


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