/** Vendor. Worth a typedef. Maybe a class unifying the strings. */
typedef std::string Vendor;
+ /** Id used inside ZMD */
+ typedef long ZmdId;
+
/** Handle data depending on a locale. Translated strings, maybe
other too. */
template<class _Val>
Source_Ref ResObject::source() const
{ return pimpl().source(); }
+ ZmdId ResObject::zmdid () const
+ { return pimpl().zmdid(); }
+
/////////////////////////////////////////////////////////////////
} // namespace zypp
///////////////////////////////////////////////////////////////////
/** */
Source_Ref source() const;
+ /** */
+ ZmdId zmdid () const;
+
protected:
/** Ctor */
ResObject( const Kind & kind_r,
Source_Ref ResObjectImplIf::source() const
{ return Source_Ref::noSource; }
+ ZmdId ResObjectImplIf::zmdid() const
+ { return 0; }
+
Label ResObjectImplIf::instSrcLabel() const
{ return Label(); }
/** Installation source which provides the package */
virtual Source_Ref source() const PURE_VIRTUAL;
+ /** Id used inside ZMD */
+ virtual ZmdId zmdid() const PURE_VIRTUAL;
+
/** \name deprecated
* \todo These should be replaced by a offering a
* Ptr to the Source.