MessageImpl.cc

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00009 
00010 #include "zypp/TranslatedText.h"
00011 #include "zypp/base/String.h"
00012 #include "zypp/base/Logger.h"
00013 #include "zypp/repo/RepositoryImpl.h"
00014 #include "MessageImpl.h"
00015 
00016 
00017 using namespace std;
00018 using namespace zypp::detail;
00019 using namespace::zypp::repo;
00020 
00022 namespace zypp { namespace repo { namespace memory {
00023 
00025 //
00026 //        CLASS NAME : MessageImpl
00027 //
00029 
00032 MessageImpl::MessageImpl ( memory::RepoImpl::Ptr repo, data::Message_Ptr ptr)
00033     : _repository(repo),
00034 
00035     _summary(ptr->summary),
00036     _description(ptr->description),
00037     _insnotify(ptr->insnotify),
00038     _delnotify(ptr->delnotify),
00039     _license_to_confirm(ptr->licenseToConfirm),
00040     _vendor(ptr->vendor),
00041     _size(ptr->installedSize),
00042     _install_only(false),
00043     _buildtime(ptr->buildTime),
00044 
00045     _text(ptr->text)
00046 {}
00047 
00048 Repository
00049 MessageImpl::repository() const
00050 {
00051   return _repository->selfRepository();
00052 }
00053 
00055 // ResObject Attributes
00057 
00058 TranslatedText MessageImpl::summary() const
00059 {
00060   return _summary;
00061 }
00062 
00063 TranslatedText MessageImpl::description() const
00064 {
00065   return _description;
00066 }
00067 
00068 TranslatedText MessageImpl::insnotify() const
00069 {
00070   return _insnotify;
00071 }
00072 
00073 TranslatedText MessageImpl::delnotify() const
00074 {
00075   return _delnotify;
00076 }
00077 
00078 TranslatedText MessageImpl::licenseToConfirm() const
00079 {
00080   return _license_to_confirm;
00081 }
00082 
00083 Vendor MessageImpl::vendor() const
00084 {
00085   return _vendor;
00086 }
00087 
00088 ByteCount MessageImpl::size() const
00089 {
00090   return _size;
00091 }
00092 
00093 bool MessageImpl::installOnly() const
00094 {
00095   return _install_only;
00096 }
00097 
00098 Date MessageImpl::buildtime() const
00099 {
00100   return _buildtime;
00101 }
00102 
00103 Date MessageImpl::installtime() const
00104 {
00105   return _installtime;
00106 }
00107 
00109 // MESSAGE
00111 
00112 TranslatedText MessageImpl::text() const
00113 {
00114   return _text;
00115 }
00116 
00117 Patch::constPtr MessageImpl::patch() const
00118 {
00119   return 0;
00120 }
00121     
00123 } } } // namespace zypp::repo::memory
00125 

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