1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/repo/memory/PackageImpl.cc
13 #include "zypp2/repo/memory/PackageImpl.h"
17 ///////////////////////////////////////////////////////////////////
19 { /////////////////////////////////////////////////////////////////
20 ///////////////////////////////////////////////////////////////////
22 { /////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 ///////////////////////////////////////////////////////////////////
28 // METHOD NAME : PackageImpl::PackageImpl
31 PackageImpl::PackageImpl(data::Package_Ptr ptr)
33 _summary(ptr->summary),
34 _description(ptr->description),
35 _insnotify(ptr->insnotify),
36 _delnotify(ptr->delnotify),
37 _license_to_confirm(ptr->licenseToConfirm),
40 _authors(ptr->authors),
41 _size(ptr->installedSize),
42 _archivesize(ptr->repositoryLocation.fileSize),
44 _license(ptr->license),
45 _buildtime(ptr->buildTime),
46 _media_number(ptr->repositoryLocation.mediaNr),
47 _location(ptr->repositoryLocation.filePath),
49 _checksum(ptr->repositoryLocation.fileChecksum)
53 ///////////////////////////////////////////////////////////////////
55 // METHOD NAME : PackageImpl::~PackageImpl
58 PackageImpl::~PackageImpl()
61 TranslatedText PackageImpl::summary() const
66 TranslatedText PackageImpl::description() const
71 TranslatedText PackageImpl::insnotify() const
76 TranslatedText PackageImpl::delnotify() const
81 TranslatedText PackageImpl::licenseToConfirm() const
83 return _license_to_confirm;
86 Source_Ref PackageImpl::source() const
88 return Source_Ref::noSource;
91 unsigned PackageImpl::sourceMediaNr() const
96 CheckSum PackageImpl::checksum() const
101 Date PackageImpl::buildtime() const
106 string PackageImpl::buildhost() const
111 Date PackageImpl::installtime() const
114 } // it was never installed
116 string PackageImpl::distribution() const
121 Vendor PackageImpl::vendor() const
126 Label PackageImpl::license() const
131 string PackageImpl::packager() const
136 PackageGroup PackageImpl::group() const
141 PackageImpl::Keywords PackageImpl::keywords() const
146 Changelog PackageImpl::changelog() const
151 Pathname PackageImpl::location() const
156 string PackageImpl::url() const
161 string PackageImpl::os() const
166 Text PackageImpl::prein() const
171 Text PackageImpl::postin() const
176 Text PackageImpl::preun() const
181 Text PackageImpl::postun() const
186 ByteCount PackageImpl::size() const
191 ByteCount PackageImpl::sourcesize() const
197 ByteCount PackageImpl::archivesize() const
202 DiskUsage PackageImpl::diskusage() const
207 list<string> PackageImpl::authors() const
209 return list<string>();
212 list<string> PackageImpl::filenames() const
214 return list<string>();
217 list<detail::PackageImplIf::DeltaRpm> PackageImpl::deltaRpms() const
219 return detail::PackageImplIf::deltaRpms();
222 list<detail::PackageImplIf::PatchRpm> PackageImpl::patchRpms() const
224 return detail::PackageImplIf::patchRpms();
227 bool PackageImpl::installOnly() const
232 /////////////////////////////////////////////////////////////////
233 } // namespace memory
234 ///////////////////////////////////////////////////////////////////
235 /////////////////////////////////////////////////////////////////
237 ///////////////////////////////////////////////////////////////////
239 /////////////////////////////////////////////////////////////////
241 ///////////////////////////////////////////////////////////////////