00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H 00013 #define ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H 00014 00015 #include "zypp/source/SourceImpl.h" 00016 #include "zypp/detail/PackageImpl.h" 00017 #include "zypp/parser/yum/YUMParserData.h" 00018 #include "zypp/Changelog.h" 00019 #include "zypp/CheckSum.h" 00020 00022 namespace zypp 00023 { 00024 00025 namespace source 00026 { 00027 namespace yum 00028 { 00029 00031 // 00032 // CLASS NAME : YUMPackageImpl 00033 // 00036 class YUMPackageImpl : public detail::PackageImplIf 00037 { 00038 public: 00041 YUMPackageImpl( 00042 Source_Ref source_r, 00043 const zypp::parser::yum::YUMPrimaryData & parsed, 00044 const zypp::parser::yum::YUMFileListData & filelist, 00045 const zypp::parser::yum::YUMOtherData & other 00046 ); 00047 00049 virtual TranslatedText summary() const; 00051 virtual TranslatedText description() const; 00053 virtual TranslatedText licenseToConfirm() const; 00055 virtual ByteCount size() const; 00057 virtual Date buildtime() const; 00059 virtual std::string buildhost() const; 00061 virtual Date installtime() const; 00063 virtual std::string distribution() const; 00065 virtual Vendor vendor() const; 00067 virtual Label license() const; 00069 virtual std::string packager() const; 00071 virtual PackageGroup group() const; 00073 virtual Changelog changelog() const; 00075 virtual Pathname location() const; 00078 virtual std::string url() const; 00080 virtual std::string os() const; 00082 virtual Text prein() const; 00084 virtual Text postin() const; 00086 virtual Text preun() const; 00088 virtual Text postun() const; 00090 virtual ByteCount sourcesize() const; 00092 virtual ByteCount archivesize() const; 00094 virtual std::list<std::string> authors() const; 00096 virtual std::list<std::string> filenames() const; 00098 virtual std::string type() const; 00100 virtual std::list<std::string> keywords() const; 00102 virtual bool installOnly() const; 00104 virtual unsigned sourceMediaNr() const; 00106 virtual CheckSum checksum() const; 00108 virtual std::list<DeltaRpm> deltaRpms() const; 00110 virtual std::list<PatchRpm> patchRpms() const; 00111 00112 protected: 00113 TranslatedText _summary; 00114 TranslatedText _description; 00115 TranslatedText _license_to_confirm; 00116 Date _buildtime; 00117 std::string _buildhost; 00118 std::string _url; 00119 Vendor _vendor; 00120 Label _license; 00121 std::string _packager; 00122 PackageGroup _group; 00123 Changelog _changelog; 00124 std::string _type; 00125 std::list<std::string> _authors; 00126 std::list<std::string> _keywords; 00127 unsigned _mediaNumber; 00128 CheckSum _checksum; 00129 std::list<std::string> _filenames; 00130 Pathname _location; 00131 std::list<DeltaRpm> _delta_rpms; 00132 std::list<PatchRpm> _patch_rpms; 00133 00134 bool _install_only; 00135 00136 unsigned int _package_size; 00137 unsigned int _size; 00138 00139 /* 00140 unsigned _size_package; 00141 std::string _sourcepkg; 00142 std::list<DirSize> _dir_sizes; 00143 */ 00144 /* 00145 std::list<ChangelogEntry> changelog; 00146 */ 00147 private: 00148 Source_Ref _source; 00149 public: 00150 Source_Ref source() const; 00151 00152 friend class YUMSourceImpl; 00153 00154 }; 00156 } // namespace yum 00158 } // namespace source 00161 } // namespace zypp 00163 #endif // ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H
1.4.6