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 downloadSize() const
00054       { return _downloadSize; }
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       virtual std::string doScriptInlined() const;
00063       virtual std::string undoScriptInlined() const;
00064 
00065       TranslatedText _summary;
00066       TranslatedText _description;
00067 
00068       TranslatedText _install_notify;
00069       TranslatedText _delete_notify;
00070       TranslatedText _license_to_confirm;
00071       std::string _vendor;
00072       ByteCount _size;
00073       ByteCount _downloadSize;
00074       bool _install_only;
00075       Date _build_time;
00076       Date _install_time;
00077 
00078       std::string _doScript;
00079       std::string _undoScript;
00080    };
00082 
00084   } // namespace detail
00087 } // namespace zypp
00089 #endif // ZYPP_DETAIL_SCRIPTIMPL_H

Generated on Tue Sep 25 19:23:09 2007 for libzypp by  doxygen 1.5.3