ScriptImpl.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 "ScriptImpl.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 : ScriptImpl
00027 //
00029 
00032 ScriptImpl::ScriptImpl ( memory::RepoImpl::Ptr repo, data::Script_Ptr ptr)
00033     : _repository (repo),
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     //TODO script attrs
00044 {}
00045 
00046 Repository
00047 ScriptImpl::repository() const
00048 {
00049   return _repository->selfRepository();
00050 }
00051 
00053 // ResObject Attributes
00055 
00056 TranslatedText ScriptImpl::summary() const
00057 {
00058   return _summary;
00059 }
00060 
00061 TranslatedText ScriptImpl::description() const
00062 {
00063   return _description;
00064 }
00065 
00066 TranslatedText ScriptImpl::insnotify() const
00067 {
00068   return _insnotify;
00069 }
00070 
00071 TranslatedText ScriptImpl::delnotify() const
00072 {
00073   return _delnotify;
00074 }
00075 
00076 TranslatedText ScriptImpl::licenseToConfirm() const
00077 {
00078   return _license_to_confirm;
00079 }
00080 
00081 Vendor ScriptImpl::vendor() const
00082 {
00083   return _vendor;
00084 }
00085 
00086 ByteCount ScriptImpl::size() const
00087 {
00088   return _size;
00089 }
00090 
00091 bool ScriptImpl::installOnly() const
00092 {
00093   return _install_only;
00094 }
00095 
00096 Date ScriptImpl::buildtime() const
00097 {
00098   return _buildtime;
00099 }
00100 
00101 Date ScriptImpl::installtime() const
00102 {
00103   return _installtime;
00104 }
00105 
00107 // SCRIPT
00109 
00110 
00111 
00113 } } } // namespace zypp::repo::memory
00115 

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