1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Script.h
15 #include "zypp/ResObject.h"
16 #include "zypp/detail/ScriptImplIf.h"
18 ///////////////////////////////////////////////////////////////////
20 { /////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 // CLASS NAME : Script
26 /** Class representing an update script.
28 class Script : public ResObject
31 typedef detail::ScriptImplIf Impl;
33 typedef ResTraits<Self> TraitsType;
34 typedef TraitsType::PtrType Ptr;
35 typedef TraitsType::constPtrType constPtr;
38 /** Get the script to perform the change */
39 std::string do_script();
40 /** Get the script to undo the change */
41 std::string undo_script();
42 /** Check whether script to undo the change is available */
43 bool undo_available();
47 Script( const std::string & name_r,
48 const Edition & edition_r,
49 const Arch & arch_r );
54 /** Access implementation */
55 virtual Impl & pimpl() = 0;
56 /** Access implementation */
57 virtual const Impl & pimpl() const = 0;
60 /////////////////////////////////////////////////////////////////
62 ///////////////////////////////////////////////////////////////////
63 #endif // ZYPP_SCRIPT_H