zypp::detail::ResObjectImplIf Class Reference

Abstact ResObject implementation interface. More...

#include <ResObjectImplIf.h>

Inheritance diagram for zypp::detail::ResObjectImplIf:
[legend]

List of all members.

Public Member Functions

 ResObjectImplIf ()
 Ctor.
virtual ~ResObjectImplIf ()=0
 Dtor.
bool hasBackRef () const
 Test whether this is already connected to Resolvable.
const Resolvable *const self () const
 Access to Resolvable data if connected.
Common Attributes.
These should be provided by each kind of Resolvable.

Call the default implementation if you don't have a value for it.

virtual TranslatedText summary () const PURE_VIRTUAL
 Short label.
virtual TranslatedText description () const PURE_VIRTUAL
 Long description.
virtual TranslatedText insnotify () const PURE_VIRTUAL
virtual TranslatedText delnotify () const PURE_VIRTUAL
virtual TranslatedText licenseToConfirm () const PURE_VIRTUAL
virtual Vendor vendor () const PURE_VIRTUAL
virtual ByteCount size () const PURE_VIRTUAL
 Size.
virtual ByteCount downloadSize () const PURE_VIRTUAL
virtual Repository repository () const PURE_VIRTUAL
 Backlink to the source providing this.
virtual unsigned mediaNr () const PURE_VIRTUAL
 Number of the source media that provides the data required for installation.
virtual bool installOnly () const PURE_VIRTUAL
virtual Date buildtime () const
virtual Date installtime () const
 Time of installation, or 0.
virtual const DiskUsagediskusage () const
 Disk usage per directory A common attribute, although mostly packages require noticeable disk space.

Private Attributes

Resolvable_backRef
 Backlink to Resolvable.

Friends

class _resobjectfactory_detail::ResImplConnect
 Manages _backRef when glued to a Resolvable.


Detailed Description

Abstact ResObject implementation interface.

Todo:
We should rename the detail::*Impl classes, and classify them into Dumb (holding no real data, provided the ImplIf dtor is the only prure virtual) and FullStore (providing a protected variable and interface methods returning them for each datum). The todo hook is here, because it::s the common base of the *Impl classes.

Definition at line 55 of file ResObjectImplIf.h.


Constructor & Destructor Documentation

zypp::detail::ResObjectImplIf::ResObjectImplIf (  )  [inline]

Ctor.

Definition at line 115 of file ResObjectImplIf.h.

zypp::detail::ResObjectImplIf::~ResObjectImplIf (  )  [inline, pure virtual]

Dtor.

Makes this an abstract class.

Definition at line 140 of file ResObjectImplIf.h.


Member Function Documentation

TranslatedText zypp::detail::ResObjectImplIf::summary (  )  const [virtual]

Short label.

Reimplemented in zypp::detail::PatchImpl, zypp::detail::LanguageImpl, zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 28 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

TranslatedText zypp::detail::ResObjectImplIf::description (  )  const [virtual]

Long description.

Reimplemented in zypp::detail::PatchImpl, zypp::detail::LanguageImpl, zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 31 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

TranslatedText zypp::detail::ResObjectImplIf::insnotify (  )  const [virtual]

Todo:
well define!

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 34 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

TranslatedText zypp::detail::ResObjectImplIf::delnotify (  )  const [virtual]

Todo:
well define!

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 37 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

TranslatedText zypp::detail::ResObjectImplIf::licenseToConfirm (  )  const [virtual]

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 40 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

Referenced by zypp::detail::PatchImplIf::interactive().

Vendor zypp::detail::ResObjectImplIf::vendor (  )  const [virtual]

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 43 of file ResObjectImplIf.cc.

ByteCount zypp::detail::ResObjectImplIf::size (  )  const [virtual]

Size.

Todo:
well define which size.

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 61 of file ResObjectImplIf.cc.

