added functinos to report pointer to patch (setting the pointer not yet
authorJiri Srain <jsrain@suse.cz>
Wed, 29 Mar 2006 01:51:52 +0000 (01:51 +0000)
committerJiri Srain <jsrain@suse.cz>
Wed, 29 Mar 2006 01:51:52 +0000 (01:51 +0000)
implemented)

zypp/source/yum/YUMMessageImpl.cc
zypp/source/yum/YUMMessageImpl.h

index a98ea30c249b841ff2bd04369ddb819c63e81b5b..3cac22d90f589bf1b0417aebc096e17d5b0314cd 100644 (file)
@@ -67,6 +67,9 @@ namespace zypp
       Source_Ref YUMMessageImpl::source() const
       { return _source; }
 
+      /** Patch the message belongs to - if any */
+      Patch::constPtr YUMMessageImpl::patch() const
+      { return _patch; }
 
     } // namespace yum
     /////////////////////////////////////////////////////////////////
index 9089234ea3a39bcc91f30abe61883e73764c1631..0badc98bad9c8de9a48d4fa4b52561424cc1fa5a 100644 (file)
@@ -55,6 +55,8 @@ namespace zypp
        virtual Label instSrcLabel() const;
        /** */
        virtual Vendor instSrcVendor() const;
+        /** Patch the message belongs to - if any */
+        Patch::constPtr patch() const;
 
 
       protected:
@@ -62,8 +64,10 @@ namespace zypp
        TranslatedText _text;
       private:
        Source_Ref _source;
+        Patch::constPtr _patch;
       public:
        Source_Ref source() const;
+       friend class YUMSourceImpl;
       };
       ///////////////////////////////////////////////////////////////////
     } // namespace yum