00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_TARGET_XMLSTORE_ATOMIMPL_H 00013 #define ZYPP_TARGET_XMLSTORE_ATOMIMPL_H 00014 00015 #include "zypp/source/SourceImpl.h" 00016 #include "zypp/detail/AtomImpl.h" 00017 00019 namespace zypp 00020 { 00021 namespace storage 00022 { 00023 00024 00027 class XMLAtomImpl : public detail::AtomImplIf 00028 { 00029 public: 00031 XMLAtomImpl(); 00032 private: 00033 00034 public: 00035 //Source_Ref source() const; 00036 00037 virtual TranslatedText summary() const 00038 { return _summary; } 00039 virtual TranslatedText description() const 00040 { return _description; } 00041 virtual TranslatedText insnotify() const 00042 { return _install_notify; } 00043 virtual TranslatedText delnotify() const 00044 { return _delete_notify; } 00045 virtual TranslatedText licenseToConfirm() const 00046 { return _license_to_confirm; } 00047 virtual Vendor vendor() const 00048 { return _vendor; } 00049 virtual ByteCount size() const 00050 { return _size; } 00051 virtual ByteCount archivesize() const 00052 { return _archive_size; } 00053 virtual unsigned sourceMediaNr() const 00054 { return 0; } 00055 virtual bool installOnly() const 00056 { return _install_only; } 00057 virtual Date buildtime() const 00058 { return _build_time; } 00059 virtual Date installtime() const 00060 { return _install_time; } 00061 00062 TranslatedText _summary; 00063 TranslatedText _description; 00064 00065 TranslatedText _install_notify; 00066 TranslatedText _delete_notify; 00067 TranslatedText _license_to_confirm; 00068 std::string _vendor; 00069 ByteCount _size; 00070 ByteCount _archive_size; 00071 bool _install_only; 00072 Date _build_time; 00073 Date _install_time; 00074 00075 }; 00077 } // namespace storage 00079 } // namespace zypp 00081 #endif // ZYPP_SOURCE_YUM_YUMATOMIMPL_H