00001 /*---------------------------------------------------------------------\ 00002 | ____ _ __ __ ___ | 00003 | |__ / \ / / . \ . \ | 00004 | / / \ V /| _/ _/ | 00005 | / /__ | | | | | | | 00006 | /_____||_| |_| |_| | 00007 | | 00008 \---------------------------------------------------------------------*/ 00013 #include "zypp/target/store/xml/XMLScriptImpl.h" 00014 00015 using namespace std; 00016 00018 namespace zypp 00019 { 00020 00021 namespace storage 00022 { 00023 00025 // 00026 // CLASS NAME : XMLScriptImpl 00027 // 00029 00031 XMLScriptImpl::XMLScriptImpl() 00032 { 00033 _do_script = TmpFile( TmpPath::defaultLocation(), "zypp-xmlstore-do-script-"); 00034 _undo_script = TmpFile( TmpPath::defaultLocation(), "zypp-xmlstore-undo-script-"); 00035 } 00036 00038 XMLScriptImpl::~XMLScriptImpl() 00039 {} 00040 00041 Pathname XMLScriptImpl::do_script() const { 00042 return _do_script.path(); 00043 } 00044 00045 Pathname XMLScriptImpl::undo_script() const { 00046 return _undo_script.path(); 00047 } 00048 00049 bool XMLScriptImpl::undo_available() const { 00050 return _undo_script != ""; 00051 } 00052 00054 } // namespace detail 00057 } // namespace zypp