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"
17 #include "zypp/Changelog.h"
19 ///////////////////////////////////////////////////////////////////
21 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 { //////////////////////////////////////////////////////////////
28 ///////////////////////////////////////////////////////////////////
30 // CLASS NAME : YUMPackageImpl
32 /** Class representing a package
34 class YUMPackageImpl : public detail::PackageImplIf
40 const zypp::parser::yum::YUMPrimaryData & parsed,
41 const zypp::parser::yum::YUMFileListData & filelist,
42 const zypp::parser::yum::YUMOtherData & other
45 const zypp::parser::yum::YUMPatchPackage & parsed
48 /** Package summary */
49 virtual Label summary() const;
50 /** Package description */
51 virtual Text description() const;
52 virtual Text insnotify() const;
53 virtual Text delnotify() const;
54 virtual FSize size() const;
55 virtual bool providesSources() const;
56 virtual Label instSrcLabel() const;
57 virtual Vendor instSrcVendor() const;
59 virtual Date buildtime() const;
61 virtual std::string buildhost() const;
63 virtual Date installtime() const;
65 virtual std::string distribution() const;
67 virtual Vendor vendor() const;
69 virtual Label license() const;
71 virtual std::string packager() const;
73 virtual PackageGroup group() const;
75 virtual Changelog changelog() const;
76 /** Don't ship it as class Url, because it might be
77 * in fact anything but a legal Url. */
78 virtual std::string url() const;
80 virtual std::string os() const;
82 virtual Text prein() const;
84 virtual Text postin() const;
86 virtual Text preun() const;
88 virtual Text postun() const;
90 virtual FSize sourcesize() const;
92 virtual FSize archivesize() const;
94 virtual Text authors() const;
96 virtual Text filenames() const;
98 virtual License licenseToConfirm() const;
100 virtual std::string type() const;
102 virtual std::list<std::string> keywords() const;
104 virtual bool installOnly() const;
106 virtual unsigned mediaId() const;
108 virtual PackageImplIf::CheckSum checksum() const;
110 virtual std::list<PackageImplIf::DeltaRpm> deltaRpms() const;
112 virtual std::list<PackageImplIf::PatchRpm> patchRpms() const;
116 virtual std::list<std::string> insnotify() const;
118 virtual std::list<std::string> delnotify() const;
120 virtual unsigned packageSize() const;
122 virtual unsigned installedSize() const;
124 virtual unsigned archiveSize() const;
126 virtual bool providesSources() const;
128 virtual std::string instSrcLabel() const;
130 virtual std::string instSrcVendor() const;
132 virtual unsigned instSrcRank() const;
134 virtual std::string buildhost() const;
136 virtual std::string distribution() const;
138 virtual std::string vendor() const;
140 virtual std::string license() const;
142 virtual std::list<std::string> licenseToConfirm() const;
144 virtual std::string packager() const;
146 virtual std::string group() const;
148 virtual std::list<std::string> changelog() const;
150 virtual std::string url() const;
152 virtual std::string os() const;
154 virtual std::list<std::string> prein() const;
156 virtual std::list<std::string> postin() const;
158 virtual std::list<std::string> preun() const;
160 virtual std::list<std::string> postun() const;
162 virtual std::string sourcepkg() const;
164 virtual std::list<std::string> authors() const;
166 virtual std::list<std::string> filenames() const;
168 virtual std::list<std::string> recommends() const;
170 virtual std::list<std::string> suggests() const;
172 virtual std::string location() const;
174 virtual unsigned int medianr() const;
176 virtual std::string md5sum() const;
178 virtual std::string externalUrl() const;
180 virtual std::list<Edition> patchRpmBaseVersions() const;
182 virtual unsigned patchRpmSize() const;
184 virtual bool forceInstall() const;
186 virtual std::string patchRpmMD5() const;
188 virtual bool isRemote() const;
190 virtual bool prefererCandidate() const;
196 std::string _buildhost;
200 std::string _packager;
202 Changelog _changelog;
204 License _license_to_confirm;
206 std::list<std::string>_keywords;
208 PackageImplIf::CheckSum _checksum;
210 std::string _location;
211 std::list<DeltaRpm> _delta_rpms;
212 std::list<PatchRpm> _patch_rpms;
216 unsigned _size_package;
217 unsigned _size_installed;
218 unsigned _size_archive;
219 std::string _sourcepkg;
220 std::list<DirSize> _dir_sizes;
223 std::list<ChangelogEntry> changelog;
228 ///////////////////////////////////////////////////////////////////
230 /////////////////////////////////////////////////////////////////
231 } // namespace source
232 ///////////////////////////////////////////////////////////////////
233 /////////////////////////////////////////////////////////////////
235 ///////////////////////////////////////////////////////////////////
236 #endif // ZYPP_SOURCE_YUM_YUMPACKAGEIMPL_H