00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SOURCE_YUM_YUMPATCHIMPL_H 00013 #define ZYPP_SOURCE_YUM_YUMPATCHIMPL_H 00014 00015 #include "zypp/source/SourceImpl.h" 00016 #include "zypp/detail/PatchImpl.h" 00017 #include "zypp/parser/yum/YUMParserData.h" 00018 #include "zypp/source/yum/YUMSourceImpl.h" 00019 00021 namespace zypp 00022 { 00023 00024 namespace source 00025 { 00026 namespace yum 00027 { 00028 00030 // 00031 // CLASS NAME : YUMPatchImpl 00032 // 00035 class YUMPatchImpl : public detail::PatchImplIf 00036 { 00037 public: 00039 YUMPatchImpl( 00040 Source_Ref source_r, 00041 const zypp::parser::yum::YUMPatchData & parsed, 00042 YUMSourceImpl & srcimpl_r 00043 ); 00045 virtual std::string id() const; 00047 virtual Date timestamp() const; 00049 virtual std::string category() const; 00051 virtual bool reboot_needed() const; 00053 virtual bool affects_pkg_manager() const; 00055 virtual AtomList all_atoms() const; 00056 00058 virtual TranslatedText summary() const; 00060 virtual TranslatedText description() const; 00061 00062 virtual TranslatedText licenseToConfirm() const; 00063 00064 protected: 00065 std::string _patch_id; 00066 Date _timestamp; 00067 TranslatedText _summary; 00068 TranslatedText _description; 00069 std::string _category; 00070 bool _reboot_needed; 00071 bool _affects_pkg_manager; 00072 AtomList _atoms; 00073 TranslatedText _license_to_confirm; 00074 private: 00075 Source_Ref _source; 00076 public: 00077 Source_Ref source() const; 00078 friend class YUMSourceImpl; 00079 }; 00081 } // namespace yum 00083 } // namespace source 00086 } // namespace zypp 00088 #endif // ZYPP_SOURCE_YUM_YUMPATCHIMPL_H
1.5.0