1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/source/yum/YUMScriptImpl.h
12 #ifndef ZYPP_SOURCE_YUM_YUMSCRIPTIMPL_H
13 #define ZYPP_SOURCE_YUM_YUMSCRIPTIMPL_H
15 #include "zypp/detail/ScriptImpl.h"
16 #include "zypp/parser/yum/YUMParserData.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
25 { //////////////////////////////////////////////////////////////
27 ///////////////////////////////////////////////////////////////////
29 // CLASS NAME : YUMScriptImpl
31 /** Class representing an update script */
32 class YUMScriptImpl : public detail::ScriptImplIf
36 YUMScriptImpl( const zypp::parser::yum::YUMPatchScript & parsed );
37 /** Get the script to perform the change */
38 virtual std::string do_script() const;
39 /** Get the script to undo the change */
40 virtual std::string undo_script() const;
41 /** Check whether script to undo the change is available */
42 virtual bool undo_available() const;
44 virtual Label summary() const;
45 virtual Text description() const;
46 virtual Text insnotify() const;
47 virtual Text delnotify() const;
48 virtual FSize size() const;
49 virtual bool providesSources() const;
50 virtual Label instSrcLabel() const;
51 virtual Vendor instSrcVendor() const;
55 /** The script to perform the change */
56 std::string _do_script;
57 /** The script to undo the change */
58 std::string _undo_script;
60 ///////////////////////////////////////////////////////////////////
62 /////////////////////////////////////////////////////////////////
64 ///////////////////////////////////////////////////////////////////
65 /////////////////////////////////////////////////////////////////
67 ///////////////////////////////////////////////////////////////////
68 #endif // ZYPP_SOURCE_YUM_YUMSCRIPTIMPL_H