ProductImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00009 
00010 #include "zypp/repo/memory/ProductImpl.h"
00011 
00012 using namespace std;
00013 
00015 namespace zypp
00016 { 
00017 
00018 namespace repo
00019 { 
00020 
00021 namespace memory
00022 { 
00023 
00024 ProductImpl::ProductImpl( memory::RepoImpl::Ptr repo, data::Product_Ptr ptr)
00025   : _repository(repo),
00026   _summary(ptr->summary),
00027   _description(ptr->description),
00028   _insnotify(ptr->insnotify),
00029   _delnotify(ptr->delnotify),
00030   _license_to_confirm(ptr->licenseToConfirm),
00031   _vendor(ptr->vendor),
00032   _size(ptr->installedSize),
00033   _install_only(false),
00034   _buildtime(ptr->buildTime)
00035   // TODO products attrs
00036 {}
00037 
00038 ProductImpl::~ProductImpl()
00039 {}
00040 
00041 Repository
00042 ProductImpl::repository() const
00043 {
00044   return _repository->selfRepository();
00045 }
00046 
00048 // ResObject Attributes
00050 
00051 TranslatedText ProductImpl::summary() const
00052 {
00053   return _summary;
00054 }
00055 
00056 TranslatedText ProductImpl::description() const
00057 {
00058   return _description;
00059 }
00060 
00061 TranslatedText ProductImpl::insnotify() const
00062 {
00063   return _insnotify;
00064 }
00065 
00066 TranslatedText ProductImpl::delnotify() const
00067 {
00068   return _delnotify;
00069 }
00070 
00071 TranslatedText ProductImpl::licenseToConfirm() const
00072 {
00073   return _license_to_confirm;
00074 }
00075 
00076 Vendor ProductImpl::vendor() const
00077 {
00078   return _vendor;
00079 }
00080 
00081 ByteCount ProductImpl::size() const
00082 {
00083   return _size;
00084 }
00085 
00086 bool ProductImpl::installOnly() const
00087 {
00088   return _install_only;
00089 }
00090 
00091 Date ProductImpl::buildtime() const
00092 {
00093   return _buildtime;
00094 }
00095 
00096 Date ProductImpl::installtime() const
00097 {
00098   return _installtime;
00099 }
00100 
00102 
00103 std::string ProductImpl::type() const
00104 {
00105   return _type;
00106 }
00107 
00108 Url ProductImpl::releaseNotesUrl() const
00109 {
00110   return _release_notes_url;
00111 }
00112 
00113 std::list<Url> ProductImpl::updateUrls() const
00114 {
00115   return _update_urls;
00116 }
00117 
00118 std::list<Url> ProductImpl::extraUrls() const
00119 {
00120   return _extra_urls;
00121 }
00122 
00123 std::list<Url> ProductImpl::optionalUrls() const
00124 {
00125   return _optional_urls;
00126 }
00127 
00128 std::list<std::string> ProductImpl::flags() const
00129 {
00130   return _flags;
00131 }
00132 
00133 TranslatedText ProductImpl::shortName() const
00134 {
00135   return TranslatedText(_shortlabel);
00136 }
00137 
00138 std::string ProductImpl::distributionName() const
00139 {
00140   return _dist_name;
00141 }
00142 
00143 Edition ProductImpl::distributionEdition() const
00144 {
00145   return _dist_version;
00146 }
00147 
00149 } // namespace memory
00152 } // namespace repository
00155 } // namespace zypp

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