00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_TARGET_XMLSELECTIONIMPL_H 00013 #define ZYPP_TARGET_XMLSELECTIONIMPL_H 00014 00015 #include "zypp/detail/SelectionImplIf.h" 00016 00018 namespace zypp 00019 { 00020 00022 namespace storage 00023 { 00024 00026 // 00027 // CLASS NAME : XMLSelectionImpl 00028 // 00031 struct XMLSelectionImpl : public zypp::detail::SelectionImplIf 00032 { 00033 XMLSelectionImpl(); 00034 virtual ~XMLSelectionImpl(); 00035 00036 virtual TranslatedText summary() const 00037 { return _summary; } 00038 virtual TranslatedText description() const 00039 { return _description; } 00040 virtual TranslatedText insnotify() const 00041 { return _install_notify; } 00042 virtual TranslatedText delnotify() const 00043 { return _delete_notify; } 00044 virtual TranslatedText licenseToConfirm() const 00045 { return _license_to_confirm; } 00046 virtual Vendor vendor() const 00047 { return _vendor; } 00048 virtual ByteCount size() const 00049 { return _size; } 00050 virtual ByteCount archivesize() const 00051 { return _archive_size; } 00052 virtual unsigned sourceMediaNr() const 00053 { return 0; } 00054 virtual bool installOnly() const 00055 { return _install_only; } 00056 virtual Date buildtime() const 00057 { return _build_time; } 00058 virtual Date installtime() const 00059 { return _install_time; } 00060 00062 Label category() const; 00063 00065 bool visible() const; 00066 00068 Label order() const; 00069 00070 const std::set<std::string> suggests() const; 00071 const std::set<std::string> recommends() const; 00072 const std::set<std::string> install_packages( const Locale & lang = Locale("") ) const; 00073 00074 TranslatedText _summary; 00075 TranslatedText _description; 00076 00077 TranslatedText _install_notify; 00078 TranslatedText _delete_notify; 00079 TranslatedText _license_to_confirm; 00080 std::string _vendor; 00081 ByteCount _size; 00082 ByteCount _archive_size; 00083 bool _install_only; 00084 Date _build_time; 00085 Date _install_time; 00086 00087 std::string _name; 00088 std::string _version; 00089 std::string _release; 00090 std::string _arch; 00091 std::string _order; 00092 TranslatedText _category; 00093 bool _visible; 00094 00095 std::set<std::string> _suggests; 00096 std::set<std::string> _recommends; 00097 std::set<std::string> _install_packages; 00098 }; 00100 00102 } // namespace detail 00105 } // namespace zypp 00107 #endif // ZYPP_DETAIL_SELECTIONIMPL_H