1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/source/yum/YUMPackageImpl.h
12 #ifndef ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H
13 #define ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H
15 #include "zypp/detail/PackageImpl.h"
16 #include "zypp/parser/yum/YUMParserData.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
25 { //////////////////////////////////////////////////////////////
27 ///////////////////////////////////////////////////////////////////
29 // CLASS NAME : YUMPackageImpl
31 /** Class representing a package
33 class YUMPackageImpl : public detail::PackageImplIf
39 const zypp::parser::yum::YUMPrimaryData & parsed,
40 const zypp::parser::yum::YUMFileListData & filelist,
41 const zypp::parser::yum::YUMOtherData & other
44 const zypp::parser::yum::YUMPatchPackage & parsed
47 /** Package summary */
48 virtual Label summary() const;
49 /** Package description */
50 virtual Text description() const;
51 virtual Text insnotify() const;
52 virtual Text delnotify() const;
53 virtual FSize size() const;
54 virtual bool providesSources() const;
55 virtual Label instSrcLabel() const;
56 virtual Vendor instSrcVendor() const;
58 virtual Date buildtime() const;
60 virtual std::string buildhost() const;
62 virtual Date installtime() const;
64 virtual std::string distribution() const;
66 virtual Vendor vendor() const;
68 virtual Label license() const;
70 virtual std::string packager() const;
72 virtual PackageGroup group() const;
74 virtual Text changelog() const;
75 /** Don't ship it as class Url, because it might be
76 * in fact anything but a legal Url. */
77 virtual std::string url() const;
79 virtual std::string os() const;
81 virtual Text prein() const;
83 virtual Text postin() const;
85 virtual Text preun() const;
87 virtual Text postun() const;
89 virtual FSize sourcesize() const;
91 virtual FSize archivesize() const;
93 virtual Text authors() const;
95 virtual Text filenames() const;
97 virtual License licenseToConfirm() const;
99 virtual std::string type() const;
101 virtual std::list<std::string> keywords() const;
103 virtual bool installOnly() const;
105 virtual unsigned mediaId() const;
107 virtual PackageImplIf::CheckSum checksum() const;
109 virtual std::list<PackageImplIf::DeltaRpm> deltaRpms() const;
111 virtual std::list<PackageImplIf::PatchRpm> patchRpms() const;
115 virtual std::list<std::string> insnotify() const;
117 virtual std::list<std::string> delnotify() const;
119 virtual unsigned packageSize() const;
121 virtual unsigned installedSize() const;
123 virtual unsigned archiveSize() const;
125 virtual bool providesSources() const;
127 virtual std::string instSrcLabel() const;
129 virtual std::string instSrcVendor() const;
131 virtual unsigned instSrcRank() const;
133 virtual std::string buildhost() const;
135 virtual std::string distribution() const;
137 virtual std::string vendor() const;
139 virtual std::string license() const;
141 virtual std::list<std::string> licenseToConfirm() const;
143 virtual std::string packager() const;
145 virtual std::string group() const;
147 virtual std::list<std::string> changelog() const;
149 virtual std::string url() const;
151 virtual std::string os() const;
153 virtual std::list<std::string> prein() const;
155 virtual std::list<std::string> postin() const;
157 virtual std::list<std::string> preun() const;
159 virtual std::list<std::string> postun() const;
161 virtual std::string sourcepkg() const;
163 virtual std::list<std::string> authors() const;
165 virtual std::list<std::string> filenames() const;
167 virtual std::list<std::string> recommends() const;
169 virtual std::list<std::string> suggests() const;
171 virtual std::string location() const;
173 virtual unsigned int medianr() const;
175 virtual std::string md5sum() const;
177 virtual std::string externalUrl() const;
179 virtual std::list<Edition> patchRpmBaseVersions() const;
181 virtual unsigned patchRpmSize() const;
183 virtual bool forceInstall() const;
185 virtual std::string patchRpmMD5() const;
187 virtual bool isRemote() const;
189 virtual bool prefererCandidate() const;
195 std::string _buildhost;
199 std::string _packager;
203 License _license_to_confirm;
205 std::list<std::string>_keywords;
207 PackageImplIf::CheckSum _checksum;
209 std::string _location;
210 std::list<DeltaRpm> _delta_rpms;
211 std::list<PatchRpm> _patch_rpms;
215 unsigned _size_package;
216 unsigned _size_installed;
217 unsigned _size_archive;
218 std::string _sourcepkg;
219 std::list<DirSize> _dir_sizes;
222 std::list<ChangelogEntry> changelog;
227 ///////////////////////////////////////////////////////////////////
229 /////////////////////////////////////////////////////////////////
230 } // namespace source
231 ///////////////////////////////////////////////////////////////////
232 /////////////////////////////////////////////////////////////////
234 ///////////////////////////////////////////////////////////////////
235 #endif // ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H