00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_STORE_XMLPATCHIMPL_H 00013 #define ZYPP_STORE_XMLPATCHIMPL_H 00014 00015 #include "zypp/detail/PatchImplIf.h" 00016 00018 namespace zypp 00019 { 00020 00021 namespace storage 00022 { 00023 00025 // 00026 // CLASS NAME : XMLPatchImpl 00027 // 00028 struct XMLPatchImpl : public zypp::detail::PatchImplIf 00029 { 00030 XMLPatchImpl(); 00031 ~XMLPatchImpl(); 00032 00033 virtual TranslatedText summary() const 00034 { return _summary; } 00035 virtual TranslatedText description() const 00036 { return _description; } 00037 virtual TranslatedText insnotify() const 00038 { return _install_notify; } 00039 virtual TranslatedText delnotify() const 00040 { return _delete_notify; } 00041 virtual TranslatedText licenseToConfirm() const 00042 { return _license_to_confirm; } 00043 virtual Vendor vendor() const 00044 { return _vendor; } 00045 virtual ByteCount size() const 00046 { return _size; } 00047 virtual ByteCount downloadSize() const 00048 { return _downloadSize; } 00049 virtual unsigned sourceMediaNr() const 00050 { return 0; } 00051 virtual bool installOnly() const 00052 { return _install_only; } 00053 virtual Date buildtime() const 00054 { return _build_time; } 00055 virtual Date installtime() const 00056 { return _install_time; } 00057 00059 virtual std::string id() const; 00061 virtual Date timestamp() const; 00063 virtual std::string category() const; 00065 virtual bool reboot_needed() const; 00067 virtual bool affects_pkg_manager() const; 00068 00070 virtual AtomList all_atoms() const; 00071 00072 00074 std::string _patch_id; 00076 Date _timestamp; 00077 00078 TranslatedText _summary; 00079 TranslatedText _description; 00080 00081 TranslatedText _install_notify; 00082 TranslatedText _delete_notify; 00083 TranslatedText _license_to_confirm; 00084 std::string _vendor; 00085 ByteCount _size; 00086 ByteCount _downloadSize; 00087 bool _install_only; 00088 Date _build_time; 00089 Date _install_time; 00090 00091 00093 std::string _category; 00095 bool _reboot_needed; 00097 bool _affects_pkg_manager; 00099 AtomList _atoms; 00100 }; 00102 00104 } // namespace storage 00107 } // namespace zypp 00109 #endif // ZYPP_DETAIL_PATCHIMPL_H
1.5.3