00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00009 00010 #ifndef zypp_repo_memory_PatchImpl_H 00011 #define zypp_repo_memory_PatchImpl_H 00012 00013 #include "zypp/detail/PatchImpl.h" 00014 #include "zypp/data/ResolvableData.h" 00015 #include "zypp/repo/memory/RepoImpl.h" 00016 #include "zypp/Repository.h" 00018 namespace zypp 00019 { 00020 namespace repo 00021 { 00022 namespace memory 00023 { 00024 00025 class PatchImpl : public detail::PatchImplIf 00026 { 00027 public: 00028 00029 PatchImpl( repo::memory::RepoImpl::Ptr repo, data::Patch_Ptr ptr); 00030 00031 virtual TranslatedText summary() const; 00032 virtual TranslatedText description() const; 00033 virtual TranslatedText insnotify() const; 00034 virtual TranslatedText delnotify() const; 00035 virtual TranslatedText licenseToConfirm() const; 00036 virtual Vendor vendor() const; 00037 virtual ByteCount size() const; 00038 virtual bool installOnly() const; 00039 virtual Date buildtime() const; 00040 virtual Date installtime() const; 00041 00042 // PATCH 00043 virtual std::string id() const; 00044 virtual Date timestamp() const; 00045 virtual std::string category() const; 00046 virtual bool reboot_needed() const; 00047 virtual bool affects_pkg_manager() const; 00048 00049 virtual Repository repository() const; 00050 00051 protected: 00052 repo::memory::RepoImpl::Ptr _repository; 00053 00054 //ResObject 00055 TranslatedText _summary; 00056 TranslatedText _description; 00057 TranslatedText _insnotify; 00058 TranslatedText _delnotify; 00059 TranslatedText _license_to_confirm; 00060 Vendor _vendor; 00061 ByteCount _size; 00062 bool _install_only; 00063 Date _buildtime; 00064 Date _installtime; 00065 00066 // patch 00067 std::string _patch_id; 00068 Date _timestamp; 00069 std::string _category; 00070 bool _reboot_needed; 00071 bool _affects_pkg_manager; 00072 }; 00074 } // namespace memory 00075 } // namespace repository 00076 } // namespace zypp 00078 #endif // ZMD_BACKEND_DBSOURCE_DBPACKAGEIMPL_H 00079
1.5.3