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 archivesize() const 00048 { return _archive_size; } 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 std::string id() const; 00061 Date timestamp() const; 00063 std::string category() const; 00065 bool reboot_needed() const; 00067 bool affects_pkg_manager() const; 00068 00070 bool interactive() const; 00072 AtomList all_atoms() const; 00074 AtomList not_installed_atoms() const; 00075 00076 // TODO check necessarity of functions below 00077 bool any_atom_selected() const; 00078 void mark_atoms_to_freshen(bool freshen); 00079 00080 00082 std::string _patch_id; 00084 Date _timestamp; 00085 00086 TranslatedText _summary; 00087 TranslatedText _description; 00088 00089 TranslatedText _install_notify; 00090 TranslatedText _delete_notify; 00091 TranslatedText _license_to_confirm; 00092 std::string _vendor; 00093 ByteCount _size; 00094 ByteCount _archive_size; 00095 bool _install_only; 00096 Date _build_time; 00097 Date _install_time; 00098 00099 00101 std::string _category; 00103 bool _reboot_needed; 00105 bool _affects_pkg_manager; 00107 AtomList _atoms; 00108 }; 00110 00112 } // namespace storage 00115 } // namespace zypp 00117 #endif // ZYPP_DETAIL_PATCHIMPL_H