00001 // 00002 // aegis - project change supervisor 00003 // Copyright (C) 1991-1994, 2002, 2004-2006, 2008 Peter Miller. 00004 // 00005 // This program is free software; you can redistribute it and/or modify 00006 // it under the terms of the GNU General Public License as published by 00007 // the Free Software Foundation; either version 3 of the License, or 00008 // (at your option) any later version. 00009 // 00010 // This program is distributed in the hope that it will be useful, 00011 // but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00013 // GNU General Public License for more details. 00014 // 00015 // You should have received a copy of the GNU General Public License 00016 // along with this program. If not, see 00017 // <http://www.gnu.org/licenses/>. 00018 // 00019 00020 #ifndef UNDO_H 00021 #define UNDO_H 00022 00023 #include <libaegis/quit/action/undo.h> 00024 #include <common/str.h> 00025 00030 class nstring; // forward 00031 00041 void undo_rename(string_ty *from, string_ty *to); 00042 00052 void undo_rename(const nstring &from, const nstring &to); 00053 00063 void undo_rename_cancel(string_ty *from, string_ty *to); 00064 00074 void undo_rename_cancel(const nstring &from, const nstring &to); 00075 00084 void undo_chmod(string_ty *path, int mode); 00085 00094 void undo_chmod(const nstring &path, int mode); 00095 00105 void undo_chmod_errok(string_ty *path, int mode); 00106 00116 void undo_chmod_errok(const nstring &path, int mode); 00117 00125 void undo_unlink_errok(string_ty *path); 00126 00134 void undo_unlink_errok(const nstring &path); 00135 00144 void undo_rmdir_bg(string_ty *path); 00145 00154 void undo_rmdir_bg(const nstring &path); 00155 00164 void undo_rmdir_errok(string_ty *path); 00165 00174 void undo_rmdir_errok(const nstring &path); 00175 00183 void undo_message(string_ty *msg); 00184 00192 void undo_message(const nstring &msg); 00193 00197 void undo(void); 00198 00199 extern quit_action_undo undo_quitter; 00200 00205 void undo_cancel(void); 00206 00208 #endif // UNDO_H