00001
00002
00003
00004
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 "PatchImpl.h"
00015
00016 using namespace std;
00017 using namespace zypp::detail;
00018 using namespace::zypp::repo;
00019
00021 namespace zypp { namespace repo { namespace memory {
00022
00023 PatchImpl::PatchImpl ( repo::memory::RepoImpl::Ptr repo, data::Patch_Ptr ptr)
00024 : _repository(repo),
00025
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
00036 _patch_id(ptr->id),
00037 _timestamp(ptr->timestamp),
00038 _category(ptr->category),
00039 _reboot_needed(ptr->rebootNeeded),
00040 _affects_pkg_manager(ptr->affectsPkgManager)
00041 {}
00042
00043 Repository
00044 PatchImpl::repository() const
00045 {
00046 return _repository->selfRepository();
00047 }
00048
00050
00052
00053 TranslatedText PatchImpl::summary() const
00054 {
00055 return _summary;
00056 }
00057
00058 TranslatedText PatchImpl::description() const
00059 {
00060 return _description;
00061 }
00062
00063 TranslatedText PatchImpl::insnotify() const
00064 {
00065 return _insnotify;
00066 }
00067
00068 TranslatedText PatchImpl::delnotify() const
00069 {
00070 return _delnotify;
00071 }
00072
00073 TranslatedText PatchImpl::licenseToConfirm() const
00074 {
00075 return _license_to_confirm;
00076 }
00077
00078 Vendor PatchImpl::vendor() const
00079 {
00080 return _vendor;
00081 }
00082
00083 ByteCount PatchImpl::size() const
00084 {
00085 return _size;
00086 }
00087
00088 bool PatchImpl::installOnly() const
00089 {
00090 return _install_only;
00091 }
00092
00093 Date PatchImpl::buildtime() const
00094 {
00095 return _buildtime;
00096 }
00097
00098 Date PatchImpl::installtime() const
00099 {
00100 return _installtime;
00101 }
00102
00104
00106
00107 std::string PatchImpl::id() const
00108 {
00109 return _patch_id;
00110 }
00111
00112 Date PatchImpl::timestamp() const
00113 {
00114 return _timestamp;
00115 }
00116
00117 std::string PatchImpl::category() const
00118 {
00119 return _category;
00120 }
00121
00122 bool PatchImpl::reboot_needed() const
00123 {
00124 return _reboot_needed;
00125 }
00126
00127 bool PatchImpl::affects_pkg_manager() const
00128 {
00129 return _affects_pkg_manager;
00130 }
00131
00133 } } }
00135