00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SOURCE_YUM_YUMPRODUCTIMPL_H 00013 #define ZYPP_SOURCE_YUM_YUMPRODUCTIMPL_H 00014 00015 #include "zypp/source/SourceImpl.h" 00016 #include "zypp/detail/ProductImpl.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 : YUMProductImpl 00032 // 00035 class YUMProductImpl : public detail::ProductImplIf 00036 { 00037 public: 00039 YUMProductImpl( 00040 Source_Ref source_r, 00041 const zypp::parser::yum::YUMProductData & parsed 00042 ); 00043 std::string category() const; 00044 Label vendor() const; 00045 TranslatedText summary() const; 00046 TranslatedText description() const; 00047 std::list<std::string> flags() const; 00048 TranslatedText shortName() const; 00049 protected: 00050 std::string _category; 00051 Label _vendor; 00052 TranslatedText _summary; 00053 TranslatedText _description; 00054 TranslatedText _short_name; 00055 00056 private: 00057 Source_Ref _source; 00058 public: 00059 Source_Ref source() const; 00060 00061 }; 00063 } // namespace yum 00065 } // namespace source 00068 } // namespace zypp 00070 #endif // ZYPP_SOURCE_YUM_YUMPRODUCTIMPL_H