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.
void unmanage ()
const Resolvable *const self () const
 Access to Resolvable data if connected.
Resolvable *const self ()
 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.
Todo:
The UI likes to work on ResObject level, but some of the values actually make no sense for several kinds of Resolvable, or may have completely different semantics. See whether we can get rid of ome stuff.

Some of these are actually tranlated or translatable. offer some concept to express it.

LICENSE HANDLING!



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 ByteCount size () const PURE_VIRTUAL
 Size.
virtual bool providesSources () const PURE_VIRTUAL
 Wheter there are src.rpm available too.
virtual Source_Ref source () const PURE_VIRTUAL
 Installation source which provides the package.
virtual ZmdId zmdid () const PURE_VIRTUAL
 Id used inside ZMD.
deprecated
Todo:
These should be replaced by a offering a Ptr to the Source.


virtual Label instSrcLabel () const PURE_VIRTUAL
virtual Vendor instSrcVendor () const PURE_VIRTUAL

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

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

Dtor.

Makes this an abstract class.

Definition at line 137 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::XMLPatchImpl, zypp::storage::XMLPatternImpl, 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::XMLPatchImpl, zypp::storage::XMLPatternImpl, 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.

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.

Definition at line 37 of file ResObjectImplIf.cc.

References zypp::TranslatedText::notext.

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

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, and zypp::target::rpm::RPMPackageImpl.

Definition at line 40 of file ResObjectImplIf.cc.

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

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

Wheter there are src.rpm available too.

Reimplemented in zypp::target::rpm::RPMPackageImpl.

Definition at line 43 of file ResObjectImplIf.cc.

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

Installation source which provides the package.

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 46 of file ResObjectImplIf.cc.

References zypp::Source_Ref::noSource.

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

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

Id used inside ZMD.

Definition at line 49 of file ResObjectImplIf.cc.

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

Label zypp::detail::ResObjectImplIf::instSrcLabel  )  const [virtual]
 

Deprecated:

Reimplemented in zypp::target::rpm::RPMPackageImpl.

Definition at line 52 of file ResObjectImplIf.cc.

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

Deprecated:

Reimplemented in zypp::target::rpm::RPMPackageImpl.

Definition at line 55 of file ResObjectImplIf.cc.

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

Test whether this is already connected to Resolvable.

Definition at line 113 of file ResObjectImplIf.h.

References _backRef.

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

Definition at line 116 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.

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

Access to Resolvable data if connected.

Definition at line 124 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 130 of file ResObjectImplIf.h.


Member Data Documentation

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

Backlink to Resolvable.

Definition at line 132 of file ResObjectImplIf.h.

Referenced by hasBackRef(), and unmanage().


The documentation for this class was generated from the following files:
Generated on Thu May 4 16:03:37 2006 for zypp by  doxygen 1.4.6