zypp::detail::ResObjectImplIf Class Reference

Abstact ResObject implementation interface. More...

#include <ResObjectImplIf.h>

Inheritance diagram for zypp::detail::ResObjectImplIf:

zypp::base::ReferenceCounted NonCopyable zypp::detail::AtomImplIf zypp::detail::LanguageImplIf zypp::detail::MessageImplIf zypp::detail::PackageImplIf zypp::detail::PatchImplIf zypp::detail::PatternImplIf zypp::detail::ProductImplIf zypp::detail::ScriptImplIf zypp::detail::SelectionImplIf zypp::detail::SrcPackageImplIf zypp::detail::SystemResObjectImplIf 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 archivesize () const PURE_VIRTUAL
virtual Source_Ref source () const PURE_VIRTUAL
 Backlink to the source providing this.
virtual unsigned sourceMediaNr () 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 ZmdId zmdid () const PURE_VIRTUAL
 Id used inside ZMD.

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 53 of file ResObjectImplIf.h.


Constructor & Destructor Documentation

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

Ctor.

Definition at line 109 of file ResObjectImplIf.h.

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

Dtor.

Makes this an abstract class.

Definition at line 134 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::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsPatternImpl, zypp::source::susetags::SuseTagsProductImpl, zypp::source::susetags::SuseTagsSelectionImpl, zypp::source::yum::YUMGroupImpl, zypp::source::yum::YUMPackageImpl, zypp::source::yum::YUMPatchImpl, zypp::source::yum::YUMPatternImpl, zypp::source::yum::YUMProductImpl, 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.

Referenced by zypp::ResObject::summary().

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

Long description.

Reimplemented in zypp::detail::PatchImpl, zypp::detail::LanguageImpl, zypp::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsPatternImpl, zypp::source::susetags::SuseTagsSelectionImpl, zypp::source::yum::YUMGroupImpl, zypp::source::yum::YUMPackageImpl, zypp::source::yum::YUMPatchImpl, zypp::source::yum::YUMPatternImpl, zypp::source::yum::YUMProductImpl, 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.

Referenced by zypp::ResObject::description().

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

Todo:
well define!

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, 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.

Referenced by zypp::ResObject::insnotify().

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

Todo:
well define!

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, 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.

Referenced by zypp::ResObject::delnotify().

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

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::yum::YUMPackageImpl, zypp::source::yum::YUMPatchImpl, 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::ResObject::licenseToConfirm().

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

Reimplemented in zypp::detail::ProductImplIf, zypp::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsProductImpl, zypp::source::yum::YUMPackageImpl, zypp::source::yum::YUMProductImpl, 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.

Referenced by zypp::ResObject::vendor().

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

Size.

Todo:
well define which size.

Reimplemented in zypp::detail::MessageImplIf, zypp::detail::PatchImplIf, zypp::detail::ScriptImplIf, zypp::source::susetags::SuseTagsPackageImpl, zypp::source::yum::YUMPackageImpl, 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 46 of file ResObjectImplIf.cc.

Referenced by zypp::ResObject::size(), zypp::detail::ScriptImplIf::size(), zypp::detail::PatchImplIf::size(), and zypp::detail::MessageImplIf::size().

ByteCount zypp::detail::ResObjectImplIf::archivesize  )  const [virtual]
 

Reimplemented in zypp::detail::SrcPackageImplIf, zypp::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsSrcPackageImpl, zypp::source::yum::YUMPackageImpl, 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 49 of file ResObjectImplIf.cc.

Referenced by zypp::ResObject::archivesize().

Source_Ref zypp::detail::ResObjectImplIf::source  )  const [virtual]
 

Backlink to the source providing this.

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsPatternImpl, zypp::source::susetags::SuseTagsProductImpl, zypp::source::susetags::SuseTagsSelectionImpl, zypp::source::susetags::SuseTagsSrcPackageImpl, zypp::source::yum::YUMAtomImpl, zypp::source::yum::YUMGroupImpl, zypp::source::yum::YUMMessageImpl, zypp::source::yum::YUMPackageImpl, zypp::source::yum::YUMPatchImpl, zypp::source::yum::YUMPatternImpl, zypp::source::yum::YUMProductImpl, zypp::source::yum::YUMScriptImpl, and zypp::target::rpm::RPMPackageImpl.

Definition at line 52 of file ResObjectImplIf.cc.

References zypp::Source_Ref::noSource.

Referenced by zypp::ResObject::source().

unsigned zypp::detail::ResObjectImplIf::sourceMediaNr  )  const [virtual]
 

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

Zero, if no media access is required.

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::susetags::SuseTagsSrcPackageImpl, zypp::source::yum::YUMPackageImpl, 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.

Referenced by zypp::ResObject::sourceMediaNr().

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

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::yum::YUMPackageImpl, 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 58 of file ResObjectImplIf.cc.

Referenced by zypp::ResObject::installOnly().

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

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::yum::YUMPackageImpl, 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::ResObject::buildtime().

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

Time of installation, or 0.

Reimplemented in zypp::source::susetags::SuseTagsPackageImpl, zypp::source::yum::YUMPackageImpl, 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 64 of file ResObjectImplIf.cc.

Referenced by zypp::ResObject::installtime().

ZmdId zypp::detail::ResObjectImplIf::zmdid  )  const [virtual]
 

Id used inside ZMD.

Definition at line 67 of file ResObjectImplIf.cc.

Referenced by zypp::ResObject::zmdid().

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

Test whether this is already connected to Resolvable.

Definition at line 117 of file ResObjectImplIf.h.

References _backRef.

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

Access to Resolvable data if connected.

Definition at line 121 of file ResObjectImplIf.h.


Friends And Related Function Documentation

friend class _resobjectfactory_detail::ResImplConnect [friend]
 

Manages _backRef when glued to a Resolvable.

Definition at line 127 of file ResObjectImplIf.h.


Member Data Documentation

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

Backlink to Resolvable.

Definition at line 129 of file ResObjectImplIf.h.

Referenced by hasBackRef().


The documentation for this class was generated from the following files:
Generated on Thu Jul 6 00:07:32 2006 for zypp by  doxygen 1.4.6