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 Pathname do_script() const;
40 /** Get the script to undo the change */
41 Pathname undo_script() const ;
42 /** Check whether script to undo the change is available */
43 bool undo_available() const;
47 Script( const NVRAD & nvrad_r );
52 /** Access implementation */
53 virtual Impl & pimpl() = 0;
54 /** Access implementation */
55 virtual const Impl & pimpl() const = 0;
58 /////////////////////////////////////////////////////////////////
60 ///////////////////////////////////////////////////////////////////
61 #endif // ZYPP_SCRIPT_H