XMLScriptImpl.h

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------\
00002 |                          ____ _   __ __ ___                          |
00003 |                         |__  / \ / / . \ . \                         |
00004 |                           / / \ V /|  _/  _/                         |
00005 |                          / /__ | | | | | |                           |
00006 |                         /_____||_| |_| |_|                           |
00007 |                                                                      |
00008 \---------------------------------------------------------------------*/
00012 #ifndef ZYPP_STORE_XMLSCRIPTIMPL_H
00013 #define ZYPP_STORE_XMLSCRIPTIMPL_H
00014 
00015 #include "zypp/TmpPath.h"
00016 #include "zypp/detail/ScriptImplIf.h"
00017 
00018 using namespace zypp::filesystem;
00019 
00021 namespace zypp
00022 { 
00023 
00024   namespace storage
00025   { 
00026 
00028     //
00029     //  CLASS NAME : XMLScriptImpl
00030     //
00032     struct XMLScriptImpl : public zypp::detail::ScriptImplIf
00033     {
00035       XMLScriptImpl();
00037       ~XMLScriptImpl();
00038 
00039       virtual TranslatedText summary() const
00040       { return _summary; }
00041       virtual TranslatedText description() const
00042       { return _description; }
00043       virtual TranslatedText insnotify() const
00044       { return _install_notify; }    
00045       virtual TranslatedText delnotify() const
00046       { return _delete_notify; }    
00047       virtual TranslatedText licenseToConfirm() const
00048       { return _license_to_confirm; }    
00049       virtual Vendor vendor() const
00050       { return _vendor; }    
00051       virtual ByteCount size() const
00052       { return _size; }    
00053       virtual ByteCount archivesize() const
00054       { return _archive_size; }    
00055       virtual unsigned sourceMediaNr() const
00056       { return 0; }    
00057       virtual bool installOnly() const
00058       { return _install_only; }    
00059       virtual Date buildtime() const
00060       { return _build_time; }    
00061       virtual Date installtime() const
00062       { return _install_time; }    
00063       
00065       Pathname do_script() const;
00067       Pathname undo_script() const;
00069       virtual bool undo_available() const;
00070       
00071       TmpFile _do_script;
00072       TmpFile _undo_script;
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     };
00089 
00091   } // namespace detail
00094 } // namespace zypp
00096 #endif // ZYPP_DETAIL_SCRIPTIMPL_H

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