00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #include "zypp/repo/memory/PatternImpl.h"
00011
00012 using namespace std;
00013
00015 namespace zypp
00016 {
00017
00018 namespace repo
00019 {
00020 namespace memory
00021 {
00022
00023 PatternImpl::PatternImpl( repo::memory::RepoImpl::Ptr repo, data::Pattern_Ptr ptr)
00024 : _repository(repo),
00025 _summary(ptr->summary),
00026 _description(ptr->description),
00027 _insnotify(ptr->insnotify),
00028 _delnotify(ptr->delnotify),
00029 _license_to_confirm(ptr->licenseToConfirm),
00030 _vendor(ptr->vendor),
00031 _size(ptr->installedSize),
00032 _install_only(false),
00033 _buildtime(ptr->buildTime)
00034
00035 {
00036
00037 }
00038
00039 PatternImpl::~PatternImpl()
00040 {}
00041
00042 Repository
00043 PatternImpl::repository() const
00044 {
00045 return _repository->selfRepository();
00046 }
00047
00048
00050
00052
00053 TranslatedText PatternImpl::summary() const
00054 {
00055 return _summary;
00056 }
00057
00058 TranslatedText PatternImpl::description() const
00059 {
00060 return _description;
00061 }
00062
00063 TranslatedText PatternImpl::insnotify() const
00064 {
00065 return _insnotify;
00066 }
00067
00068 TranslatedText PatternImpl::delnotify() const
00069 {
00070 return _delnotify;
00071 }
00072
00073 TranslatedText PatternImpl::licenseToConfirm() const
00074 {
00075 return _license_to_confirm;
00076 }
00077
00078 Vendor PatternImpl::vendor() const
00079 {
00080 return _vendor;
00081 }
00082
00083 ByteCount PatternImpl::size() const
00084 {
00085 return _size;
00086 }
00087
00088 bool PatternImpl::installOnly() const
00089 {
00090 return _install_only;
00091 }
00092
00093 Date PatternImpl::buildtime() const
00094 {
00095 return _buildtime;
00096 }
00097
00098 Date PatternImpl::installtime() const
00099 {
00100 return _installtime;
00101 }
00102
00104
00105 TranslatedText PatternImpl::category() const
00106 {
00107 return _category;
00108 }
00109
00110 bool PatternImpl::userVisible() const
00111 {
00112 return _visible;
00113 }
00114
00115 Label PatternImpl::order() const
00116 {
00117 return _order;
00118 }
00119
00120 Pathname PatternImpl::icon() const
00121 {
00122 return _icon;
00123 }
00124
00126 }
00128 }
00130 }