Referenced by zypp::repo::cached::SrcPackageImpl::diskusage(), and zypp::repo::cached::PackageImpl::diskusage().

ByteCount zypp::detail::ResObjectImplIf::downloadSize (  )  const [virtual]

Reimplemented in zypp::detail::PackageImplIf, zypp::detail::SrcPackageImplIf, zypp::repo::cached::PackageImpl, zypp::repo::cached::SrcPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 64 of file ResObjectImplIf.cc.

Repository zypp::detail::ResObjectImplIf::repository (  )  const [virtual]

Backlink to the source providing this.

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, and zypp::target::rpm::RPMPackageImpl.

Definition at line 46 of file ResObjectImplIf.cc.

References zypp::Repository::noRepository.

Referenced by zypp::detail::PatchImplIf::all_atoms().

unsigned zypp::detail::ResObjectImplIf::mediaNr (  )  const [virtual]

Number of the source media that provides the data required for installation.

Zero, if no media access is required.

Reimplemented in zypp::detail::PackageImplIf, zypp::detail::ScriptImplIf, zypp::detail::SrcPackageImplIf, zypp::repo::cached::PackageImpl, and zypp::repo::cached::SrcPackageImpl.

Definition at line 58 of file ResObjectImplIf.cc.

bool zypp::detail::ResObjectImplIf::installOnly (  )  const [virtual]

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 49 of file ResObjectImplIf.cc.

Date zypp::detail::ResObjectImplIf::buildtime (  )  const [virtual]

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 52 of file ResObjectImplIf.cc.

Date zypp::detail::ResObjectImplIf::installtime (  )  const [virtual]

Time of installation, or 0.

Reimplemented in zypp::repo::cached::AtomImpl, zypp::repo::cached::MessageImpl, zypp::repo::cached::PackageImpl, zypp::repo::cached::PatchImpl, zypp::repo::cached::PatternImpl, zypp::repo::cached::ProductImpl, zypp::repo::cached::ScriptImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::AtomImpl, zypp::repo::memory::MessageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::PatchImpl, zypp::repo::memory::PatternImpl, zypp::repo::memory::ProductImpl, zypp::repo::memory::ScriptImpl, zypp::repo::memory::SrcPackageImpl, zypp::target::rpm::RPMPackageImpl, zypp::storage::XMLAtomImpl, zypp::storage::XMLMessageImpl, zypp::storage::XMLPatchImpl, zypp::storage::XMLPatternImpl, zypp::storage::XMLProductImpl, zypp::storage::XMLScriptImpl, and zypp::storage::XMLSelectionImpl.

Definition at line 55 of file ResObjectImplIf.cc.

const DiskUsage & zypp::detail::ResObjectImplIf::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 in zypp::repo::cached::PackageImpl, zypp::repo::cached::SrcPackageImpl, zypp::repo::memory::PackageImpl, zypp::repo::memory::SrcPackageImpl, and zypp::target::rpm::RPMPackageImpl.

Definition at line 67 of file ResObjectImplIf.cc.

bool zypp::detail::ResObjectImplIf::hasBackRef (  )  const [inline]

Test whether this is already connected to Resolvable.

Definition at line 123 of file ResObjectImplIf.h.

References _backRef.

Referenced by zypp::detail::PatchImplIf::all_atoms().

const Resolvable* const zypp::detail::ResObjectImplIf::self (  )  const [inline]

Access to Resolvable data if connected.

Definition at line 127 of file ResObjectImplIf.h.

References _backRef.


Friends And Related Function Documentation

friend class _resobjectfactory_detail::ResImplConnect [friend]

Manages _backRef when glued to a Resolvable.

Definition at line 133 of file ResObjectImplIf.h.


Member Data Documentation

Resolvable* zypp::detail::ResObjectImplIf::_backRef [private]

Backlink to Resolvable.

Definition at line 135 of file ResObjectImplIf.h.

Referenced by hasBackRef(), and self().


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