1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/detail/ScriptImpl.h
12 #ifndef ZYPP_DETAIL_SCRIPTIMPL_H
13 #define ZYPP_DETAIL_SCRIPTIMPL_H
17 #include "zypp/detail/ResolvableImpl.h"
18 #include "zypp/Resolvable.h"
19 #include "zypp/Script.h"
21 ///////////////////////////////////////////////////////////////////
23 { /////////////////////////////////////////////////////////////////
24 ///////////////////////////////////////////////////////////////////
26 { /////////////////////////////////////////////////////////////////
29 ///////////////////////////////////////////////////////////////////
31 // CLASS NAME : ScriptImpl
33 /** Class representing an update script */
34 class ScriptImpl : public ResolvableImpl
38 ScriptImpl( const ResName & name_r,
39 const Edition & edition_r,
40 const Arch & arch_r );
45 /** Get the script to perform the change */
46 std::string do_script () const;
47 /** Get the script to undo the change */
48 std::string undo_script () const;
49 /** Check whether script to undo the change is available */
50 virtual bool undo_available () const;
52 /** The script to perform the change */
53 std::string _do_script;
54 /** The script to undo the change */
55 std::string _undo_script;
57 ///////////////////////////////////////////////////////////////////
59 /////////////////////////////////////////////////////////////////
61 ///////////////////////////////////////////////////////////////////
62 /////////////////////////////////////////////////////////////////
64 ///////////////////////////////////////////////////////////////////
65 #endif // ZYPP_DETAIL_SCRIPTIMPL_H