PackageImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00013 #include "zypp/repo/memory/PackageImpl.h"
00014 
00015 using namespace std;
00016 
00018 namespace zypp
00019 { 
00020 
00021 namespace repo
00022 { 
00023 namespace memory
00024 { 
00025 
00027 //
00028 //      METHOD NAME : PackageImpl::PackageImpl
00029 //      METHOD TYPE : Ctor
00030 //
00031 PackageImpl::PackageImpl( repo::memory::RepoImpl::Ptr repo, data::Package_Ptr ptr)
00032     : _repository(repo),
00033 
00034     _summary(ptr->summary),
00035     _description(ptr->description),
00036     _insnotify(ptr->insnotify),
00037     _delnotify(ptr->delnotify),
00038     _license_to_confirm(ptr->licenseToConfirm),
00039     _vendor(ptr->vendor),
00040     _size(ptr->installedSize),
00041     _install_only(false),
00042     _buildtime(ptr->buildTime),
00043 
00044     _group(ptr->group),
00045     _keywords(),
00046     _authors(ptr->authors),
00047     _license(ptr->license),
00048     _diskusage(),
00049     _location(ptr->repositoryLocation)
00050 {
00051 }
00052 
00054 //
00055 //      METHOD NAME : PackageImpl::~PackageImpl
00056 //      METHOD TYPE : Dtor
00057 //
00058 PackageImpl::~PackageImpl()
00059 {}
00060 
00061 Repository
00062 PackageImpl::repository() const
00063 {
00064   return _repository->selfRepository();
00065 }
00066 
00068 // ResObject Attributes
00070 
00071 TranslatedText PackageImpl::summary() const
00072 {
00073   return _summary;
00074 }
00075 
00076 TranslatedText PackageImpl::description() const
00077 {
00078   return _description;
00079 }
00080 
00081 TranslatedText PackageImpl::insnotify() const
00082 {
00083   return _insnotify;
00084 }
00085 
00086 TranslatedText PackageImpl::delnotify() const
00087 {
00088   return _delnotify;
00089 }
00090 
00091 TranslatedText PackageImpl::licenseToConfirm() const
00092 {
00093   return _license_to_confirm;
00094 }
00095 
00096 Vendor PackageImpl::vendor() const
00097 {
00098   return _vendor;
00099 }
00100 
00101 ByteCount PackageImpl::size() const
00102 {
00103   return _size;
00104 }
00105 
00106 bool PackageImpl::installOnly() const
00107 {
00108   return _install_only;
00109 }
00110 
00111 Date PackageImpl::buildtime() const
00112 {
00113   return _buildtime;
00114 }
00115 
00116 Date PackageImpl::installtime() const
00117 {
00118   return _installtime;
00119 }
00120 
00121 OnMediaLocation PackageImpl::location() const
00122 {
00123   return _location;
00124 }
00125 
00127 
00128 
00129 string PackageImpl::buildhost() const
00130 {
00131   return string();
00132 }
00133 
00134 string PackageImpl::distribution() const
00135 {
00136   return string();
00137 }
00138 
00139 Label PackageImpl::license() const
00140 {
00141   return _license;
00142 }
00143 
00144 string PackageImpl::packager() const
00145 {
00146   return string();
00147 }
00148 
00149 PackageGroup PackageImpl::group() const
00150 {
00151   return _group;
00152 }
00153 
00154 PackageImpl::Keywords PackageImpl::keywords() const
00155 {
00156   return _keywords;
00157 }
00158 
00159 Changelog PackageImpl::changelog() const
00160 {
00161   return Changelog();
00162 }
00163 
00164 string PackageImpl::url() const
00165 {
00166   return string();
00167 }
00168 
00169 string PackageImpl::os() const
00170 {
00171   return string();
00172 }
00173 
00174 Text PackageImpl::prein() const
00175 {
00176   return Text();
00177 }
00178 
00179 Text PackageImpl::postin() const
00180 {
00181   return Text();
00182 }
00183 
00184 Text PackageImpl::preun() const
00185 {
00186   return Text();
00187 }
00188 
00189 Text PackageImpl::postun() const
00190 {
00191   return Text();
00192 }
00193 
00194 ByteCount PackageImpl::sourcesize() const
00195 // FIXME
00196 {
00197   return 0;
00198 }
00199 
00200 const DiskUsage & PackageImpl::diskusage() const
00201 {
00202   return _diskusage;
00203 }
00204 
00205 list<string> PackageImpl::authors() const
00206 {
00207   return list<string>();
00208 }
00209 
00210 list<string> PackageImpl::filenames() const
00211 {
00212   return list<string>();
00213 }
00214 
00216 } // namespace memory
00219 } // namespace
00221 
00223 } // namespace zypp
00225 

Generated on Tue Sep 25 19:23:00 2007 for libzypp by  doxygen 1.5.3