00001
00002
00003
00004
00005
00006
00007
00008
00012 #include "zypp/repo/memory/SrcPackageImpl.h"
00013
00014 using namespace std;
00015
00017 namespace zypp
00018 {
00019
00020 namespace repo
00021 {
00022 namespace memory
00023 {
00024
00026
00027
00028
00029
00030 SrcPackageImpl::SrcPackageImpl( memory::RepoImpl::Ptr repo, data::SrcPackage_Ptr ptr)
00031 : _repository(repo),
00032
00033 _summary(ptr->summary),
00034 _description(ptr->description),
00035 _insnotify(ptr->insnotify),
00036 _delnotify(ptr->delnotify),
00037 _license_to_confirm(ptr->licenseToConfirm),
00038 _vendor(ptr->vendor),
00039 _size(ptr->installedSize),
00040 _install_only(false),
00041 _buildtime(ptr->buildTime),
00042
00043 _location(ptr->repositoryLocation)
00044 {}
00045
00047
00048
00049
00050
00051 SrcPackageImpl::~SrcPackageImpl()
00052 {}
00053
00055
00057
00058 TranslatedText SrcPackageImpl::summary() const
00059 {
00060 return _summary;
00061 }
00062
00063 TranslatedText SrcPackageImpl::description() const
00064 {
00065 return _description;
00066 }
00067
00068 TranslatedText SrcPackageImpl::insnotify() const
00069 {
00070 return _insnotify;
00071 }
00072
00073 TranslatedText SrcPackageImpl::delnotify() const
00074 {
00075 return _delnotify;
00076 }
00077
00078 TranslatedText SrcPackageImpl::licenseToConfirm() const
00079 {
00080 return _license_to_confirm;
00081 }
00082
00083 Vendor SrcPackageImpl::vendor() const
00084 {
00085 return _vendor;
00086 }
00087
00088 ByteCount SrcPackageImpl::size() const
00089 {
00090 return _size;
00091 }
00092
00093 bool SrcPackageImpl::installOnly() const
00094 {
00095 return _install_only;
00096 }
00097
00098 Date SrcPackageImpl::buildtime() const
00099 {
00100 return _buildtime;
00101 }
00102
00103 Date SrcPackageImpl::installtime() const
00104 {
00105 return _installtime;
00106 }
00107
00108
00109 const DiskUsage & SrcPackageImpl::diskusage() const
00110 {
00111 return _diskusage;
00112 }
00113
00114 OnMediaLocation SrcPackageImpl::location() const
00115 {
00116 return _location;
00117 }
00118
00120 }
00123 }
00125
00127 }