XMLProductImpl.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_STORAGE_XMLPRODUCTIMPL_H
00013 #define ZYPP_STORAGE_XMLPRODUCTIMPL_H
00014 
00015 #include "zypp/Source.h"
00016 #include "zypp/detail/ProductImplIf.h"
00017 
00019 namespace zypp
00020 { 
00021 
00023   namespace storage
00024   { 
00025 
00027     //
00028     //  CLASS NAME : ProductImpl
00029     //
00031     struct XMLProductImpl : public zypp::detail::ProductImplIf
00032     {
00033       XMLProductImpl();
00034       ~XMLProductImpl();
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       
00061       virtual std::string category() const;
00062       virtual TranslatedText shortName() const;
00063       virtual Url releaseNotesUrl() const;
00064       virtual std::list<Url> updateUrls() const;
00065       virtual std::list<std::string> flags() const;
00066 
00067       std::string _category;
00068       Url _release_notes_url;
00069       std::list<Url> _update_urls;
00070       std::list<std::string> _flags;
00071       
00072       TranslatedText _summary;
00073       TranslatedText _description;
00074       
00075       TranslatedText _install_notify;
00076       TranslatedText _delete_notify;
00077       TranslatedText _license_to_confirm;
00078       std::string _vendor;
00079       ByteCount _size;
00080       ByteCount _archive_size;
00081       bool _install_only;
00082       Date _build_time;
00083       Date _install_time;
00084       
00085       
00086       TranslatedText _short_name;
00087       Source_Ref _source;
00088     };
00090 
00092   } // namespace storage
00095 } // namespace zypp
00097 #endif // ZYPP_DETAIL_PRODUCTIMPL_H

Generated on Thu Jul 6 00:07:27 2006 for zypp by  doxygen 1.4.6