00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00012 #ifndef ZYPP_SCRIPT_H 00013 #define ZYPP_SCRIPT_H 00014 00015 #include "zypp/ResObject.h" 00016 #include "zypp/detail/ScriptImplIf.h" 00017 00019 namespace zypp 00020 { 00021 00023 // 00024 // CLASS NAME : Script 00025 // 00028 class Script : public ResObject 00029 { 00030 public: 00031 typedef detail::ScriptImplIf Impl; 00032 typedef Script Self; 00033 typedef ResTraits<Self> TraitsType; 00034 typedef TraitsType::PtrType Ptr; 00035 typedef TraitsType::constPtrType constPtr; 00036 00037 public: 00039 bool doAvailable() const; 00040 00044 std::string doScriptInlined() const; 00045 00049 OnMediaLocation doScriptLocation() const; 00050 00052 bool undoAvailable() const; 00053 00057 std::string undoScriptInlined() const; 00058 00062 OnMediaLocation undoScriptLocation() const; 00063 00064 protected: 00066 Script( const NVRAD & nvrad_r ); 00068 virtual ~Script(); 00069 00070 private: 00072 virtual Impl & pimpl() = 0; 00074 virtual const Impl & pimpl() const = 0; 00075 }; 00076 00078 } // namespace zypp 00080 #endif // ZYPP_SCRIPT_H
1.5.3