00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_DETAIL_MEMORY_PATTERNIMPL_H 00013 #define ZYPP_DETAIL_MEMORY_PATTERNIMPL_H 00014 00015 #include "zypp/detail/PatternImplIf.h" 00016 #include "zypp/data/ResolvableData.h" 00017 #include "zypp/Repository.h" 00018 #include "zypp/repo/memory/RepoImpl.h" 00019 00021 namespace zypp 00022 { 00023 00024 namespace repo 00025 { 00026 namespace memory 00027 { 00028 00029 struct PatternImpl : public zypp::detail::PatternImplIf 00030 { 00031 public: 00032 PatternImpl( memory::RepoImpl::Ptr repo, data::Pattern_Ptr ptr); 00033 virtual ~PatternImpl(); 00034 00035 virtual Repository repository() const; 00036 00037 virtual TranslatedText summary() const; 00038 virtual TranslatedText description() const; 00039 virtual TranslatedText insnotify() const; 00040 virtual TranslatedText delnotify() const; 00041 virtual TranslatedText licenseToConfirm() const; 00042 virtual Vendor vendor() const; 00043 virtual ByteCount size() const; 00044 virtual bool installOnly() const; 00045 virtual Date buildtime() const; 00046 virtual Date installtime() const; 00047 00048 virtual TranslatedText category() const; 00049 virtual bool userVisible() const; 00050 virtual Label order() const; 00051 virtual Pathname icon() const; 00052 private: 00053 00054 repo::memory::RepoImpl::Ptr _repository; 00055 00056 //ResObject 00057 TranslatedText _summary; 00058 TranslatedText _description; 00059 TranslatedText _insnotify; 00060 TranslatedText _delnotify; 00061 TranslatedText _license_to_confirm; 00062 Vendor _vendor; 00063 ByteCount _size; 00064 bool _install_only; 00065 Date _buildtime; 00066 Date _installtime; 00067 00068 // Pattern 00069 TranslatedText _category; 00070 bool _visible; 00071 std::string _order; 00072 Pathname _icon; 00073 }; 00075 00077 } // namespace memory 00079 } // namespace repository 00081 } // namespace zypp 00083 #endif // ZYPP_DETAIL_PATTERNIMPL_H
1.5.3